/* =========================================================
   BACK TO TOP MODULE — V6.49
   ---------------------------------------------------------
   Module indépendant.
   Fonctionne avec n'importe quelle page/conteneur scrollable.
========================================================= */

.back-to-top-module{
  position:fixed !important;
  right:32px !important;
  bottom:32px !important;
  z-index:2147483646 !important;

  width:56px !important;
  height:56px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius:50% !important;
  border:1px solid rgba(255,245,235,.18) !important;

  background:
    radial-gradient(circle at 50% 50%, rgba(255,245,235,.08), transparent 58%),
    linear-gradient(180deg, rgba(12,5,8,.76), rgba(8,3,5,.54)) !important;

  backdrop-filter:blur(18px);

  box-shadow:
    0 24px 90px rgba(0,0,0,.42),
    0 0 42px rgba(214,29,59,.12),
    inset 0 0 22px rgba(255,245,235,.04) !important;

  clip-path:none !important;
  overflow:visible !important;

  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;

  transform:translateY(14px) scale(.88) !important;

  cursor:pointer !important;

  transition:
    opacity .65s cubic-bezier(.16,1,.3,1),
    visibility .65s,
    transform .65s cubic-bezier(.16,1,.3,1),
    border-color .65s cubic-bezier(.16,1,.3,1),
    background .65s cubic-bezier(.16,1,.3,1),
    box-shadow .65s cubic-bezier(.16,1,.3,1) !important;
}

.back-to-top-module.is-visible{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateY(0) scale(1) !important;
}

.back-to-top-module__arrow{
  position:relative !important;
  width:15px !important;
  height:15px !important;

  transform:translateY(4px) rotate(45deg) !important;

  border-left:1.7px solid rgba(255,245,235,.9) !important;
  border-top:1.7px solid rgba(255,245,235,.9) !important;

  box-shadow:-4px -4px 16px rgba(255,245,235,.28);

  transition:
    transform .65s cubic-bezier(.16,1,.3,1),
    border-color .65s cubic-bezier(.16,1,.3,1) !important;
}

.back-to-top-module__ring{
  position:absolute !important;
  inset:-10px !important;

  border-radius:50% !important;
  border:1px solid rgba(255,245,235,.06) !important;

  opacity:.7;
  transform:scale(.86);

  transition:
    transform .65s cubic-bezier(.16,1,.3,1),
    opacity .65s cubic-bezier(.16,1,.3,1),
    border-color .65s cubic-bezier(.16,1,.3,1) !important;
}

.back-to-top-module::after{
  content:'' !important;
  position:absolute !important;
  inset:-22px !important;

  border-radius:50% !important;

  background:radial-gradient(circle, rgba(214,29,59,.16), transparent 66%) !important;

  filter:blur(14px) !important;
  opacity:.38;

  pointer-events:none !important;

  transition:
    opacity .65s cubic-bezier(.16,1,.3,1),
    transform .65s cubic-bezier(.16,1,.3,1) !important;
}

.back-to-top-module:hover{
  transform:translateY(-4px) scale(1.08) !important;
  border-color:rgba(255,245,235,.36) !important;

  background:
    radial-gradient(circle at 50% 50%, rgba(214,29,59,.18), transparent 62%),
    linear-gradient(180deg, rgba(30,6,14,.82), rgba(10,3,6,.62)) !important;

  box-shadow:
    0 30px 110px rgba(0,0,0,.50),
    0 0 70px rgba(214,29,59,.25),
    inset 0 0 28px rgba(255,245,235,.07) !important;
}

.back-to-top-module:hover .back-to-top-module__arrow{
  transform:translateY(0) rotate(45deg) !important;
  border-color:#fff5ee !important;
}

.back-to-top-module:hover .back-to-top-module__ring{
  transform:scale(1.18) !important;
  opacity:1 !important;
  border-color:rgba(255,245,235,.18) !important;
}

.back-to-top-module:hover::after{
  opacity:.75 !important;
  transform:scale(1.2) !important;
}

@media(max-width:760px){
  .back-to-top-module{
    right:18px !important;
    bottom:18px !important;
    width:50px !important;
    height:50px !important;
  }
}
