/* ══════════════════════════════════════════════════════════════
   STICKY PROMO BAR — bottom, desktop only, with countdown
   ══════════════════════════════════════════════════════════════ */

#sticky-promo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0.7rem 2.5rem 0.7rem 1.5rem;
  background: linear-gradient(90deg, #1a3a1a 0%, #1f4020 40%, #1a3a1a 100%);
  border-top: 1.5px solid rgba(22, 83, 47, 0.45);
  box-shadow:
    0 -4px 24px rgba(0, 0, 0, 0.55),
    0 -1px 0 rgba(46, 204, 113, 0.15);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  animation: stickyPulse 3.5s ease-in-out infinite;
  transition:
    filter 0.2s,
    transform 0.15s;
}

#sticky-promo-bar:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  animation-play-state: paused;
}

/* Glow pulse */
@keyframes stickyPulse {
  0% {
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.55),
      0 -1px 0 rgba(46, 204, 113, 0.15);
  }
  30% {
    box-shadow:
      0 -4px 30px rgba(0, 0, 0, 0.55),
      0 -2px 18px rgba(13, 121, 58, 0.5),
      0 0 40px rgba(46, 204, 113, 0.18);
  }
  50% {
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.55),
      0 -1px 0 rgba(46, 204, 113, 0.15);
  }
  75% {
    box-shadow:
      0 -4px 28px rgba(0, 0, 0, 0.55),
      0 -2px 12px rgba(46, 204, 113, 0.35),
      0 0 28px rgba(46, 204, 113, 0.12);
  }
  100% {
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.55),
      0 -1px 0 rgba(46, 204, 113, 0.15);
  }
}

/* Shimmer sweep */
#sticky-promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 204, 113, 0.08) 50%,
    transparent 100%
  );
  animation: stickyShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes stickyShimmer {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  40% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Subtle nudge */
@keyframes stickyNudge {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-4px);
  }
  94% {
    transform: translateY(-2px);
  }
}

.sticky-bar-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #e8f5e9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  animation: stickyNudge 4s ease-in-out 5s infinite;
  flex-shrink: 1;
}

/* CTA button with countdown */
#sticky-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2c9a5a;
  color: #0d2010;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.42rem 1.1rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(56, 187, 111, 0.45);
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

#sticky-promo-bar:hover #sticky-bar-cta {
  background: #299b58;
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(60, 204, 120, 0.6);
}

/* Countdown flicker when < 60s */
@keyframes countdownFlicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

#sticky-bar-cta.urgent {
  background: #e74c3c;
  box-shadow: 0 2px 14px rgba(231, 76, 60, 0.5);
  animation: countdownFlicker 1s ease-in-out infinite;
}

/* Close button */
#sticky-bar-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
  z-index: 2;
}

#sticky-bar-close:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Mobile : masqué ─────────────────────────────────────── */
@media (max-width: 768px) {
  #sticky-promo-bar {
    display: none !important;
  }
}
