/* =========================================================
   GENICOTIK : Barre CTA sticky globale (au-dessus footer & chatbot)
   ========================================================= */

.fx-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  padding: 12px 20px;
  padding-right: max(20px, calc(24px + 72px));
  background: rgba(8, 12, 22, 0.97);
  border-top: 1px solid rgba(42, 168, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.fx-sticky-cta--violet {
  border-top-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.08);
}

.fx-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.fx-sticky-cta.is-dismissed { display: none !important; }

body.fx-sticky-active {
  padding-bottom: 76px;
}

.fx-sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-right: 36px;
  position: relative;
}

.fx-sticky-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c9d7ff;
  font-weight: 600;
}

.fx-sticky-text .fx-form-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.fx-sticky-text strong { color: #4dc3ff; }
.fx-sticky-cta--violet .fx-sticky-text strong { color: #c084fc; }

.fx-sticky-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.fx-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fx-sticky-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2aa8ff, #1987e6);
  border: 1px solid rgba(77, 195, 255, 0.4);
  box-shadow: 0 4px 16px rgba(42, 168, 255, 0.3);
}

.fx-sticky-cta--violet .fx-sticky-btn--primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.fx-sticky-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.fx-sticky-btn--ghost {
  color: #a9b8d4;
  background: transparent;
  border: 1px solid rgba(77, 140, 255, 0.3);
}

.fx-sticky-cta--violet .fx-sticky-btn--ghost {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.fx-sticky-cta--amber {
  border-top-color: rgba(255, 184, 77, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 184, 77, 0.08);
}

.fx-sticky-cta--amber .fx-sticky-text strong { color: #ffb84d; }

.fx-sticky-cta--amber .fx-sticky-btn--primary {
  background: linear-gradient(135deg, #ffb84d, #e89a2e);
  border-color: rgba(255, 201, 120, 0.5);
  box-shadow: 0 4px 16px rgba(255, 184, 77, 0.35);
  color: #1a1208;
}

.fx-sticky-cta--amber .fx-sticky-btn--ghost {
  color: #ffb84d;
  border-color: rgba(255, 184, 77, 0.35);
}

.fx-sticky-cta--rose {
  border-top-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 114, 182, 0.08);
}

.fx-sticky-cta--rose .fx-sticky-text strong { color: #f9a8d4; }

.fx-sticky-cta--rose .fx-sticky-btn--primary {
  background: linear-gradient(135deg, #f472b6, #db2777);
  border-color: rgba(249, 168, 212, 0.5);
  box-shadow: 0 4px 16px rgba(244, 114, 182, 0.35);
  color: #fff;
}

.fx-sticky-cta--rose .fx-sticky-btn--ghost {
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.35);
}

.fx-sticky-cta--teal {
  border-top-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.08);
}

.fx-sticky-cta--teal .fx-sticky-text strong { color: #67e8f9; }

.fx-sticky-cta--teal .fx-sticky-btn--primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  color: #fff;
}

.fx-sticky-cta--teal .fx-sticky-btn--ghost {
  color: #67e8f9;
  border-color: rgba(0, 240, 255, 0.35);
}

.fx-sticky-cta--fuchsia {
  border-top-color: rgba(188, 19, 254, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(188, 19, 254, 0.08);
}

.fx-sticky-cta--fuchsia .fx-sticky-text strong { color: #e879f9; }

.fx-sticky-cta--fuchsia .fx-sticky-btn--primary {
  background: linear-gradient(135deg, #bc13fe, #7c3aed);
  border-color: rgba(232, 121, 249, 0.5);
  box-shadow: 0 4px 16px rgba(188, 19, 254, 0.35);
  color: #fff;
}

.fx-sticky-cta--fuchsia .fx-sticky-btn--ghost {
  color: #e879f9;
  border-color: rgba(188, 19, 254, 0.35);
}

.fx-sticky-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.fx-sticky-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #7b8aad;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.fx-sticky-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .fx-sticky-cta { padding: 10px 14px; padding-right: 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  body.fx-sticky-active { padding-bottom: 120px; }
  .fx-sticky-inner {
    flex-direction: column;
    text-align: center;
    padding-right: 0;
    padding-bottom: 8px;
  }
  .fx-sticky-close { top: 4px; right: 4px; transform: none; }
  .fx-sticky-actions { justify-content: center; width: 100%; }
  .fx-sticky-btn { flex: 1; min-width: 120px; }
}