/* ====================================================
   TOKENS — dark glassmorphism néon
   ==================================================== */
:root {
  --bg:           #06060B;
  --bg-2:         #0C0C18;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hi:    rgba(255, 255, 255, 0.18);
  --text:         #FFFFFF;
  --text-dim:     rgba(255, 255, 255, 0.55);
  --text-low:     rgba(255, 255, 255, 0.32);

  --pink:    #FF3D9A;
  --cyan:    #00D9FF;
  --violet:  #B455FF;
  --green:   #4ADE80;
  --blue:    #3B82F6;

  --ease-quiet:    cubic-bezier(.22, 1, .36, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background-color: var(--bg);
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex; flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ FOND — blobs néon + grille ============ */
.bg-fx {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.5;
  will-change: transform;
}
.blob.b1 {
  width: 520px; height: 520px; background: var(--pink);
  top: -120px; left: -100px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 480px; height: 480px; background: var(--violet);
  top: 30%; right: -120px;
  animation: drift2 28s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 460px; height: 460px; background: var(--cyan);
  bottom: -150px; left: 35%;
  opacity: 0.35;
  animation: drift3 26s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-100px, 120px) scale(1.1); }
}
@keyframes drift3 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(80px, -100px) scale(1.2); }
}

/* Voile sombre pour lisibilité du glass */
.bg-fx::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(6,6,11,0) 0%, rgba(6,6,11,0.5) 70%, rgba(6,6,11,0.85) 100%);
}

/* ============ LAYOUT ============ */
main {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  max-width: 520px; margin: 0 auto;
  width: 100%;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  padding-left: max(1.75rem, env(safe-area-inset-left));
  padding-right: max(1.75rem, env(safe-area-inset-right));
}

/* ============ HERO — LE NOM ============ */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-emphasis) 0.2s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Avatar dégradé circulaire */
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 1.75rem;
  background: conic-gradient(from 180deg at 50% 50%,
    var(--pink) 0deg, var(--violet) 120deg, var(--cyan) 240deg, var(--pink) 360deg);
  padding: 3px;
  position: relative;
  animation: spin-slow 14s linear infinite;
}
.avatar::before {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--bg-2);
  z-index: 1;
}
.avatar::after {
  content: 'J'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 2.2rem;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* NOM D'ACCUEIL */
.name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 5rem);
  line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg,
    #FFFFFF 0%, #FFFFFF 40%,
    var(--pink) 60%, var(--violet) 80%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.65rem;
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============ LIENS — CARTES GLASS ============ */
.links {
  display: flex; flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  text-decoration: none; color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease-quiet),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.5s ease;
  animation: fadeUp 0.8s var(--ease-emphasis) calc(var(--delay, 0s) + 0.1s) forwards;
  opacity: 0;
}
.link:nth-child(1) { --delay: 0.05s; }
.link:nth-child(2) { --delay: 0.15s; }
.link:nth-child(3) { --delay: 0.25s; }
.link.in-view { opacity: 1; transform: translateY(0); }

/* Lueur radiale qui suit le bord au survol */
.link::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.06) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.link:not(.soon):hover {
  background: var(--glass-hover);
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4),
              0 0 0 1px rgba(255,255,255,0.05),
              0 0 30px rgba(180,85,255,0.12);
}
.link:not(.soon):hover::before { opacity: 1; }

/* Icône — tuile en verre colorée */
.icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.5s var(--ease-quiet);
}
.link:not(.soon):hover .icon { transform: scale(1.08) rotate(-4deg); }

.icon svg {
  width: 22px; height: 22px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-pink   svg { stroke: var(--pink);   }
.icon-cyan   svg { stroke: var(--cyan);   }
.icon-violet svg { stroke: var(--violet); }
.icon-green  svg { stroke: var(--green);  }
.icon-blue   svg { stroke: var(--blue);   }

.icon-pink   { background: rgba(255,61,154,0.1);  border: 1px solid rgba(255,61,154,0.25);  box-shadow: 0 0 16px rgba(255,61,154,0.12);  }
.icon-cyan   { background: rgba(0,217,255,0.1);   border: 1px solid rgba(0,217,255,0.25);   box-shadow: 0 0 16px rgba(0,217,255,0.12);   }
.icon-violet { background: rgba(180,85,255,0.1);  border: 1px solid rgba(180,85,255,0.25);  box-shadow: 0 0 16px rgba(180,85,255,0.12);  }
.icon-green  { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.25);  box-shadow: 0 0 16px rgba(74,222,128,0.12);  }
.icon-blue   { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.25);  box-shadow: 0 0 16px rgba(59,130,246,0.12);  }

.content {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.text-group {
  display: flex; flex-direction: column;
  gap: 0.2rem;
}

.title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.description {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.35;
}

.arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease-quiet), color 0.3s ease;
}
.link:not(.soon):hover .arrow {
  transform: translateX(4px) rotate(-45deg);
  color: var(--text);
}
.arrow svg { width: 16px; height: 16px; stroke-width: 2; }

/* ============================================
   CLASSE .SOON — discret + non cliquable
   ============================================ */
.link.soon {
  pointer-events: none;
  cursor: not-allowed;
}
.link.soon.in-view {
  opacity: 0.65;
}
.link.soon .icon { box-shadow: none; opacity: 0.85; }
.link.soon .title { color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.link.soon .description { color: rgba(255, 255, 255, 0.45); }
.link.soon .arrow { display: none; }

.soon-tag {
  flex-shrink: 0;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
footer {
  margin-top: auto; padding-top: 2.5rem;
  text-align: center;
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-low);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-quiet) 0.5s forwards;
}
footer .version {
  color: var(--text-dim);
  opacity: 0.85;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  main {
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .hero { padding: 1rem 0 1.25rem; }
  .avatar { width: 70px; height: 70px; margin-bottom: 1.25rem; }
  .avatar::after { font-size: 1.8rem; }
  .name { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .subtitle { font-size: 0.8rem; }
  .links { gap: 0.75rem; margin-top: 1rem; }
  .link { padding: 1.05rem 1.15rem; gap: 0.9rem; }
  .icon { width: 44px; height: 44px; }
  .title { font-size: 0.98rem; }
  .description { font-size: 0.73rem; }
  footer { padding-top: 1.25rem; }
}

/* ============ ACCESSIBILITÉ ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob, .avatar { animation: none; }
}
