/* Trévoux 2026 — partage Facebook et navigation vers le haut */

.trevoux-facebook-share,
.trevoux-back-top,
.trevoux-back-top-inline {
  -webkit-tap-highlight-color: transparent;
}

.trevoux-facebook-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.trevoux-facebook-share:hover,
.trevoux-facebook-share:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.trevoux-facebook-share svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}

.trevoux-back-top-inline {
  display: flex;
  grid-column: 1 / -1;
  width: 100%;
  margin: 1.35rem 0 .4rem;
  justify-content: flex-end;
}

.trevoux-back-top-inline a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .52rem .78rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: inherit;
  background: rgba(7, 17, 31, .74);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.trevoux-back-top-inline a:hover,
.trevoux-back-top-inline a:focus-visible {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(15, 31, 51, .95);
}

.trevoux-back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 48px;
  min-height: 48px;
  padding: .65rem .85rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(7, 17, 31, .92);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.trevoux-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trevoux-back-top:hover,
.trevoux-back-top:focus-visible {
  background: rgba(15, 31, 51, .98);
}

@media (max-width: 640px) {
  .trevoux-facebook-share {
    width: 100%;
  }

  .trevoux-back-top {
    width: 48px;
    padding: 0;
  }

  .trevoux-back-top .trevoux-back-top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trevoux-facebook-share,
  .trevoux-back-top {
    transition: none;
  }
}
