/* plg_system_anchorreturn : bouton « Revenir ou j'etais ».
   Couleurs, position, hauteur et z-index viennent des reglages du plugin (variables et
   style inline poses par le script). Apparition en fondu glisse, jamais instantanee. */
.anchorreturn-btn {
  --ar-bg: #0A6F97;
  --ar-bg-hover: #085B7B;
  --ar-fg: #ffffff;
  --ar-x: 0;
  position: fixed;
  bottom: 60px;
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ar-bg);
  color: var(--ar-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--ar-x), 12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, bottom .3s ease, background-color .2s ease;
}
.anchorreturn-btn--center { left: 50%; --ar-x: -50%; }
.anchorreturn-btn--left { left: 20px; }
.anchorreturn-btn--right { right: 20px; }
.anchorreturn-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--ar-x), 0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s, bottom .3s ease, background-color .2s ease;
}
/* Icone undo-2, Lucide (ISC), en masque : elle prend la couleur du texte */
.anchorreturn-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5 5.5 5.5 0 0 1-5.5 5.5H11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5 5.5 5.5 0 0 1-5.5 5.5H11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.anchorreturn-btn:hover { background: var(--ar-bg-hover); color: var(--ar-fg); }
.anchorreturn-btn:focus-visible { outline: 2px solid var(--ar-fg); outline-offset: -5px; }
@media (prefers-reduced-motion: reduce) {
  .anchorreturn-btn, .anchorreturn-btn.is-visible { transition: none; }
}
@media print {
  .anchorreturn-btn { display: none; }
}
