/* ===== Bulle sticky bleue (style figé, conforme visuel fourni) ===== */
.ra-sq-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, "Helvetica Neue", Arial;
}

.ra-sq-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: #1ea0f2; /* bleu principal Restart Auto */
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ra-sq-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.ra-sq-ico {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.ra-sq-label {
  line-height: 1;
  white-space: nowrap;
}

/* ===== Panneau (drawer compact) ===== */
.ra-sq-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: #141416;
  color: #f5f7fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ra-sq-wrap.is-open .ra-sq-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ra-sq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ra-sq-close {
  border: none;
  background: transparent;
  color: #cfd3da;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.ra-sq-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.ra-sq-call {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1ea0f2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.ra-sq-link {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ===== Adaptations mobiles ===== */
@media (max-width: 480px) {
  .ra-sq-panel {
    width: 92vw;
    right: 4vw;
  }
}

/* Réduction des animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  .ra-sq-bubble,
  .ra-sq-panel {
    transition: none;
  }
}

/* ===== Mini-bulle (≤ 480px) ===== */
@media (max-width: 480px) {
  .ra-sq-bubble {
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    justify-content: center;
  }

  .ra-sq-ico {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.22);
  }

  .ra-sq-label {
    display: none;
  }

  .ra-sq-panel {
    right: 12px;
    bottom: 68px;
    width: 88vw;
  }

  .ra-sq-wrap {
    right: 12px;
    bottom: 12px;
  }
}
