:root {
  --page-bg: #101216;
  --page-glow: #202736;
  --window-bg: #20242c;
  --window-border: #080a0e;
  --title-start: #111827;
  --title-end: #334155;
  --panel: #2a303b;
  --panel-hover: #343c49;
  --panel-border-light: #596273;
  --panel-border-dark: #11151d;
  --text: #f1f5f9;
  --muted: #aeb8c7;
  --accent: #91a8d0;
  --danger: #b44747;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: clamp(18px, 5vw, 64px);
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: Tahoma, Verdana, sans-serif;
  background:
    radial-gradient(circle at 50% 10%, var(--page-glow) 0, transparent 48%),
    linear-gradient(180deg, #171a20 0%, var(--page-bg) 100%);
}

/* Fenêtre rétro inspirée de Windows XP, adaptée au thème sombre. */
#window {
  width: min(100%, 820px);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--window-border);
  border-radius: 7px 7px 4px 4px;
  background: var(--window-bg);
  box-shadow:
    5px 6px 0 rgba(0, 0, 0, .55),
    0 18px 50px rgba(0, 0, 0, .38),
    inset 0 0 0 1px #4b5565;
}

#title-bar {
  min-height: 38px;
  padding: 5px 7px 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--title-start), var(--title-end));
  border-bottom: 1px solid #06080c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  user-select: none;
}

.title-text {
  font-size: 1rem;
  letter-spacing: .01em;
  text-shadow: 1px 1px 1px #000;
}

.controls {
  display: flex;
  gap: 4px;
}

.control-btn {
  width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 15px/1 Tahoma, sans-serif;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 3px;
  background: #475569;
  box-shadow: inset 1px 1px rgba(255, 255, 255, .18), inset -1px -1px rgba(0, 0, 0, .35);
}

.control-btn.close {
  background: var(--danger);
}

.window-content {
  padding: clamp(28px, 6vw, 58px) clamp(20px, 8vw, 76px);
  border: 1px solid #414957;
  border-top: 0;
}

.avatar {
  margin-bottom: 32px;
  display: grid;
  justify-items: center;
  position: relative;
  text-align: center;
}

.avatar img {
  width: clamp(112px, 24vw, 148px);
  aspect-ratio: 1;
  display: block;
  position: relative;
  z-index: 2;
  object-fit: cover;
  border: 4px groove #d5dae3;
  border-radius: 7px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: transform .2s ease, filter .2s ease;
}

.avatar-frame {
  width: calc(clamp(112px, 24vw, 148px) + 14px);
  aspect-ratio: 1;
  position: absolute;
  top: -7px;
  z-index: 1;
  border-radius: 13px;
  background: linear-gradient(180deg, #78869a, #303846);
  box-shadow: 0 0 0 1px #0d1016, 0 0 18px rgba(145, 168, 208, .18);
}

.avatar:hover img {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.Username {
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  text-shadow: 1px 2px 0 #080a0e;
}

.Links-primary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  min-height: 58px;
  padding: 15px 48px;
  display: flex;
  text-decoration: none;
  align-items: center;
  position: relative;
  cursor: pointer;
  color: var(--text);
  border: 2px outset var(--panel-border-light);
  border-radius: 5px;
  background: linear-gradient(180deg, #303744, var(--panel));
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.link-card::after {
  content: "⋮";
  position: absolute;
  right: 16px;
  color: var(--muted);
  font-size: 1.25rem;
}

.link-icon {
  width: 24px;
  position: absolute;
  left: 17px;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(1px 1px 0 #05070a);
  transition: color .12s ease, transform .12s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(180deg, #3c4656, var(--panel-hover));
  border-color: #76839a;
}

.link-card:hover .link-icon {
  color: #dbe8ff;
  transform: scale(1.1);
}

.link-card:active {
  transform: translate(2px, 2px);
  border-style: inset;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-card .text {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 #05070a;
}

@media (max-width: 560px) {
  body {
    padding: 12px;
    place-items: start center;
  }

  #window {
    margin-top: 8px;
  }

  .window-content {
    padding: 30px 16px 24px;
  }

  .avatar {
    margin-bottom: 25px;
  }

  .link-card {
    min-height: 54px;
    padding: 13px 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
