/* ===================================================
   EUKALIPTUS — PERSONAL SITE STYLES
   Glassmorphism · Neon · Gaming · Dark
   =================================================== */

/* ── Fallback font ajusté pour minimiser le CLS lors du swap vers Outfit ──
   size-adjust, ascent-override, descent-override calibrés sur les métriques Outfit
   pour que la police de substitution (Arial) occupe le même espace visuel. */
@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
  size-adjust: 96%;
  ascent-override: 96%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #080b14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);

  --neon-purple: #8b5cf6;
  --neon-blue: #38bdf8;
  --neon-pink: #f472b6;
  --neon-green: #4ade80;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --discord-color: #5865f2;
  --spotify-color: #1db954;
  --youtube-color: #ff0000;
  --valorant-color: #ff4655;
  --steam-color: #1b2838;
  --medal-color: #ffb800;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', 'Outfit Fallback', sans-serif;
  --blur: blur(20px);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg-base: #f0f4f8;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(237, 242, 248, 0.95);
  --border: rgba(0, 0, 0, 0.10);
  --border-glow: rgba(139, 92, 246, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}
[data-theme="light"] body { background-color: var(--bg-base); }
[data-theme="light"] #particles-canvas { opacity: 0.2; }
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .hero-name { text-shadow: none; }

/* ---------- Ocean theme ---------- */
[data-theme="ocean"] {
  --bg-base: #02101e;
  --bg-card: rgba(14, 165, 233, 0.06);
  --bg-card-hover: rgba(14, 165, 233, 0.11);
  --border: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(56, 189, 248, 0.4);
  --neon-purple: #38bdf8;
  --text-primary: #e0f4ff;
  --text-secondary: rgba(224, 244, 255, 0.6);
  --text-muted: rgba(224, 244, 255, 0.35);
}

/* ---------- Sunset theme ---------- */
[data-theme="sunset"] {
  --bg-base: #0e050a;
  --bg-card: rgba(244, 114, 182, 0.06);
  --bg-card-hover: rgba(244, 114, 182, 0.11);
  --border: rgba(244, 114, 182, 0.14);
  --border-glow: rgba(251, 146, 60, 0.45);
  --neon-purple: #fb923c;
  --text-primary: #ffe4f0;
  --text-secondary: rgba(255, 228, 240, 0.6);
  --text-muted: rgba(255, 228, 240, 0.35);
}

/* ---------- Cyber theme ---------- */
[data-theme="cyber"] {
  --bg-base: #020c06;
  --bg-card: rgba(0, 255, 128, 0.04);
  --bg-card-hover: rgba(0, 255, 128, 0.09);
  --border: rgba(0, 255, 128, 0.12);
  --border-glow: rgba(0, 255, 128, 0.38);
  --neon-purple: #00ff80;
  --text-primary: #e0fff0;
  --text-secondary: rgba(224, 255, 240, 0.6);
  --text-muted: rgba(224, 255, 240, 0.35);
}
[data-theme="cyber"] #particles-canvas { opacity: 0.5; }

/* ╔══════════════════════════════════════════════════════╗
   ║         THÈMES PREMIUM — Complément requis           ║
   ╚══════════════════════════════════════════════════════╝ */

/* ---------- Aurora (Northern Lights emerald/teal) ---------- */
[data-theme="aurora"] {
  --bg-base: #020e0a;
  --bg-card: rgba(52, 211, 153, 0.05);
  --bg-card-hover: rgba(52, 211, 153, 0.10);
  --border: rgba(52, 211, 153, 0.12);
  --border-glow: rgba(52, 211, 153, 0.45);
  --neon-purple: #34d399;
  --text-primary: #d1fae5;
  --text-secondary: rgba(209, 250, 229, 0.60);
  --text-muted: rgba(209, 250, 229, 0.35);
}
[data-theme="aurora"] body {
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(52,211,153,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 15% 85%, rgba(139,92,246,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 40%, rgba(16,185,129,0.07) 0%, transparent 50%);
}
@keyframes auroraWave {
  0%, 100% { opacity: 0.6; transform: scaleX(1) translateY(0); }
  50%       { opacity: 1;   transform: scaleX(1.04) translateY(-8px); }
}
[data-theme="aurora"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(52,211,153,0.05) 0%,
    transparent 40%,
    rgba(139,92,246,0.04) 100%);
  animation: auroraWave 8s ease-in-out infinite;
  will-change: transform, opacity;
  contain: layout style;
  pointer-events: none;
  z-index: 0;
}
[data-theme="aurora"] .hero-name {
  filter: drop-shadow(0 0 18px rgba(52,211,153,0.65));
}
[data-theme="aurora"] .card:hover {
  box-shadow: 0 8px 32px rgba(52,211,153,0.2), 0 0 0 1px rgba(52,211,153,0.2);
}

/* ---------- Midnight (Deep cosmic indigo) ---------- */
[data-theme="midnight"] {
  --bg-base: #010318;
  --bg-card: rgba(129, 140, 248, 0.05);
  --bg-card-hover: rgba(129, 140, 248, 0.10);
  --border: rgba(129, 140, 248, 0.10);
  --border-glow: rgba(129, 140, 248, 0.50);
  --neon-purple: #818cf8;
  --text-primary: #e0e7ff;
  --text-secondary: rgba(224, 231, 255, 0.60);
  --text-muted: rgba(224, 231, 255, 0.35);
}
[data-theme="midnight"] body {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79,70,229,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 55%, rgba(99,102,241,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 55% 40% at 12% 75%, rgba(67,56,202,0.08) 0%, transparent 55%);
}
[data-theme="midnight"] .hero-name {
  text-shadow: 0 0 20px rgba(129,140,248,0.7), 0 0 45px rgba(129,140,248,0.3);
}
[data-theme="midnight"] .card:hover {
  box-shadow: 0 8px 32px rgba(129,140,248,0.2), 0 0 0 1px rgba(129,140,248,0.2);
}

/* ---------- Neon Tokyo (cyberpunk pink/cyan scanlines) ---------- */
[data-theme="neon-tokyo"] {
  --bg-base: #05000f;
  --bg-card: rgba(240, 171, 252, 0.04);
  --bg-card-hover: rgba(240, 171, 252, 0.09);
  --border: rgba(240, 171, 252, 0.11);
  --border-glow: rgba(240, 171, 252, 0.55);
  --neon-purple: #f0abfc;
  --neon-blue: #22d3ee;
  --text-primary: #fdf4ff;
  --text-secondary: rgba(253, 244, 255, 0.60);
  --text-muted: rgba(253, 244, 255, 0.35);
}
[data-theme="neon-tokyo"] body {
  background-image:
    radial-gradient(ellipse 60% 45% at 25% 25%, rgba(217,70,239,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 75% 65%, rgba(6,182,212,0.09) 0%, transparent 50%);
}
[data-theme="neon-tokyo"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(240,171,252,0.012) 3px,
    rgba(240,171,252,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style;
}
[data-theme="neon-tokyo"] .hero-name {
  text-shadow:
    0 0 10px #f0abfc,
    0 0 28px rgba(240,171,252,0.55),
    2px 0 8px rgba(34,211,238,0.45);
}
[data-theme="neon-tokyo"] .card:hover {
  box-shadow: 0 8px 32px rgba(240,171,252,0.22), 0 0 0 1px rgba(240,171,252,0.25);
}

/* ---------- Blood Moon (crimson dark vignette) ---------- */
[data-theme="blood-moon"] {
  --bg-base: #090000;
  --bg-card: rgba(239, 68, 68, 0.05);
  --bg-card-hover: rgba(239, 68, 68, 0.10);
  --border: rgba(239, 68, 68, 0.12);
  --border-glow: rgba(239, 68, 68, 0.50);
  --neon-purple: #ef4444;
  --text-primary: #fee2e2;
  --text-secondary: rgba(254, 226, 226, 0.60);
  --text-muted: rgba(254, 226, 226, 0.35);
}
[data-theme="blood-moon"] body {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 105%, rgba(220,38,38,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 8%, rgba(185,28,28,0.08) 0%, transparent 55%);
}
@keyframes moonPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}
[data-theme="blood-moon"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 40% 30% at 50% -5%, rgba(239,68,68,0.08) 0%, transparent 55%);
  animation: moonPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  contain: layout style;
}
[data-theme="blood-moon"] .hero-name {
  text-shadow: 0 0 20px rgba(239,68,68,0.75), 0 0 45px rgba(239,68,68,0.30);
}
[data-theme="blood-moon"] .card:hover {
  box-shadow: 0 8px 32px rgba(239,68,68,0.22), 0 0 0 1px rgba(239,68,68,0.25);
}

/* ---------- Galaxy (nebula violet/deep space) ---------- */
[data-theme="galaxy"] {
  --bg-base: #03000e;
  --bg-card: rgba(167, 139, 250, 0.05);
  --bg-card-hover: rgba(167, 139, 250, 0.10);
  --border: rgba(167, 139, 250, 0.10);
  --border-glow: rgba(167, 139, 250, 0.50);
  --neon-purple: #a78bfa;
  --text-primary: #ede9fe;
  --text-secondary: rgba(237, 233, 254, 0.60);
  --text-muted: rgba(237, 233, 254, 0.35);
}
[data-theme="galaxy"] body {
  background-image:
    radial-gradient(ellipse 85% 55% at 40% 20%, rgba(124,58,237,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 80% 72%, rgba(167,139,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 8% 55%, rgba(109,40,217,0.09) 0%, transparent 50%);
}
@keyframes nebulaRotate {
  0%   { transform: rotate(0deg)   scale(1);    }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1);    }
}
[data-theme="galaxy"] body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: conic-gradient(from 0deg at 55% 45%,
    rgba(124,58,237,0.04) 0deg,
    transparent 120deg,
    rgba(167,139,250,0.04) 180deg,
    transparent 300deg,
    rgba(124,58,237,0.03) 360deg);
  animation: nebulaRotate 60s linear infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style;
}
[data-theme="galaxy"] .hero-name {
  text-shadow: 0 0 20px rgba(167,139,250,0.78), 0 0 48px rgba(167,139,250,0.32);
}
[data-theme="galaxy"] .card:hover {
  box-shadow: 0 8px 32px rgba(167,139,250,0.22), 0 0 0 1px rgba(167,139,250,0.25);
}

/* ╔══════════════════════════════════════════════════════╗
   ║     FONDS ANIMÉS PREMIUM — Complément requis         ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Wave — vague animée en bas de l'écran ──────────────── */
#wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#wave-bg svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}
@keyframes waveScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#wave-bg .wave1 { animation: waveScroll 14s linear infinite; opacity: 0.45; }
#wave-bg .wave2 { animation: waveScroll 10s linear infinite reverse; opacity: 0.30; }
#wave-bg .wave3 { animation: waveScroll 18s linear infinite; opacity: 0.20; }

/* ── Gradient mesh — blobs flottants animés ─────────────── */
#mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
@keyframes meshFloat1 {
  0%,100% { transform: translate(0, 0) scale(1);       }
  33%      { transform: translate(6vw, -4vh) scale(1.1); }
  66%      { transform: translate(-4vw, 5vh) scale(0.9); }
}
@keyframes meshFloat2 {
  0%,100% { transform: translate(0, 0) scale(1);         }
  40%      { transform: translate(-7vw, 6vh) scale(1.15); }
  70%      { transform: translate(5vw, -5vh) scale(0.95); }
}
@keyframes meshFloat3 {
  0%,100% { transform: translate(0, 0) scale(1);        }
  50%      { transform: translate(4vw, 8vh) scale(1.08); }
}
.mesh-blob-1 {
  width: 55vw; height: 55vw;
  top: -15vw; left: 10vw;
  background: var(--neon-purple, #8b5cf6);
  animation: meshFloat1 20s ease-in-out infinite;
}
.mesh-blob-2 {
  width: 45vw; height: 45vw;
  bottom: -10vw; right: 5vw;
  background: var(--neon-blue, #38bdf8);
  animation: meshFloat2 16s ease-in-out infinite;
}
.mesh-blob-3 {
  width: 35vw; height: 35vw;
  top: 40vh; left: -10vw;
  background: var(--neon-pink, #f472b6);
  animation: meshFloat3 24s ease-in-out infinite;
}

/* ── Stars canvas ── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── New animation canvases ─────────────────────────────── */
#matrix-canvas,
#fireflies-canvas,
#snow-canvas,
#aurora-waves-canvas,
#neon-grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   FONDS PRESET — Arrière-plans CSS épurés
   ═══════════════════════════════════════════════════════════ */

#bg-preset-layer {
  position: fixed;
  inset: 0;
  z-index: 0;    /* même niveau que les autres layers bg (ordre DOM = profondeur) */
  pointer-events: none;
  overflow: hidden;    /* contient le canvas interne */
  background-size: cover;
  background-position: center;
}

/* ── Topographie — fond de base, le canvas animé s'en charge ── */
#bg-preset-layer.preset-topo {
  background: #07090f;   /* canvas _initTopoAnimation() dessine par-dessus */
}

/* ── Forêt nocturne — profondeur et brume végétale ──────── */
#bg-preset-layer.preset-foret {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%,   rgba(2, 22, 4, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 55% 75% at 5%  100%,  rgba(0, 18, 5, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 55% 75% at 95% 100%,  rgba(0, 14, 4, 0.80) 0%, transparent 60%),
    radial-gradient(ellipse 70% 35% at 50% 100%,  rgba(1, 12, 2, 1.00) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 50% 42%,   rgba(5, 35, 10, 0.40) 0%, transparent 70%),
    linear-gradient(180deg, #010c01 0%, #000902 45%, #000200 100%);
}

/* ── Cosmos — nébuleuse sombre violet / teal ────────────── */
#bg-preset-layer.preset-cosmos {
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%,  rgba(70,  5, 120, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 82% 72%,  rgba(  0, 70, 90, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 62% 18%,  rgba( 90,  0, 65, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 38% 85%,  rgba(  0, 35, 70, 0.40) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 88% 15%,  rgba( 40,  0, 80, 0.30) 0%, transparent 50%),
    linear-gradient(145deg, #03000c 0%, #060013 50%, #00090f 100%);
}

/* ── Marbre noir — veines diagonales sur ardoise sombre ─── */
#bg-preset-layer.preset-marbre {
  background-color: #0f1011;
  background-image:
    repeating-linear-gradient(
      122deg,
      transparent            0px,
      transparent           18px,
      rgba(255,255,255,0.018) 18px,
      rgba(255,255,255,0.018) 19px,
      transparent           19px,
      transparent           38px,
      rgba(255,255,255,0.030) 38px,
      rgba(255,255,255,0.030) 39px,
      transparent           39px,
      transparent           62px,
      rgba(255,255,255,0.012) 62px,
      rgba(255,255,255,0.012) 63px
    ),
    repeating-linear-gradient(
      -58deg,
      transparent            0px,
      transparent           28px,
      rgba(255,255,255,0.010) 28px,
      rgba(255,255,255,0.010) 29px,
      transparent           29px,
      transparent           55px,
      rgba(255,255,255,0.016) 55px,
      rgba(255,255,255,0.016) 56px
    ),
    linear-gradient(135deg, #121416 0%, #0d0e10 40%, #131517 70%, #0b0c0d 100%);
}

/* ── Brume violette — atmosphère mystique indigo ────────── */
#bg-preset-layer.preset-brume {
  background:
    radial-gradient(ellipse 75% 55% at 28% 38%,  rgba(105, 30, 185, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 55% 75% at 78% 72%,  rgba( 60,  0, 130, 0.32) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 62% 18%,  rgba(145, 20, 105, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 85% 45% at 50% 100%, rgba( 85,  0, 110, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 12% 75%,  rgba( 50,  0,  90, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #080510 0%, #0b0718 50%, #060410 100%);
}

/* ── Ardoise — micro-grille épurée sur gris anthracite ──── */
#bg-preset-layer.preset-ardoise {
  background-color: #0f1115;
  background-image:
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='rgba(255%2C255%2C255%2C0.028)' stroke-width='1'/%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='rgba(255%2C255%2C255%2C0.028)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='1.2' fill='rgba(255%2C255%2C255%2C0.04)'/%3E%3Ccircle cx='0'  cy='0'  r='1.2' fill='rgba(255%2C255%2C255%2C0.03)'/%3E%3Ccircle cx='80' cy='0'  r='1.2' fill='rgba(255%2C255%2C255%2C0.03)'/%3E%3Ccircle cx='0'  cy='80' r='1.2' fill='rgba(255%2C255%2C255%2C0.03)'/%3E%3Ccircle cx='80' cy='80' r='1.2' fill='rgba(255%2C255%2C255%2C0.03)'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── Background image layer (moderated) ────────────────── */
#bg-image-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.3s, filter 0.3s;
  /* opacity + filter controlled dynamically by JS */
}

/* ── Hide particles canvas per bg-anim type ────────────── */
body[data-bg-anim="particles-dense"] #particles-canvas { display: none; }
body[data-bg-anim="stars"]           #particles-canvas { display: none; }
body[data-bg-anim="wave"]            #particles-canvas { opacity: 0.12; }
body[data-bg-anim="gradient-mesh"]   #particles-canvas { display: none; }
body[data-bg-anim="matrix"]          #particles-canvas { display: none; }
body[data-bg-anim="fireflies"]       #particles-canvas { display: none; }
body[data-bg-anim="snow"]            #particles-canvas { opacity: 0.18; }
body[data-bg-anim="aurora-waves"]    #particles-canvas { display: none; }
body[data-bg-anim="neon-grid"]       #particles-canvas { display: none; }

/* ═══════════════════════════════════════════════════════════
   THÈMES GRATUITS SUPPLÉMENTAIRES
   ═══════════════════════════════════════════════════════════ */

/* ---------- Forest (forêt sombre émeraude) ---------- */
[data-theme="forest"] {
  --bg-base: #010d05;
  --bg-card: rgba(34, 197, 94, 0.05);
  --bg-card-hover: rgba(34, 197, 94, 0.10);
  --border: rgba(34, 197, 94, 0.12);
  --border-glow: rgba(34, 197, 94, 0.40);
  --neon-purple: #22c55e;
  --text-primary: #dcfce7;
  --text-secondary: rgba(220, 252, 231, 0.60);
  --text-muted: rgba(220, 252, 231, 0.35);
}
[data-theme="forest"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(21,128,61,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(22,163,74,0.07) 0%, transparent 55%);
}
[data-theme="forest"] .hero-name {
  text-shadow: 0 0 18px rgba(34,197,94,0.65), 0 0 40px rgba(34,197,94,0.25);
}
[data-theme="forest"] .card:hover {
  box-shadow: 0 8px 32px rgba(34,197,94,0.18), 0 0 0 1px rgba(34,197,94,0.2);
}

/* ---------- Rose (doux rosé/framboise) ---------- */
[data-theme="rose"] {
  --bg-base: #100508;
  --bg-card: rgba(251, 113, 133, 0.05);
  --bg-card-hover: rgba(251, 113, 133, 0.10);
  --border: rgba(251, 113, 133, 0.13);
  --border-glow: rgba(251, 113, 133, 0.42);
  --neon-purple: #fb7185;
  --text-primary: #ffe4e6;
  --text-secondary: rgba(255, 228, 230, 0.60);
  --text-muted: rgba(255, 228, 230, 0.35);
}
[data-theme="rose"] body {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(244,63,94,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 70%, rgba(251,113,133,0.07) 0%, transparent 50%);
}
[data-theme="rose"] .hero-name {
  text-shadow: 0 0 18px rgba(251,113,133,0.65), 0 0 40px rgba(251,113,133,0.25);
}
[data-theme="rose"] .card:hover {
  box-shadow: 0 8px 32px rgba(251,113,133,0.18), 0 0 0 1px rgba(251,113,133,0.2);
}

/* ═══════════════════════════════════════════════════════════
   THÈMES PREMIUM SUPPLÉMENTAIRES — Complément requis
   ═══════════════════════════════════════════════════════════ */

/* ---------- Synthwave (rétro 80s magenta/violet) ---------- */
[data-theme="synthwave"] {
  --bg-base: #0d0015;
  --bg-card: rgba(232, 121, 249, 0.05);
  --bg-card-hover: rgba(232, 121, 249, 0.10);
  --border: rgba(232, 121, 249, 0.11);
  --border-glow: rgba(232, 121, 249, 0.55);
  --neon-purple: #e879f9;
  --neon-blue: #818cf8;
  --text-primary: #fdf4ff;
  --text-secondary: rgba(253, 244, 255, 0.60);
  --text-muted: rgba(253, 244, 255, 0.35);
}
[data-theme="synthwave"] body {
  background-image:
    linear-gradient(180deg, rgba(126,34,206,0.18) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% 105%, rgba(232,121,249,0.14) 0%, transparent 55%);
}
[data-theme="synthwave"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(232,121,249,0.010) 3px,
    rgba(232,121,249,0.010) 4px
  );
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style;
}
[data-theme="synthwave"] .hero-name {
  text-shadow:
    0 0 10px #e879f9,
    0 0 28px rgba(232,121,249,0.55),
    0 0 55px rgba(129,140,248,0.30);
}
[data-theme="synthwave"] .card:hover {
  box-shadow: 0 8px 32px rgba(232,121,249,0.22), 0 0 0 1px rgba(232,121,249,0.25);
}

/* ---------- Void (noir absolu, minimalisme) ---------- */
[data-theme="void"] {
  --bg-base: #000000;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 255, 255, 0.25);
  --neon-purple: #e2e8f0;
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.55);
  --text-muted: rgba(248, 250, 252, 0.30);
}
[data-theme="void"] .hero-name {
  text-shadow: 0 0 20px rgba(226,232,240,0.5), 0 0 45px rgba(226,232,240,0.20);
}
[data-theme="void"] .card:hover {
  box-shadow: 0 8px 32px rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.10);
}
[data-theme="void"] #particles-canvas { opacity: 0.25; }

/* ---------- Ice (bleu glacé arctique) ---------- */
[data-theme="ice"] {
  --bg-base: #01080d;
  --bg-card: rgba(125, 211, 252, 0.05);
  --bg-card-hover: rgba(125, 211, 252, 0.10);
  --border: rgba(125, 211, 252, 0.12);
  --border-glow: rgba(125, 211, 252, 0.45);
  --neon-purple: #7dd3fc;
  --text-primary: #e0f2fe;
  --text-secondary: rgba(224, 242, 254, 0.60);
  --text-muted: rgba(224, 242, 254, 0.35);
}
[data-theme="ice"] body {
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 30% at 90% 70%, rgba(125,211,252,0.08) 0%, transparent 50%);
}
@keyframes iceShimmer {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}
[data-theme="ice"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 30%, rgba(186,230,253,0.04) 0%, transparent 55%);
  animation: iceShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  contain: layout style;
}
[data-theme="ice"] .hero-name {
  text-shadow: 0 0 20px rgba(125,211,252,0.70), 0 0 45px rgba(125,211,252,0.30);
}
[data-theme="ice"] .card:hover {
  box-shadow: 0 8px 32px rgba(125,211,252,0.18), 0 0 0 1px rgba(125,211,252,0.2);
}

/* ---------- Lava (magma orange-rouge incandescent) ---------- */
[data-theme="lava"] {
  --bg-base: #0d0200;
  --bg-card: rgba(249, 115, 22, 0.05);
  --bg-card-hover: rgba(249, 115, 22, 0.10);
  --border: rgba(249, 115, 22, 0.13);
  --border-glow: rgba(249, 115, 22, 0.50);
  --neon-purple: #f97316;
  --text-primary: #ffedd5;
  --text-secondary: rgba(255, 237, 213, 0.60);
  --text-muted: rgba(255, 237, 213, 0.35);
}
[data-theme="lava"] body {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(239,68,68,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 15% 80%, rgba(249,115,22,0.10) 0%, transparent 55%);
}
@keyframes lavaPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.03); }
}
[data-theme="lava"] body::before {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 120%;
  height: 50%;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(234,88,12,0.13) 0%, transparent 70%);
  animation: lavaPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  contain: layout style;
}
[data-theme="lava"] .hero-name {
  text-shadow: 0 0 20px rgba(249,115,22,0.75), 0 0 45px rgba(249,115,22,0.30);
}
[data-theme="lava"] .card:hover {
  box-shadow: 0 8px 32px rgba(249,115,22,0.22), 0 0 0 1px rgba(249,115,22,0.25);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* réserve l'espace scrollbar dès le départ → évite le reflow vw */
}

body {
  font-family: var(--font-family, var(--font));
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================================
   PARTICLES CANVAS
   ========================================= */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-bracket {
  color: var(--neon-purple);
}

.logo-name {
  color: var(--text-primary);
  margin: 0 2px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--neon-purple);
  border-color: var(--border-glow);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* ── Report button ── */
.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.report-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* =========================================
   REPORT MODAL
   ========================================= */
.report-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.report-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.report-modal {
  background: #13131f;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.report-overlay.open .report-modal {
  transform: translateY(0) scale(1);
}

.report-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.report-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 1rem;
  flex-shrink: 0;
}
.report-modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 .15rem;
}
.report-modal-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}
.report-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.report-close-btn:hover { color: #f1f5f9; background: rgba(255,255,255,.06); }

.report-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: .6rem;
}

.report-reasons { display: flex; flex-direction: column; gap: .35rem; }
.report-reason-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .88rem;
  color: #cbd5e1;
  background: rgba(255,255,255,.03);
  transition: background .15s, border-color .15s, color .15s;
}
.report-reason-item:hover { background: rgba(255,255,255,.07); color: #f1f5f9; }
.report-reason-item input[type="radio"] { display: none; }
.report-reason-item:has(input:checked) {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.report-reason-icon { font-size: .95rem; width: 20px; text-align: center; }

.report-textarea {
  width: 100%;
  margin-top: .5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #f1f5f9;
  font-family: var(--font);
  font-size: .88rem;
  padding: .7rem .9rem;
  resize: vertical;
  min-height: 80px;
  max-height: 160px;
  outline: none;
  transition: border-color .15s;
}
.report-textarea:focus { border-color: rgba(239,68,68,.4); }
.report-textarea::placeholder { color: var(--text-secondary); }
.report-char-count {
  text-align: right;
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .25rem;
}

.report-screenshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: .6rem .8rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  gap: .5rem;
  flex-wrap: wrap;
}
.report-screenshot-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #cbd5e1;
  cursor: pointer;
}
.report-screenshot-hint {
  font-size: .75rem;
  color: var(--text-secondary);
}

.report-error {
  margin-top: .9rem;
  padding: .6rem .9rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: .82rem;
}

.report-modal-footer {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.4rem;
}
.report-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s;
}
.report-cancel-btn:hover { border-color: rgba(255,255,255,.2); color: #f1f5f9; }
.report-submit-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  padding: .6rem 1.3rem;
  border-radius: 9px;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}
.report-submit-btn:hover:not(:disabled) { opacity: .88; }
.report-submit-btn:active:not(:disabled) { transform: scale(.97); }
.report-submit-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Success state ── */
.report-modal.report-success .report-modal-icon {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color: #22c55e;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* =========================================
   LAYOUT VARIANTS
   ========================================= */

/* ── Full-width : cartes plus larges ── */
.container[data-layout="full-width"] {
  max-width: 1200px;
}

/* ── Sidebar : héro fixe à gauche, contenu à droite ── */
@media (min-width: 768px) {
  .container[data-layout="sidebar"] {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    column-gap: 36px;
  }

  /* Le héro occupe toute la colonne gauche en sticky */
  .container[data-layout="sidebar"] .hero {
    grid-column: 1;
    grid-row: 1 / span 99;
    position: sticky;
    top: 96px; /* sous la navbar */
    text-align: center;
    padding: 32px 20px;
  }

  /* Tous les autres enfants directs vont dans la colonne droite */
  .container[data-layout="sidebar"] > *:not(.hero) {
    grid-column: 2;
  }
}

/* =========================================
   FADE-IN ANIMATION
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px 32px;
}

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(#8b5cf6 0deg, #38bdf8 110deg, #f472b6 230deg, #8b5cf6 360deg);
  animation: rotateBorder 3s linear infinite;
  filter: blur(3px);
  opacity: 0.95;
  transition: opacity 0.3s;
  will-change: transform, opacity;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

/* ── ring-none ─────────────────────── */
.avatar-ring.ring-none { display: none; }

/* ── ring-solid ────────────────────── */
.avatar-ring.ring-solid {
  inset: -5px;
  animation: none;
  background: var(--avatar-ring-color, #8b5cf6);
  filter: none;
  opacity: 1;
}

/* ── ring-rainbow ──────────────────── */
.avatar-ring.ring-rainbow {
  background: conic-gradient(
    #ff0000 0deg,   #ff6600 45deg,  #ffdd00 90deg,
    #00ee00 135deg, #00ccff 180deg, #0044ff 225deg,
    #cc00ff 270deg, #ff0077 315deg, #ff0000 360deg
  );
  animation: rotateBorder 2s linear infinite;
  filter: blur(2px);
  opacity: 1;
}

/* ── ring-pulse (Optimisé) ─────────── */
.avatar-ring.ring-pulse {
  background: var(--avatar-ring-color, #8b5cf6);
  animation: avatarPulseFast 2s ease-in-out infinite;
  /* Retrait du filter() animé pour GPU-perf */
}

@keyframes avatarPulseFast {
  0%, 100% { opacity: 0.2; transform: scale(0.95); }
  50%      { opacity: 0.8; transform: scale(1.08); }
}

/* ── ring-glow (Optimisé) ──────────── */
.avatar-ring.ring-glow {
  background: var(--avatar-ring-color, #38bdf8);
  /* Un seul blur statique fixe, on anime que l'opacité */
  filter: blur(12px);
  animation: avatarGlowFast 2.8s ease-in-out infinite;
}

@keyframes avatarGlowFast {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1;   }
}

/* ── ring-neon (Optimisé pseudo-élem) ── */
.avatar-ring.ring-neon {
  inset: -5px;
  background: var(--avatar-ring-color, #8b5cf6);
  filter: none;
  opacity: 1;
  animation: none; /* L'animation est sur le ::before */
}

/* Le pseudo-élément s'occupe du halo animé (GPU friendly via opacité) */
.avatar-ring.ring-neon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--avatar-ring-color, #8b5cf6);
  filter: blur(12px);
  z-index: -1;
  animation: neonPulseFast 2.2s ease-in-out infinite;
  will-change: opacity;
}

@keyframes neonPulseFast {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1;   }
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--bg-base);
  object-fit: cover;
  background: var(--bg-card);
}

/* Avatar decoration overlay */
.hero-decoration {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 148px;
  object-fit: contain;
  pointer-events: none;
}

/* Status dot */
.status-dot {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg-base);
  background: var(--text-muted);
  transition: var(--transition);
}

.status-dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.status-dot.idle {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-dot.dnd {
  background: var(--valorant-color);
  box-shadow: 0 0 8px var(--valorant-color);
}

.status-dot.offline {
  background: var(--text-muted);
}

/* Hero text */
.hero-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.neon-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #818cf8 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.5));
}

.hero-pronouns {
  font-size: 0.78rem;
  color: var(--neon-purple, #a78bfa);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0.2rem 0 0.25rem;
  padding: 3px 12px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.18);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Bio @mention links */
.bio-mention {
  color: var(--neon-blue, #38bdf8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}
.bio-mention:hover { color: var(--neon-purple, #8b5cf6); text-decoration: underline; }

/* Bio hyperlinks */
.bio-link {
  color: var(--neon-purple, #a78bfa);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  transition: color 0.18s, border-color 0.18s;
  word-break: break-all;
}
.bio-link:hover {
  color: #c4b5fd;
  border-bottom-color: rgba(196, 181, 253, 0.7);
}

/* Bio #tag badges */
.bio-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--neon-purple, #8b5cf6);
  font-size: 0.86em;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Badge */
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  transition: var(--transition);
}

.badge.online {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.badge.idle {
  border-color: #f59e0b;
  color: #f59e0b;
}

.badge.dnd {
  border-color: var(--valorant-color);
  color: var(--valorant-color);
}

.badge i {
  font-size: 0.6rem;
}

/* ── Profile Badges Container ──────── */
.hero-badges-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -6px;
  margin-bottom: 12px;
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.6) translateY(5px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);   }
}

/* ── Badge (Rond, Icon-only) ──────── */
.profile-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  cursor: default;
  animation: badgeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
  z-index: 10;
}

.profile-badge:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 20;
}

.profile-badge i {
  /* Assure que l'icône est parfaitement centrée */
  display: block;
}

/* ── Tooltip via ::before/::after ──────── */
.profile-badge::before,
.profile-badge::after {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  pointer-events: none;
  z-index: 30;
}

/* Bulle de texte */
.profile-badge::before {
  content: attr(data-tooltip);
  top: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

/* Flèche du tooltip */
.profile-badge::after {
  content: '';
  top: -12px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.profile-badge:hover::before,
.profile-badge:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Thèmes individuels des badges ──────── */

/* 🛡️ Vérifié — bleu Discord */
.badge-verified {
  border-color: rgba(88, 101, 242, 0.5);
  color: #a5b4fc;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.15), inset 0 0 12px rgba(88, 101, 242, 0.1);
}
.badge-verified:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.8);
  color: #c7d2fe;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.35), inset 0 0 15px rgba(88, 101, 242, 0.2);
}

/* 🔨 Modérateur — rouge/orange */
.badge-moderator {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15), inset 0 0 12px rgba(239, 68, 68, 0.1);
}
.badge-moderator:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fecaca;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35), inset 0 0 15px rgba(239, 68, 68, 0.2);
}

/* 👑 Owner — or */
.badge-owner {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.18), inset 0 0 12px rgba(245, 158, 11, 0.1);
}
.badge-owner:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.8);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.25);
}
.badge-owner i {
  filter: drop-shadow(0 0 3px rgba(252, 211, 77, 0.6));
}

/* 🌱 Early Adopter — vert émeraude */
.badge-early-adopter {
  border-color: rgba(52, 211, 153, 0.40);
  color: #6ee7b7;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.15), inset 0 0 12px rgba(52, 211, 153, 0.1);
}
.badge-early-adopter:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.30), inset 0 0 15px rgba(52, 211, 153, 0.2);
}

/* 💜 Supporter — violet/rose */
.badge-supporter {
  border-color: rgba(167, 139, 250, 0.42);
  color: #c4b5fd;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.16), inset 0 0 12px rgba(167, 139, 250, 0.1);
}
.badge-supporter:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.7);
  color: #ddd6fe;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.35), inset 0 0 15px rgba(167, 139, 250, 0.2);
}


/* CTA Buttons */
.hero-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.07);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
  backdrop-filter: var(--blur);
}

.btn-outline:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

/* =========================================
   GLASS CARDS
   ========================================= */
.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Subtle top glow line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0.5;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-icon {
  font-size: 1rem;
}

.discord-icon {
  color: var(--discord-color);
}

.spotify-icon {
  color: var(--spotify-color);
}

/* ---- Skeleton loader ---- */
.card-loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-avatar,
.skeleton-cover {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-avatar {
  border-radius: 50%;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.long {
  width: 80%;
}

.skeleton-line.short {
  width: 50%;
}

/* ---- Error state ---- */
.card-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 0;
}

.card-error i {
  font-size: 1.5rem;
  color: var(--valorant-color);
}

/* ---- Hidden helper ---- */
.hidden {
  display: none !important;
}

/* =========================================
   DISCORD CARD CONTENT
   ========================================= */

/* Service-colored top accent lines */
.discord-card::before {
  background: linear-gradient(90deg, transparent, var(--discord-color), transparent);
  opacity: 0.7;
}

.spotify-card::before {
  background: linear-gradient(90deg, transparent, var(--spotify-color), transparent);
  opacity: 0.6;
}

.discord-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--discord-color);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

.dc-info {
  flex: 1;
  min-width: 0;
}

/* Nom + statut sur la même ligne */
.dc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dc-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Statut en pill colorée */
.dc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(71, 85, 105, 0.15);
  border: 1px solid rgba(71, 85, 105, 0.25);
  color: var(--text-muted);
}

.dc-status i { font-size: 0.42rem; }

.dc-status.online {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--neon-green);
}

.dc-status.idle {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.dc-status.dnd {
  background: rgba(255, 70, 85, 0.1);
  border-color: rgba(255, 70, 85, 0.3);
  color: var(--valorant-color);
}

/* @username tag */
.dc-usertag {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
  margin-bottom: 4px;
}

/* Custom status text — bloc citation stylisé */
.dc-activity {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 7px;
  padding: 4px 8px 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 0 4px 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.45;
}

/* Jeu en cours — bloc visuel premium */
.dc-game-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  background: rgba(15, 17, 35, 0.6);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* Label "En train de jouer" avec point pulsant */
.dc-game-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neon-green);
}

.dc-game-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Ligne art + infos */
.dc-game-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-game-art {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.3);
}

.dc-game-info {
  min-width: 0;
  flex: 1;
}

.dc-game-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-game-detail {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dc-game-elapsed {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   SPOTIFY CARD CONTENT
   ========================================= */
.spotify-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0;
}

.sp-cover {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(29, 185, 84, 0.35);
}

.sp-info {
  flex: 1;
  min-width: 0;
}

.sp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress bar */
.sp-progress-bar {
  margin-top: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.sp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--spotify-color), #57e08a);
  border-radius: 999px;
  width: 0%;
  transition: width 1s linear;
}

/* Equalizer */
.sp-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 8px;
}

.sp-equalizer span {
  display: block;
  width: 3px;
  background: var(--spotify-color);
  border-radius: 2px;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.sp-equalizer span:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 0.7s;
}

.sp-equalizer span:nth-child(2) {
  animation-delay: 0.15s;
  animation-duration: 0.9s;
}

.sp-equalizer span:nth-child(3) {
  animation-delay: 0.3s;
  animation-duration: 0.6s;
}

.sp-equalizer span:nth-child(4) {
  animation-delay: 0.45s;
  animation-duration: 0.8s;
}

@keyframes eq {
  from {
    height: 3px;
  }

  to {
    height: 14px;
  }
}

/* Idle state */
.spotify-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

.spotify-idle i {
  font-size: 1.8rem;
  color: var(--spotify-color);
  opacity: 0.4;
}

/* Spotify — bouton playlist épinglée */
.sp-playlist-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem auto 0;
  padding: 0.42rem 1.1rem;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.28);
  border-radius: 999px;
  color: #1db954;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  width: fit-content;
}
.sp-playlist-btn:hover {
  background: rgba(29, 185, 84, 0.22);
  border-color: rgba(29, 185, 84, 0.55);
  transform: translateY(-1px);
}
.sp-playlist-btn .fab {
  font-size: 1rem;
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--neon-purple);
}

/* =========================================
   LINKS GRID
   ========================================= */
.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Generic link card — supports CSS custom props for per-link colors */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  flex: 1 1 180px;
  min-width: 150px;
  background: var(--lc-bg, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--lc-color, var(--text-primary));
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--lc-hover-bg, var(--lc-bg, var(--bg-card-hover)));
  color: var(--lc-hover-color, var(--lc-color, var(--text-primary)));
  border-color: var(--lc-hover-border, var(--border));
}

/* Button reset for copy/qrcode type links */
button.link-card {
  width: 100%;
  text-align: left;
  border-color: var(--border);
  font-family: inherit;
}

/* Link groups — buttons side-by-side, full row width */
.link-group {
  display: flex;
  gap: 10px;
  flex: 1 1 100%;
  width: 100%;
}
.link-group .link-card {
  flex: 1;
  min-width: 0;
}

.link-card .card-link-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Per-service glow on hover */
.link-card.discord:hover {
  border-color: var(--discord-color);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.link-card.youtube:hover {
  border-color: var(--youtube-color);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.25);
}

.link-card.medal:hover {
  border-color: var(--medal-color);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.25);
}

.link-card.valorant:hover {
  border-color: var(--valorant-color);
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.3);
}

.link-card.steam:hover {
  border-color: #66c0f4;
  box-shadow: 0 4px 20px rgba(102, 192, 244, 0.3);
}

.link-card.discord .card-link-icon {
  color: var(--discord-color);
}

.link-card.youtube .card-link-icon {
  color: var(--youtube-color);
}

.link-card.medal .card-link-icon {
  color: var(--medal-color);
}

.link-card.valorant .card-link-icon {
  color: var(--valorant-color);
}

.link-card.steam .card-link-icon {
  color: #66c0f4;
}

/* =========================================
   GAMES GRID
   ========================================= */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.game-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  flex: 1 1 200px;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
  gap: 12px;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--bg-card-hover);
}

.game-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.game-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0; /* permet au flex child de rétrécir */
}

/* Texte + tag : prend l'espace dispo et tronque si trop long */
.game-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Icône vérifiée : ne rétrécit jamais, toujours visible */
.game-verified-icon {
  color: var(--neon-blue);
  font-size: 0.88rem;
  flex-shrink: 0;
  opacity: 0.92;
}

.game-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-region {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.game-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.game-rank img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.neon-pink {
  color: var(--neon-pink);
  margin: 0 4px;
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20, 24, 40, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.3);
  backdrop-filter: var(--blur);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--neon-green);
}

/* =========================================
   RADIAL BG GLOW
   ========================================= */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
      rgba(139, 92, 246, 0.08) 0%,
      rgba(56, 189, 248, 0.04) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
      rgba(244, 114, 182, 0.06) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style;
}

/* =========================================
   STATUS DOT — PLATFORM ICON
   ========================================= */
.status-dot.has-icon {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.status-dot.online.has-icon {
  color: var(--neon-green);
  filter: drop-shadow(0 0 5px var(--neon-green));
}

.status-dot.idle.has-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 5px #f59e0b);
}

.status-dot.dnd.has-icon {
  color: var(--valorant-color);
  filter: drop-shadow(0 0 5px var(--valorant-color));
}

/* =========================================
   NAV ACTIONS WRAPPER
   ========================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   MUSIC PLAYER BUTTON (navbar .music-toggle)
   ========================================= */
.music-toggle {
  display: none; /* hidden by default — shown by JS only when music_url is set */
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  width: 36px;
  border-radius: 18px;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(10, 6, 28, 0.72);
  border: 1.5px solid rgba(139, 92, 246, 0.22);
  color: rgba(196, 181, 253, 0.85);
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.18s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.05);
}
.music-toggle .mpb-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.music-toggle .mpb-ico-play,
.music-toggle .mpb-ico-pause {
  position: absolute;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.music-toggle .mpb-ico-play  { opacity: 1; transform: scale(1)   rotate(0deg);  }
.music-toggle .mpb-ico-pause { opacity: 0; transform: scale(0.5) rotate(-20deg);}

.music-toggle:hover {
  border-color: rgba(139, 92, 246, 0.52);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: scale(1.06);
}
.music-toggle:active { transform: scale(0.97); }

/* EQ bars pour le toggle navbar */
.music-toggle .music-eq {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
  padding-right: 10px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.22s ease 0.24s, max-width 0.38s ease;
}
.music-toggle .music-eq span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--neon-purple), #ddd6fe);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.music-toggle .music-eq span:nth-child(1) { height: 5px;  animation-duration: 0.58s; }
.music-toggle .music-eq span:nth-child(2) { height: 11px; animation-duration: 0.92s; animation-delay: 0.08s; }
.music-toggle .music-eq span:nth-child(3) { height: 7px;  animation-duration: 0.72s; animation-delay: 0.20s; }

.music-toggle.playing {
  width: 108px;
  border-color: rgba(139, 92, 246, 0.62);
  background: rgba(18, 8, 48, 0.85);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.38),
              0 0 40px rgba(139, 92, 246, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.music-toggle.playing .mpb-ico-play  { opacity: 0; transform: scale(0.5) rotate(20deg); }
.music-toggle.playing .mpb-ico-pause { opacity: 1; transform: scale(1) rotate(0deg); color: #c4b5fd; }
.music-toggle.playing .music-eq      { opacity: 1; max-width: 36px; }

/* =========================================
   DISCORD PLATFORM BADGES
   ========================================= */
.dc-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.dc-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-platform-badge i {
  font-size: 0.6rem;
  color: var(--neon-blue);
}


/* =========================================
   SPOTIFY TITLE LINK
   ========================================= */
.sp-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sp-title a:hover {
  color: var(--spotify-color);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 700px) {
  .navbar {
    padding: 14px 20px;
  }

  .container {
    padding: 90px 16px 48px;
    gap: 28px;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 16px 24px;
    gap: 12px;
  }

  .hero-name {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .links-grid .link-card {
    flex: 1 1 calc(50% - 7px);
  }
}

@media (max-width: 420px) {
  .links-grid .link-card {
    flex: 1 1 100%;
  }

  .hero-btn-row {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================
   QR CODE MODAL
   ========================================= */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.qr-modal.open {
  display: flex;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.qr-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.qr-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.qr-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.qr-img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  display: block;
}

.qr-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
  max-width: 220px;
}

/* ── Ambient music player — Floating pill ──────────────────────── */
#musicPlayerBtn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;

  /* Pill qui s'étire horizontalement quand .playing */
  height: 52px;
  width: 52px;
  border-radius: 26px;
  overflow: hidden;
  white-space: nowrap;

  border: 1.5px solid rgba(139, 92, 246, 0.22);
  background: rgba(10, 6, 28, 0.80);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);

  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;

  transition:
    width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    transform 0.2s ease;

  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Slot icône — largeur fixe 52px, ne rétrécit jamais ─── */
.mpb-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mpb-ico-play,
.mpb-ico-pause {
  position: absolute;
  font-size: 1rem;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mpb-ico-play  { opacity: 1; transform: scale(1)   rotate(0deg);   }
.mpb-ico-pause { opacity: 0; transform: scale(0.5) rotate(-20deg); }

/* ── Label "En écoute" ─── */
.mpb-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c4b5fd;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.22s ease 0.20s,
    max-width 0.4s ease;
}

/* ── Barres EQ ─── */
.music-eq {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
  padding-right: 16px;
  padding-left: 7px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.22s ease 0.26s,
    max-width 0.4s ease;
}
.music-eq span {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--neon-purple), #ddd6fe);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.music-eq span:nth-child(1) { height: 8px;  animation-duration: 0.58s; animation-delay: 0.00s; }
.music-eq span:nth-child(2) { height: 15px; animation-duration: 0.92s; animation-delay: 0.08s; }
.music-eq span:nth-child(3) { height: 6px;  animation-duration: 0.72s; animation-delay: 0.20s; }
.music-eq span:nth-child(4) { height: 13px; animation-duration: 0.84s; animation-delay: 0.12s; }
.music-eq span:nth-child(5) { height: 9px;  animation-duration: 0.66s; animation-delay: 0.30s; }
@keyframes eqBounce {
  from { transform: scaleY(0.18); }
  to   { transform: scaleY(1);    }
}

/* ── État PLAYING ─── */
#musicPlayerBtn.playing {
  width: 178px;
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(18, 8, 48, 0.88);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 0 28px rgba(139, 92, 246, 0.38),
    0 0 56px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(167, 139, 250, 0.14);
  animation: musicFloat 3.5s ease-in-out infinite;
}
#musicPlayerBtn.playing .mpb-ico-play  {
  opacity: 0;
  transform: scale(0.5) rotate(20deg);
}
#musicPlayerBtn.playing .mpb-ico-pause {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #c4b5fd;
}
#musicPlayerBtn.playing .mpb-label { opacity: 1; max-width: 70px; }
#musicPlayerBtn.playing .music-eq  { opacity: 1; max-width: 50px; }

/* ── Hover ─── */
#musicPlayerBtn:hover {
  border-color: rgba(139, 92, 246, 0.52);
  box-shadow:
    0 10px 36px rgba(0,0,0,0.60),
    0 0 20px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}
#musicPlayerBtn.playing:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
}

/* ── Flottement doux en playing ─── */
@keyframes musicFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-5px); }
}

/* ── Ripple au clic ─── */
#musicPlayerBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
#musicPlayerBtn.mpb-ripple::after {
  animation: mpbRipple 0.5s ease-out forwards;
}
@keyframes mpbRipple {
  0%   { opacity: 0.75; transform: scale(0.5); }
  100% { opacity: 0;    transform: scale(1.8); }
}

/* =========================================
   CUSTOM ORDERED GRID (DRAG & DROP LAYOUT)
   ========================================= */
.custom-ordered-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.custom-ordered-grid > * {
  grid-column: 1 / -1;
}
.custom-ordered-grid > #discordCard,
.custom-ordered-grid > #spotifyCard {
  grid-column: auto;
}
@media (max-width: 768px) {
  .custom-ordered-grid > #discordCard,
  .custom-ordered-grid > #spotifyCard {
    grid-column: 1 / -1;
  }
}

/* =========================================
   MINIMAL MODE
   ========================================= */
body.minimal-mode .hero-name {
  text-shadow: none !important;
  filter: none !important;
}

body.minimal-mode .card,
body.minimal-mode .card:hover,
body.minimal-mode .link-item,
body.minimal-mode .link-item:hover,
body.minimal-mode .game-item,
body.minimal-mode .game-item:hover {
  box-shadow: none !important;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  transform: none !important;
}

/* Hide all background effects, animations, and borders */
body.minimal-mode #particles-canvas,
body.minimal-mode [id$="-canvas"],
body.minimal-mode [id$="-layer"],
body.minimal-mode [id$="-bg"],
body.minimal-mode .avatar-ring {
  display: none !important;
}

/* Hide pseudo-element gradients and filters on body (used by premium themes) */
body.minimal-mode {
  background-image: none !important;
  background: var(--bg-base) !important;
}
body.minimal-mode::before,
body.minimal-mode::after {
  display: none !important;
}