:root {
  --bg: #0b0c10;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #f4f5f8;
  --text-muted: #9499ad;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Halo lumineux d'arrière-plan discret */
.bg-glow {
  position: fixed;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 92, 77, 0.12) 0%,
    rgba(131, 58, 180, 0.08) 45%,
    transparent 75%
  );
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Barre supérieure (bouton partage) */
.top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -0.5rem;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: scale(1.04);
}

/* Profil */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d202b 0%, #13151c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.1rem;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.avatar-fallback {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a5abc0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.avatar-wrapper.has-image .avatar-fallback {
  display: none;
}

.profile-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.profile-bio {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.45;
}

/* Liens */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.link-card:active {
  transform: translateY(0);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

/* Accents spécifiques par réseau au survol */
.link-patreon:hover {
  border-color: rgba(255, 66, 77, 0.45);
  box-shadow: 0 10px 28px rgba(255, 66, 77, 0.12);
}
.link-patreon:hover .link-icon {
  background: rgba(255, 66, 77, 0.16);
  border-color: rgba(255, 66, 77, 0.35);
  color: #ff5b64;
}

.link-x:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.07);
}
.link-x:hover .link-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.link-instagram:hover {
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow: 0 10px 28px rgba(225, 48, 108, 0.12);
}
.link-instagram:hover .link-icon {
  background: linear-gradient(135deg, rgba(245, 133, 41, 0.2), rgba(221, 42, 123, 0.2), rgba(129, 52, 175, 0.2));
  border-color: rgba(225, 48, 108, 0.35);
  color: #f777a3;
}

.link-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, color 0.22s ease;
}

.link-card:hover .link-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Pied de page */
.footer {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: rgba(148, 153, 173, 0.55);
  letter-spacing: 0.03em;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 16px);
  background: #1b1e28;
  color: var(--text);
  border: 1px solid var(--border-hover);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding-top: 2rem;
  }
}
