/* link.ludoc.net — linktree (DA commune sombre VHS). Tokens partagés avec ludoc.net. */
:root {
  --bg: #0c0d10;
  --bg-2: #121419;
  --card: #16181f;
  --card-hover: #1c1f28;
  --text: #f4f5f7;
  --muted: #9aa0ac;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6c7bff;
  --accent-2: #ff5f9e;
  --hover-line: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, sans-serif; color: var(--text); background: radial-gradient(circle at 50% -10%, #1a1d27 0%, var(--bg) 55%); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ============ FOND ============ */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.4; }
.orb-1 { width: 560px; height: 560px; background: var(--accent); top: -160px; left: -140px; }
.orb-2 { width: 520px; height: 520px; background: var(--accent-2); top: 30%; right: -160px; opacity: 0.3; }
.orb-3 { width: 480px; height: 480px; background: #28d8b0; bottom: -180px; left: 20%; opacity: 0.2; }

/* Grain VHS très léger sur toute la page, en mouvement subtil */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  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");
  background-size: 160px 160px; mix-blend-mode: screen; animation: grainDrift .25s steps(4) infinite;
}
@keyframes grainDrift { 0% { background-position: 0 0; } 25% { background-position: -40px 30px; } 50% { background-position: 30px -50px; } 75% { background-position: -20px 60px; } 100% { background-position: 50px 20px; } }

/* ============ LAYOUT ============ */
.lk { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; padding: 48px 22px 24px; }

/* ============ EN-TÊTE PROFIL ============ */
.lk__head { text-align: center; margin-bottom: 34px; }
.lk__avatar { position: relative; width: 108px; height: 108px; margin: 0 auto 16px; display: grid; place-items: center; }
/* halo dégradé animé derrière le logo */
.lk__avatar::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #28d8b0, var(--accent));
  filter: blur(8px); opacity: .55; z-index: 0; animation: haloSpin 9s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }
.lk__avatar-ring { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); display: grid; place-items: center; box-shadow: var(--shadow); }
.lk__logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0e0f13; display: block; transition: transform .35s ease, filter .35s ease; }
.lk__avatar:hover .lk__logo { transform: scale(1.05); filter: drop-shadow(-1.5px 0 #ff0033) drop-shadow(1.5px 0 #00ccff) contrast(1.06) saturate(1.12); }

.lk__name { margin: 0 0 7px; font-family: "Montserrat", "Inter", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: .05em; line-height: 1; background: linear-gradient(90deg, #fff 0%, #cfd5ff 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lk__bio { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; letter-spacing: .02em; }

/* ============ LIENS ============ */
.lk__links { display: flex; flex-direction: column; gap: 13px; }

.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.lk-item {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 15px 18px;
  background: rgba(22,24,31,.46);
  backdrop-filter: url(#lgDistort) blur(14px) saturate(1.7);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.22);
  transition: transform .22s cubic-bezier(.16,.7,.18,1), background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* lueur dégradée qui balaye au survol */
.lk-item::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, rgba(108,123,255,.16), rgba(255,95,158,.14));
  transition: opacity .3s ease;
}
/* fine barre d'accent à gauche, révélée au survol */
.lk-item::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: center; transition: transform .26s cubic-bezier(.16,.7,.18,1);
}
.lk-item:hover, .lk-item:focus-visible { background: rgba(28,31,40,.6); border-color: var(--hover-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--shadow); transform: translateY(-2px); outline: none; }
.lk-item:hover::before, .lk-item:focus-visible::before { opacity: 1; }
.lk-item:hover::after, .lk-item:focus-visible::after { transform: scaleY(1); }
.lk-item:active { transform: translateY(0) scale(.985); transition-duration: .08s; }

.lk-item__icon {
  position: relative; z-index: 1; flex: 0 0 42px; width: 42px; height: 42px;
  display: grid; place-items: center; font-size: 1.25rem; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: transform .26s cubic-bezier(.16,.7,.18,1), background .25s ease, border-color .25s ease;
}
.lk-item:hover .lk-item__icon, .lk-item:focus-visible .lk-item__icon { background: rgba(108,123,255,.16); border-color: rgba(108,123,255,.4); transform: scale(1.06) rotate(-3deg); }
.lk-item__label { position: relative; z-index: 1; flex: 1; letter-spacing: .01em; }
.lk-item__chev { position: relative; z-index: 1; color: var(--muted); font-size: 1.35rem; line-height: 1; transition: transform .22s ease, color .22s ease; }
.lk-item:hover .lk-item__chev, .lk-item:focus-visible .lk-item__chev { color: var(--text); transform: translateX(4px); }

/* ============ APPARITION EN CASCADE ============ */
.lk-item { opacity: 0; transform: translateY(14px); animation: itemIn .5s cubic-bezier(.16,.7,.18,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes itemIn { to { opacity: 1; transform: translateY(0); } }
/* l'en-tête aussi entre doucement */
.lk__head { opacity: 0; transform: translateY(10px); animation: itemIn .55s cubic-bezier(.16,.7,.18,1) .05s forwards; }

/* ============ ÉTATS (chargement / vide) ============ */
.lk-empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: .95rem; }
.lk-skel { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 15px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lk-skel__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; }
.lk-skel__bar { height: 13px; border-radius: 7px; width: 55%; }
.lk-skel__icon, .lk-skel__bar { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 560px) {
  .lk { padding: 32px 18px 20px; }
  .lk__avatar { width: 96px; height: 96px; }
  .lk-item { font-size: .98rem; }
}

/* ============ ACCESSIBILITÉ — MOUVEMENT RÉDUIT ============ */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .lk__avatar::before { animation: none; }
  .lk__head, .lk-item { opacity: 1; transform: none; animation: none; }
  .lk-skel__icon, .lk-skel__bar { animation: none; }
  .lk-item, .lk-item__icon, .lk-item__chev, .lk__logo, .lk-item::after, .lk-item::before { transition: none; }
}
