/* Bouton retour hub PrestaIA — inclus dans les apps (déplaçable) */
.delta-back {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0.55rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #eef5ff;
  background: rgba(10, 18, 36, 0.92);
  border: 1px solid rgba(160, 190, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.delta-back.is-placed {
  right: auto;
  bottom: auto;
}

.delta-back:hover,
.delta-back:focus-visible {
  background: rgba(22, 40, 72, 0.96);
  border-color: rgba(180, 210, 255, 0.55);
  outline: none;
  color: #fff;
}

.delta-back.is-dragging,
.delta-back.is-dragging:hover,
.delta-back.is-dragging:focus-visible {
  cursor: grabbing;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(180, 210, 255, 0.7);
  opacity: 0.96;
  transition: none;
}

.delta-back-grip {
  width: 0.35rem;
  height: 0.95rem;
  flex: none;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(180, 210, 255, 0.85) 1.1px, transparent 1.3px) 0 0 / 100% 33%,
    radial-gradient(circle, rgba(180, 210, 255, 0.85) 1.1px, transparent 1.3px) 0 50% / 100% 33%,
    radial-gradient(circle, rgba(180, 210, 255, 0.85) 1.1px, transparent 1.3px) 0 100% / 100% 33%;
  opacity: 0.75;
  pointer-events: none;
}

.delta-back-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  clip-path: polygon(50% 6%, 96% 88%, 4% 88%);
  background: linear-gradient(180deg, #9fe7ff, #3b8dff);
  pointer-events: none;
}

.delta-back-txt {
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 640px) {
  .delta-back {
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    font-size: 0.78rem;
  }
}

.delta-back-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  pointer-events: none;
}
.delta-back-txt { display: none; }
.delta-back-ico { display: none; }
