/* ==========================================================================
   VARIABLES
   Toutes les couleurs et réglages globaux sont ici : modifie-les pour
   changer le thème sans toucher au reste du fichier.
   ========================================================================== */
:root {
  --bg: #0b0c0f;                       /* fond de page, presque noir */
  --bg-elevated: #14161a;              /* fond légèrement plus clair (avatar) */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(196, 138, 90, 0.55);
  --text: #f3f2ef;                     /* texte principal, blanc cassé */
  --text-muted: #9c9a96;               /* texte secondaire */
  --accent: #c48a5a;                   /* couleur d'accent (cuivre) */
  --accent-soft: rgba(196, 138, 90, 0.12);
  --radius: 10px;
  --radius-sm: 8px;
  --max-width: 440px;
  --transition: 150ms ease;
}

/* ==========================================================================
   RESET DE BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

/* Respecte la préférence "mouvement réduit" du système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   BASE DE LA PAGE
   Pas de police externe chargée exprès : la pile ci-dessous utilise la
   police système de l'appareil (SF Pro sur Mac/iOS, Segoe UI sur Windows,
   Roboto sur Android…). Résultat : rendu moderne, zéro requête réseau
   supplémentaire, chargement instantané.
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(2.5rem, 10vh, 5.5rem) 1.25rem;
}

.card {
  width: 100%;
  max-width: var(--max-width);
}

/* ==========================================================================
   PROFIL (avatar, nom, description)
   ========================================================================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.75rem;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.role {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.track {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   LISTE DE LIENS
   ========================================================================== */
.links li + li {
  margin-top: 0.6rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background-color var(--transition);
}
.link-row:hover,
.link-row:focus-visible {
  border-color: var(--border-hover);
  background: var(--accent-soft);
}
.link-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.badge {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.link-text {
  flex: 1 1 auto;
  min-width: 0; /* permet à .link-sub de tronquer proprement le texte */
}

.link-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.link-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  flex: none;
  color: var(--text-muted);
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
