/* ===========================
   ZOOM TECHNOLOGIE — FEATURES.CSS
   Push · Fidélité · Offres limitées
   =========================== */

/* ════════════════════════════
   PUSH NOTIFICATIONS — OPTIN
   ════════════════════════════ */
#zt-push-optin {
  position: fixed;
  bottom: -90px;
  left: 0; right: 0;
  z-index: 1300;
  padding: 0 12px 12px;
  transition: bottom .38s cubic-bezier(0.34,1.2,0.64,1);
}
#zt-push-optin.visible { bottom: 0; }

.zt-optin-inner {
  background: #0F1111;
  border-radius: 16px 16px 10px 10px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -6px 30px rgba(0,0,0,.30);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 11px;
  max-width: 500px; margin: 0 auto;
}
.zt-optin-icon { font-size: 1.9rem; flex-shrink: 0; }
.zt-optin-text { flex: 1; min-width: 0; }
.zt-optin-text strong { display: block; font-size: .86rem; font-weight: 800; color: white; }
.zt-optin-text span   { font-size: .72rem; color: rgba(255,255,255,.55); }

.zt-optin-yes {
  padding: 8px 16px;
  background: linear-gradient(135deg,#0055FF,#003DC0);
  color: white; border: none; border-radius: 8px;
  font-family: inherit; font-size: .75rem; font-weight: 800;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all .18s;
  box-shadow: 0 2px 8px rgba(0,85,255,.4);
}
.zt-optin-yes:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,85,255,.5); }

.zt-optin-no {
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: .9rem; cursor: pointer; padding: 4px; flex-shrink: 0;
  transition: color .18s;
}
.zt-optin-no:hover { color: white; }

.zt-push-confirm {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #059669; color: white;
  padding: 11px 20px; border-radius: 10px;
  font-size: .80rem; font-weight: 700; font-family: 'Inter',sans-serif;
  z-index: 1400; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  opacity: 0; transition: all .3s;
  box-shadow: 0 4px 16px rgba(5,150,105,.4);
}
.zt-push-confirm.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Panel admin notifs ── */
.adm-push-panel { padding: 0; }
.adm-push-status {
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  font-size: .80rem; font-weight: 600;
}
.adm-push-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.adm-push-status-dot.on  { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.adm-push-status-dot.off { background: #f87171; }
.adm-push-enable {
  margin-left: auto; padding: 5px 12px;
  background: #0055FF; color: white; border: none; border-radius: 6px;
  font-size: .72rem; font-weight: 800; cursor: pointer; font-family: inherit;
}
.adm-push-list { padding: 6px 0; }
.adm-push-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid #f1f5f9;
}
.adm-push-item:last-child { border-bottom: none; }
.adm-push-item-info { flex: 1; }
.adm-push-item-title { font-size: .80rem; font-weight: 700; color: #0f172a; }
.adm-push-item-body  { font-size: .70rem; color: #64748b; margin-top: 2px; }
.adm-push-send {
  padding: 7px 12px; background: #0055FF; color: white;
  border: none; border-radius: 7px;
  font-family: inherit; font-size: .70rem; font-weight: 800;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  transition: all .18s;
}
.adm-push-send:hover { background: #003DC0; transform: translateY(-1px); }

/* ════════════════════════════
   PROGRAMME DE FIDÉLITÉ
   ════════════════════════════ */

/* Bulle flottante */
#zt-loyalty-widget {
  position: fixed;
  bottom: 170px;
  left: 20px;
  z-index: 1200;
}
.zt-loyalty-bubble {
  display: flex; flex-direction: column; align-items: center;
  width: 56px; padding: 8px 0;
  background: linear-gradient(135deg,#0F1111,#1a1a2e);
  border: 2px solid #FFD700;
  border-radius: 14px;
  cursor: pointer; color: white; font-family: inherit;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  transition: all .22s;
  gap: 2px;
}
.zt-loyalty-bubble:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 6px 24px rgba(255,215,0,.3); }
.zt-loyalty-bubble-icon { font-size: 1.4rem; line-height: 1; }
.zt-loyalty-bubble-pts  { font-size: .80rem; font-weight: 900; color: #FFD700; line-height: 1; }
.zt-loyalty-bubble-lbl  { font-size: .52rem; color: rgba(255,255,255,.5); letter-spacing: 1px; font-weight: 700; }

/* Modal carte */
#zt-loyalty-modal {
  position: fixed; inset: 0; z-index: 2500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#zt-loyalty-modal.open { opacity: 1; pointer-events: all; }

.zt-loy-overlay {
  position: absolute; inset: 0;
  background: rgba(5,5,15,.80); backdrop-filter: blur(6px);
  cursor: pointer;
}
.zt-loy-box {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(94vw, 400px);
  max-height: 88vh; overflow-y: auto;
  background: white; border-radius: 20px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.zt-loy-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  font-size: .8rem; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s; z-index: 1;
}
.zt-loy-close:hover { background: #e2e8f0; transform: rotate(90deg); }

/* Carte numérique */
.zt-loy-card {
  border-radius: 16px; padding: 18px;
  border: 1.5px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg,#0F1111,#1a1a2e);
  color: white; position: relative; overflow: hidden;
}
.zt-loy-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.zt-loy-logo { display: flex; align-items: center; gap: 6px; }
.zt-loy-logo-txt { font-size: .68rem; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,.8); }
.zt-loy-level-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 900;
  letter-spacing: .5px; flex-shrink: 0;
}
.zt-loy-card-pts { margin-bottom: 12px; }
.zt-loy-pts-val  { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.zt-loy-pts-lbl  { font-size: .70rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.zt-loy-card-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,.10); padding-top: 10px;
}
.zt-loy-card-id { font-family: monospace; font-size: .80rem; color: #FFD700; letter-spacing: 2px; font-weight: 700; }
.zt-loy-card-since { font-size: .60rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.zt-loy-card-orders { text-align: center; }
.zt-loy-card-orders strong { display: block; font-size: 1.3rem; font-weight: 900; }
.zt-loy-card-orders span   { font-size: .60rem; color: rgba(255,255,255,.45); }

/* Barre de progression */
.zt-loy-progress-section { display: flex; flex-direction: column; gap: 6px; }
.zt-loy-prog-labels { display: flex; justify-content: space-between; font-size: .68rem; color: #64748b; font-weight: 600; }
.zt-loy-prog-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.zt-loy-prog-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }
.zt-loy-prog-hint { font-size: .70rem; color: #64748b; text-align: center; }

/* Avantages */
.zt-loy-perks { background: #f8fafc; border-radius: 10px; padding: 12px 14px; }
.zt-loy-perks-title { font-size: .75rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.zt-loy-perks-title i { color: #0055FF; }
.zt-loy-perks-text { font-size: .76rem; color: #475569; }

/* Comment gagner */
.zt-loy-howto { display: flex; flex-direction: column; gap: 7px; }
.zt-loy-howto-title { font-size: .72rem; font-weight: 800; color: #0f172a; }
.zt-loy-howto-item { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: #475569; }
.zt-loy-howto-item i { color: #0055FF; width: 14px; }

/* Historique */
.zt-loy-history { display: flex; flex-direction: column; gap: 0; }
.zt-loy-history-title { font-size: .72rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.zt-loy-history-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: .72rem;
}
.zt-loy-hist-desc  { flex: 1; color: #475569; }
.zt-loy-hist-pts   { color: #059669; font-weight: 800; white-space: nowrap; }
.zt-loy-hist-date  { color: #94a3b8; font-size: .65rem; white-space: nowrap; }

/* Boutons actions */
.zt-loy-actions { display: flex; gap: 8px; }
.zt-loy-dl-btn, .zt-loy-wa-btn {
  flex: 1; padding: 10px; border-radius: 10px; border: none;
  font-family: inherit; font-size: .76rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .18s;
}
.zt-loy-dl-btn {
  background: #f1f5f9; color: #0f172a;
  border: 1.5px solid #e2e8f0;
}
.zt-loy-dl-btn:hover { background: #e2e8f0; }
.zt-loy-wa-btn {
  background: #25D366; color: white;
  box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.zt-loy-wa-btn:hover { background: #128C7E; transform: translateY(-1px); }

/* Toast points gagnés */
.zt-loy-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg,#0F1111,#1a1a2e);
  border: 1.5px solid #FFD700;
  color: #FFD700; padding: 10px 20px; border-radius: 10px;
  font-size: .80rem; font-weight: 700; font-family: 'Inter',sans-serif;
  z-index: 2000; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  opacity: 0; transition: all .3s;
  box-shadow: 0 4px 16px rgba(255,215,0,.25);
}
.zt-loy-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.zt-loy-toast i { color: #FFD700; }

/* ════════════════════════════
   OFFRES LIMITÉES
   ════════════════════════════ */

/* Badge sur la carte produit */
.zt-offer-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
}
.zt-offer-badge-label {
  display: inline-block;
  background: linear-gradient(135deg,#e53e3e,#c0392b);
  color: white; font-size: .60rem; font-weight: 900;
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: .5px; text-transform: uppercase;
  animation: offerPulse 1.5s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(229,62,62,.4);
}
.zt-offer-badge-timer {
  display: inline-block;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  color: #FFD700; font-size: .58rem; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  font-family: monospace; letter-spacing: .5px;
}
@keyframes offerPulse {
  0%,100% { transform: scale(1); box-shadow: 0 2px 8px rgba(229,62,62,.4); }
  50%      { transform: scale(1.04); box-shadow: 0 3px 14px rgba(229,62,62,.6); }
}
.zt-offer-badge-timer.urgent {
  background: #e53e3e; color: white;
  animation: urgentBlink .7s step-start infinite;
}
@keyframes urgentBlink { 0%,49%{opacity:1} 50%,100%{opacity:.4} }

/* Popup offre limitée */
.zt-offer-popup {
  position: fixed;
  bottom: 80px; right: -380px;
  z-index: 1600;
  width: 340px;
  transition: right .38s cubic-bezier(0.34,1.2,0.64,1);
}
.zt-offer-popup.visible { right: 16px; }

.zt-offer-popup-inner {
  background: white; border-radius: 16px;
  border: 2px solid #e53e3e;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.20);
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.zt-offer-popup-close {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  font-size: .72rem; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.zt-offer-popup-close:hover { background: #e2e8f0; transform: rotate(90deg); }

.zt-offer-popup-flame { font-size: 2rem; text-align: center; line-height: 1; }
.zt-offer-popup-badge {
  text-align: center;
  display: inline-block; margin: 0 auto;
  background: #fee2e2; color: #e53e3e;
  font-size: .65rem; font-weight: 900;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.zt-offer-popup-title {
  text-align: center;
  font-size: .92rem; font-weight: 900; color: #0f172a;
}
.zt-offer-popup-product {
  text-align: center;
  font-size: .76rem; color: #475569;
  background: #f8fafc; padding: 6px 10px; border-radius: 8px;
}
.zt-offer-popup-discount {
  text-align: center;
  font-size: .82rem; font-weight: 700; color: #059669;
  background: #d1fae5; padding: 6px; border-radius: 8px;
}
.zt-offer-popup-timer-wrap {
  text-align: center;
  background: #0F1111; border-radius: 10px; padding: 10px;
}
.zt-offer-popup-timer-label {
  font-size: .65rem; color: rgba(255,255,255,.55); margin-bottom: 4px;
}
.zt-offer-popup-timer {
  font-size: 1.5rem; font-weight: 900; color: #FFD700;
  font-family: monospace; letter-spacing: 2px;
}
.zt-offer-popup-timer.urgent { color: #f87171; animation: urgentBlink .7s step-start infinite; }

.zt-offer-popup-actions { display: flex; gap: 7px; }
.zt-offer-popup-cta, .zt-offer-popup-cart {
  flex: 1; padding: 9px; border-radius: 8px; border: none;
  font-family: inherit; font-size: .74rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .18s;
}
.zt-offer-popup-cta  { background: #f1f5f9; color: #0f172a; }
.zt-offer-popup-cta:hover { background: #e2e8f0; }
.zt-offer-popup-cart {
  background: linear-gradient(180deg,#FF7A1A,#FF6B00);
  color: white; box-shadow: 0 2px 8px rgba(255,107,0,.3);
}
.zt-offer-popup-cart:hover { background: linear-gradient(180deg,#FF8C00,#FF6B00); transform: translateY(-1px); }

/* Bandeau dans le modal produit */
.zt-modal-offer {
  background: linear-gradient(135deg,#fff5f5,#fee2e2);
  border: 1.5px solid #fca5a5;
  border-radius: 10px; padding: 12px 14px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 4px;
  animation: offerPulse 2s ease-in-out infinite;
}
.zt-modal-offer-badge {
  font-size: .62rem; font-weight: 900; color: #e53e3e;
  text-transform: uppercase; letter-spacing: .5px;
}
.zt-modal-offer-title    { font-size: .84rem; font-weight: 800; color: #0f172a; }
.zt-modal-offer-discount { font-size: .76rem; font-weight: 700; color: #059669; }
.zt-modal-offer-timer {
  font-size: .74rem; color: #64748b;
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px;
}
.zt-modal-offer-timer i  { color: #e53e3e; }
.zt-modal-offer-timer strong { color: #e53e3e; font-family: monospace; }

/* Responsive */
@media (max-width: 480px) {
  .zt-offer-popup { width: calc(100vw - 24px); }
  #zt-loyalty-widget { bottom: 155px; left: 12px; }
}
