:root {
  /* Palette de marque */
  --bg: #0a0612;
  --purple: #7c4dff;
  --magenta: #c21e75;
  --lavender: #b4a0f0;

  /* Système statique */
  --ink: #f5f2ff;
  --muted: #a89dc4;
  --line: rgba(245, 242, 255, 0.09);
  --line-strong: rgba(245, 242, 255, 0.16);
  --pulse: #e879f9;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius-row: 16px;
  --radius-chip: 11px;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- fond ambiant ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.glow--violet {
  width: 52vw;
  height: 52vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  opacity: 0.4;
  top: -18vw;
  left: -14vw;
}

.glow--magenta {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
  opacity: 0.3;
  bottom: -16vw;
  right: -12vw;
}

/* grain léger pour donner du grain à l'aplat sombre — piloté sans image externe */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* léger vignettage pour recentrer l'attention */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 20%, transparent 55%, rgba(5, 3, 10, 0.55) 100%);
}

/* ---------- structure ---------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.banner-wrap {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.banner-wrap img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 300px;
  object-fit: cover;
  object-position: center 30%;
}

.banner-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--purple), var(--magenta));
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

.banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, var(--bg) 100%);
}

.profile {
  width: 100%;
  max-width: 560px;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -72px;
}

/* ---------- avatar : le seul geste fort de la page ---------- */

.avatar-ring {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 180deg, var(--purple), var(--pulse), var(--lavender), var(--magenta), var(--purple));
  box-shadow: 0 0 0 6px var(--bg);
  opacity: 0;
  transform: scale(0.92);
  animation: avatar-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.avatar-halo {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.55), transparent 70%);
  filter: blur(18px);
  animation: halo-pulse 7s ease-in-out infinite;
  z-index: -1;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

@keyframes avatar-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

/* ---------- identité ---------- */

.identity {
  margin-top: 22px;
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.2vw, 2.15rem);
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 8px;
  color: var(--lavender);
  font-size: 0.95rem;
  font-weight: 600;
}

.bio {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 44ch;
}

/* ---------- réseaux : une carte identique pour chaque lien ---------- */

.socials {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  --acc: var(--lavender);
  --acc-rgb: 180, 160, 240;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-row);
  background: linear-gradient(135deg, rgba(var(--acc-rgb), 0.22), rgba(var(--acc-rgb), 0.06));
  border: 1px solid rgba(var(--acc-rgb), 0.42);
  box-shadow: 0 10px 30px -16px rgba(var(--acc-rgb), 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px -16px rgba(var(--acc-rgb), 0.8);
  border-color: rgba(var(--acc-rgb), 0.85);
}

.social-link:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 2px;
}

.social-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(var(--acc-rgb), 0.55);
  transition: box-shadow 0.2s ease;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  box-shadow: 0 0 0 2px rgba(var(--acc-rgb), 0.9);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.social-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.social-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(var(--acc-rgb), 0.9);
  transition: transform 0.2s ease;
}

.social-link:hover .social-arrow,
.social-link:focus-visible .social-arrow {
  transform: translateX(5px);
}

@media (max-width: 420px) {
  .social-link { padding: 15px 16px; gap: 14px; }
  .social-icon { width: 46px; height: 46px; }
  .social-label { font-size: 0.94rem; }
  .social-handle { font-size: 0.72rem; }
}

.socials-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 6px;
}

/* ---------- pied de page ---------- */

.foot {
  margin-top: 36px;
  color: var(--muted);
  opacity: 0.55;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .avatar-ring { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .avatar-ring { width: 112px; height: 112px; }
  .profile { margin-top: -56px; padding-bottom: 48px; }
}
