/* Bouton fixe « Inviter des amis » — home (mobile + desktop) */
.share-fab {
  position: fixed;
  z-index: 60;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.share-fab > * {
  pointer-events: auto;
}

.share-fab__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.82rem, 2.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--boot-share, #0a0a0a);
  background: linear-gradient(135deg, #00ff88 0%, #00cc6d 55%, #009e57 100%);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(0, 255, 136, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.share-fab__trigger:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.5),
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 255, 136, 0.35);
}

.share-fab__trigger:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 3px;
}

.share-fab__trigger .lucide {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.share-fab__label {
  white-space: nowrap;
}

.share-fab__panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.share-fab__panel[hidden] {
  display: none !important;
}

.share-fab__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  padding: 0;
  cursor: pointer;
}

.share-fab__sheet {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: min(96dvh, 48rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 auto;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(165deg, rgba(8, 22, 16, 0.98) 0%, rgba(4, 8, 10, 0.99) 100%);
  border: 1px solid rgba(0, 255, 136, 0.28);
  border-bottom: none;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.55);
}

.share-fab__title {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 400;
  color: #f5f5f5;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.share-fab__challenge {
  margin: 0 0 0.85rem;
  font-size: clamp(0.86rem, 2.8vw, 0.95rem);
  line-height: 1.55;
  color: #a8b8b0;
}

.share-fab__challenge strong {
  color: #00ff88;
  font-weight: 600;
}

.share-fab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.share-fab__grid a,
.share-fab__grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.share-fab__grid a:hover,
.share-fab__grid button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.share-fab__ico,
.share-fab__grid svg.lucide {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: block;
}

.share-fab__ico--svg {
  overflow: visible;
}

.share-fab__net--fb {
  color: #fff;
  background: #1877f2;
  border-color: rgba(255, 255, 255, 0.15);
}

.share-fab__net--ig {
  color: #fff;
  background: linear-gradient(145deg, #f58529, #dd2a7b, #8134af);
  border-color: rgba(255, 255, 255, 0.12);
}

.share-fab__net--x {
  color: #fff;
  background: #0f1419;
  border-color: rgba(255, 255, 255, 0.12);
}

.share-fab__net--discord {
  color: #fff;
  background: #5865f2;
  border-color: rgba(255, 255, 255, 0.12);
}

.share-fab__net--wa {
  color: #fff;
  background: #25d366;
  border-color: rgba(255, 255, 255, 0.12);
}

.share-fab__net--wa-full {
  grid-column: 1 / -1;
}

.share-fab__hint {
  margin: 0 0 0.65rem;
  font-size: clamp(0.72rem, 2.4vw, 0.8rem);
  color: rgba(168, 184, 176, 0.9);
  line-height: 1.4;
}

.share-fab__native {
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.share-fab__native:hover {
  background: rgba(0, 255, 136, 0.18);
}

.share-fab__copy-feedback {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #00ff88;
  min-height: 1.25em;
}

.share-fab__close {
  width: 100%;
  min-height: 44px;
  margin-top: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #a8b8b0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.share-fab__close:hover {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 769px) {
  .share-fab__panel {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    padding-bottom: max(5.25rem, env(safe-area-inset-bottom));
    padding-right: max(1rem, env(safe-area-inset-right));
    pointer-events: none;
  }

  .share-fab__backdrop {
    pointer-events: auto;
  }

  .share-fab__sheet {
    margin: 0;
    width: 100%;
    max-width: 22rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-bottom: 1px solid rgba(0, 255, 136, 0.28);
    max-height: min(94dvh, 48rem);
    pointer-events: auto;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-fab__trigger,
  .share-fab__grid a,
  .share-fab__grid button {
    transition: none;
  }

  .share-fab__trigger:hover,
  .share-fab__grid a:hover,
  .share-fab__grid button:hover {
    transform: none;
  }
}
