:root {
  --wenlys-retour-haut-bas: calc(6px + env(safe-area-inset-bottom, 0px));
}

.wenlys-retour-haut {
  position: fixed;
  right: calc(4px + env(safe-area-inset-right, 0px));
  bottom: var(--wenlys-retour-haut-bas);
  z-index: 25;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #343638;
  background: transparent;
  text-decoration: none;
}

.wenlys-retour-haut > span {
  position: relative;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 1px #faf9f6) drop-shadow(0 0 1px #faf9f6);
}

.wenlys-retour-haut > span::before {
  position: absolute;
  inset: 2px auto 2px 50%;
  width: 0;
  border-left: 1.5px solid;
  transform: translateX(-50%);
  content: "";
}

.wenlys-retour-haut > span::after {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
  transform: translateX(-50%) rotate(45deg);
  content: "";
}

.wenlys-retour-haut:is(:hover, :focus-visible) {
  color: #36566a;
}

.wenlys-retour-haut:focus-visible {
  outline: 2px solid #496775;
  outline-offset: -3px;
}

@media (max-width: 1000px) {
  /* Libère la zone tactile devant les derniers liens du pied de page. */
  body:has(> .wenlys-retour-haut) > footer:is(.site-footer.shell, .vitrine-footer.vitrine-wrap) {
    padding-bottom: calc(46px + var(--wenlys-retour-haut-bas));
  }
}
