/* ============================================================================
   GIOVAA.FR — feuille de style
   Ambiance : dark neon + cyber glitch, fil rouge Spider-Man.
   Ne pas modifier pour changer le contenu : tout est dans config.js
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. JETONS DE DESIGN
   ------------------------------------------------------------------------ */
:root {
  /* Couleurs — surchargées à chaud depuis config.js (theme) */
  --red: #e6193c;
  --blue: #1e4fff;
  --cyan: #22e0ff;

  --red-soft: rgba(230, 25, 60, 0.55);
  --blue-soft: rgba(30, 79, 255, 0.55);

  --bg: #05050b;
  --bg-2: #0a0a16;
  --text: #f2f3f7;
  --muted: #8b8fa3;
  --muted-dim: #5c6072;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-hi: rgba(255, 255, 255, 0.07);
  --brd: rgba(255, 255, 255, 0.08);
  --brd-hi: rgba(255, 255, 255, 0.16);

  /* Typographies */
  --font-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Rythme */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;

  --shell: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------------------------
   2. RÉINITIALISATION
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* L'attribut hidden doit toujours gagner. Sans ce !important, la règle
   `img { display:block }` ci-dessus et les `display:inline-flex` des pastilles
   passent devant le display:none du navigateur : on se retrouve avec une
   miniature vide et un badge « LIVE » allumé en permanence. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Barre de défilement */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--red), var(--blue));
  border-radius: 9px;
  border: 2px solid var(--bg);
}

::selection { background: var(--red); color: #fff; }

.ico { width: 100%; height: 100%; display: block; }
.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;
}

/* ---------------------------------------------------------------------------
   3. DÉCOR DE FOND (couches empilées, fixes)
   ------------------------------------------------------------------------ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 3.1 — dégradé de base */
.bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #14141f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #030307 100%);
}

/* 3.1b — MÉDIA DE FOND (vidéo ou image)
   Placé juste au-dessus du dégradé de base : toutes les autres couches
   (orbes, toiles, grille, particules, scanlines, grain, vignette) passent
   donc devant, comme voulu. */
.bg__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg__media video,
.bg__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--bg-blur, 0px));
  /* Le flou mange les bords : on surdimensionne un peu pour éviter
     un liseré clair sur le pourtour de l'écran. */
  transform: scale(var(--bg-scale, 1));
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
/* La vidéo n'apparaît qu'une fois prête, en fondu par-dessus l'affiche */
.bg__media video.is-ready { opacity: 1; }

/* Voile d'assombrissement : sans lui, la carte en verre et le texte
   deviennent illisibles dès que le fond est clair. */
.bg__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--bg-dim, 0.55);
}

/* Lisibilité par-dessus un fond vidéo/image.
   La carte est en "verre dépoli" : son backdrop-filter rééchantillonne ce
   qu'il y a derrière ET sature les couleurs de 30 %. Sur une vidéo colorée,
   elle vire à l'arc-en-ciel et le texte devient illisible — quel que soit le
   réglage dim. On lui donne donc un fond nettement plus opaque, et on coupe
   la surexposition, dès qu'un média est actif. */
body.has-bg-media .card {
  background: linear-gradient(160deg, rgba(12, 12, 24, 0.78), rgba(6, 6, 14, 0.86));
  backdrop-filter: blur(26px) saturate(100%);
  -webkit-backdrop-filter: blur(26px) saturate(100%);
}
body.has-bg-media .badge,
body.has-bg-media .social,
body.has-bg-media .live,
body.has-bg-media .link {
  background: rgba(10, 10, 20, 0.55);
}
body.has-bg-media .link:hover,
body.has-bg-media .live:hover {
  background: rgba(18, 18, 32, 0.72);
}
body.has-bg-media .footer { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }

/* 3.2 — orbes néon qui dérivent */
.bg__orb {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.bg__orb--red {
  background: radial-gradient(circle, var(--red) 0%, transparent 68%);
  top: -22vmax; left: -18vmax;
  animation: drift-a 26s var(--ease) infinite alternate;
}
.bg__orb--blue {
  background: radial-gradient(circle, var(--blue) 0%, transparent 68%);
  bottom: -26vmax; right: -20vmax;
  animation: drift-b 32s var(--ease) infinite alternate;
}
.bg__orb--cyan {
  width: 34vmax; height: 34vmax;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 42%; left: 58%;
  opacity: 0.16;
  animation: drift-c 22s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(14vmax, 10vmax, 0) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-16vmax, -8vmax, 0) scale(0.9); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-18vmax, 12vmax, 0); }
}

/* 3.3 — toile d'araignée en trame, très discrète */
.bg__web {
  position: absolute;
  inset: -10%;
  opacity: 0.07;
  background-repeat: repeat;
  background-size: 460px 460px;
  animation: web-pan 90s linear infinite;
}
@keyframes web-pan {
  from { background-position: 0 0; }
  to   { background-position: 460px 460px; }
}

/* 3.4 — grille cyber en perspective (bas de page) */
.bg__grid {
  position: absolute;
  bottom: -8%;
  left: -50%;
  width: 200%;
  height: 62%;
  background-image:
    linear-gradient(to right, rgba(230, 25, 60, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 79, 255, 0.30) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(340px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  opacity: 0.5;
  animation: grid-run 5.5s linear infinite;
}
@keyframes grid-run {
  from { background-position: 0 0; }
  to   { background-position: 0 62px; }
}

/* 3.5 — particules (canvas) */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* 3.6 — lignes de balayage CRT */
.bg__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.bg__scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 26vh;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.045), transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep {
  0%   { top: -30vh; }
  100% { top: 110vh; }
}

/* 3.7 — grain + vignette */
.bg__noise {
  position: absolute;
  inset: -200%;
  width: 500%; height: 500%;
  opacity: 0.035;
  animation: grain 0.9s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
}
.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

/* 3.8 — toiles dans les coins */
.web-corner {
  position: fixed;
  width: 260px;
  height: 260px;
  z-index: 1;
  pointer-events: none;
  color: var(--red);
  opacity: 0.16;
}
.web-corner--tl { top: 0; left: 0; }
.web-corner--tr { top: 0; right: 0; transform: scaleX(-1); color: var(--blue); }
.web-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); color: var(--blue); }
.web-corner--br { bottom: 0; right: 0; transform: scale(-1); }

/* ---------------------------------------------------------------------------
   4. ÉCRAN D'ENTRÉE
   ------------------------------------------------------------------------ */
.entry {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(4, 4, 9, 0.72);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  transition: opacity 0.9s var(--ease), backdrop-filter 0.9s var(--ease), visibility 0.9s;
}
.entry__inner {
  text-align: center;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.entry__spider {
  width: 96px; height: 96px;
  margin: 0 auto 30px;
  color: var(--red);
  filter: drop-shadow(0 0 22px var(--red-soft));
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.09); opacity: 1; }
}
.entry__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.entry__sub {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse-dim 2.1s ease-in-out infinite;
}
@keyframes pulse-dim {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
.entry__hint {
  margin-top: 34px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.entry.is-out {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.entry.is-out .entry__inner {
  transform: scale(1.35);
  opacity: 0;
}

/* Le contenu se révèle en sortant de l'écran d'entrée */
body.is-locked { overflow: hidden; }
body.is-locked .shell { transform: scale(1.05); filter: blur(9px); opacity: 0; }
.shell {
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease), opacity 0.8s var(--ease);
}

/* ---------------------------------------------------------------------------
   5. CURSEUR LANCE-TOILE
   ------------------------------------------------------------------------ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
              margin 0.28s var(--ease), border-color 0.28s var(--ease),
              opacity 0.28s var(--ease);
}
.cursor-ring::before, .cursor-ring::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}
.cursor-ring::before { top: 50%; left: -7px; width: 5px; height: 1px; }
.cursor-ring::after  { top: 50%; right: -7px; width: 5px; height: 1px; }

body.cursor-hot .cursor-ring {
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--red);
  box-shadow: 0 0 18px rgba(230, 25, 60, 0.35), inset 0 0 18px rgba(230, 25, 60, 0.15);
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* Onde de choc au clic ("thwip") */
.thwip {
  position: fixed;
  z-index: 299;
  pointer-events: none;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  animation: thwip 0.62s var(--ease) forwards;
}
@keyframes thwip {
  from { width: 0; height: 0; margin: 0; opacity: 0.9; }
  to   { width: 190px; height: 190px; margin: -95px 0 0 -95px; opacity: 0; }
}

/* ---------------------------------------------------------------------------
   6. STRUCTURE
   ------------------------------------------------------------------------ */
.shell {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) 20px 130px;
}

/* Révélation en cascade */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}
body.is-open [data-reveal] {
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 180ms);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   7. CARTE PRINCIPALE (effet 3D)
   ------------------------------------------------------------------------ */
.card {
  position: relative;
  padding: 40px 28px 32px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--brd);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 26px 70px -22px rgba(0, 0, 0, 0.85),
    0 0 60px -30px var(--red-soft),
    0 0 90px -40px var(--blue-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
}
/* liseré rouge→bleu en haut */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
  opacity: 0.85;
}
/* reflet qui suit la souris */
.card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.09),
    transparent 62%
  );
}
.card:hover .card__shine { opacity: 1; }
.card > *:not(.card__shine) { transform: translateZ(28px); }

/* ---------------------------------------------------------------------------
   8. AVATAR
   ------------------------------------------------------------------------ */
.avatar {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
}
.avatar::before {
  content: '';
  position: absolute;
  inset: -5px;              /* anneau néon plus franc */
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--blue), var(--cyan), var(--red));
  animation: spin 6s linear infinite;
  filter: blur(0.4px);
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--blue), var(--cyan), var(--red));
  filter: blur(18px);
  opacity: 0.5;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);   /* liseré sombre plus fin entre l'anneau et la photo */
  background: var(--bg-2);
  transition: transform 0.5s var(--ease-snap);
}
.avatar:hover .avatar__img { transform: scale(1.06) rotate(-2deg); }

.avatar__live {
  position: absolute;
  z-index: 2;
  bottom: 2px; right: 2px;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--red);
  border: 2.5px solid var(--bg);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 0 16px var(--red-soft);
  animation: live-beat 1.7s ease-in-out infinite;
}
.avatar__live.is-on { display: inline-flex; }
@keyframes live-beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 25, 60, 0.55); }
  70%      { box-shadow: 0 0 0 11px rgba(230, 25, 60, 0); }
}

/* ---------------------------------------------------------------------------
   9. PSEUDO + GLITCH
   ------------------------------------------------------------------------ */
.identity { text-align: center; }

.name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff 15%, #b9bdd0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.16);
}
/* copies rouge et bleue pour l'aberration chromatique */
.name::before, .name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  opacity: 0;
  pointer-events: none;
}
.name::before { color: var(--red); }
.name::after  { color: var(--blue); }

.name.is-glitching::before {
  opacity: 0.85;
  animation: glitch-r 0.42s steps(2, end) 3;
}
.name.is-glitching::after {
  opacity: 0.85;
  animation: glitch-b 0.42s steps(2, end) 3;
}
@keyframes glitch-r {
  0%   { transform: translate(0); clip-path: inset(0 0 72% 0); }
  25%  { transform: translate(-4px, -2px); clip-path: inset(28% 0 34% 0); }
  50%  { transform: translate(3px, 1px); clip-path: inset(62% 0 8% 0); }
  75%  { transform: translate(-2px, 2px); clip-path: inset(12% 0 58% 0); }
  100% { transform: translate(0); clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-b {
  0%   { transform: translate(0); clip-path: inset(70% 0 0 0); }
  25%  { transform: translate(4px, 2px); clip-path: inset(18% 0 52% 0); }
  50%  { transform: translate(-3px, -1px); clip-path: inset(48% 0 26% 0); }
  75%  { transform: translate(2px, -2px); clip-path: inset(4% 0 74% 0); }
  100% { transform: translate(0); clip-path: inset(100% 0 0 0); }
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.verified {
  width: 21px; height: 21px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  box-shadow: 0 0 14px var(--blue-soft);
}
.verified svg { width: 13px; height: 13px; }

.handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 7px 0 0;
}

/* Machine à écrire */
.tagline {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--cyan);
  letter-spacing: 0.03em;
}
.tagline::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Pastilles */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--brd);
  font-size: 0.73rem;
  color: var(--muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.badge:hover {
  border-color: var(--brd-hi);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   10. WIDGETS TEMPS RÉEL (Discord + TikTok)
   ------------------------------------------------------------------------ */
/* auto-fit fait le travail tout seul : une carte masquée (Discord non
   configuré, par exemple) sort du flux, la colonne vide se replie, et la
   carte restante prend toute la largeur au lieu d'une demi-colonne. */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.live {
  display: none;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--brd);
  text-align: left;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.live.is-ready { display: block; }
.live:hover { border-color: var(--brd-hi); background: var(--glass-hi); transform: translateY(-2px); }

.live__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 9px;
}
.live__head svg { width: 13px; height: 13px; }

.live__body { display: flex; align-items: center; gap: 10px; }

.live__pic {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
}

.live__thumb {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-2);
}
.live__thumb--round { border-radius: 50%; }

.live__dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2.5px solid #14141f;
  background: var(--muted-dim);
}
.live__dot[data-status="online"]  { background: #3ba55d; }
.live__dot[data-status="idle"]    { background: #faa81a; }
.live__dot[data-status="dnd"]     { background: #ed4245; }
.live__dot[data-status="offline"] { background: #747f8d; }

.live__text { min-width: 0; flex: 1; }
.live__title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live__sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pastille LIVE clignotante */
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-left: auto;
  flex: 0 0 auto;
  animation: live-beat 1.7s ease-in-out infinite;
}
.pill-live i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dim 1.1s ease-in-out infinite;
}

/* barre de progression Spotify */
.live__bar {
  height: 3px;
  margin-top: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.live__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: width 1s linear;
}

/* ---------------------------------------------------------------------------
   11. RÉSEAUX SOCIAUX
   ------------------------------------------------------------------------ */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.social {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--brd);
  color: var(--muted);
  transition: transform 0.35s var(--ease-snap), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.35s var(--ease),
              background 0.3s var(--ease);
}
.social svg { width: 19px; height: 19px; }
.social:hover {
  transform: translateY(-5px) scale(1.09);
  color: var(--brand, var(--text));
  border-color: color-mix(in srgb, var(--brand, #fff) 55%, transparent);
  background: color-mix(in srgb, var(--brand, #fff) 11%, transparent);
  box-shadow: 0 8px 26px -8px var(--brand, #fff);
}
/* infobulle */
.social::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 4px 9px;
  border-radius: 7px;
  background: #14141f;
  border: 1px solid var(--brd);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.social:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Entrées "Soon..." : url vide -> ni cliquables, ni comptées comme liens */
.social--soon, .link--soon {
  opacity: 0.42;
  pointer-events: none;
  filter: saturate(0.3);
}
.link--soon .link__arrow { visibility: hidden; }

/* ---------------------------------------------------------------------------
   12. BOUTONS DE LIENS
   ------------------------------------------------------------------------ */
.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 30px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--brd);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.link:hover {
  transform: translateY(-3px);
  background: var(--glass-hi);
  border-color: color-mix(in srgb, var(--brand, #fff) 45%, transparent);
  box-shadow: 0 14px 34px -14px var(--brand, rgba(255, 255, 255, 0.4));
}
/* balayage lumineux */
.link::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
}
.link:hover::after { left: 130%; }

.link__ico {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand, #fff) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand, #fff) 22%, transparent);
  color: var(--brand, var(--text));
  transition: transform 0.4s var(--ease-snap), box-shadow 0.4s var(--ease);
}
.link__ico svg { width: 19px; height: 19px; }
.link:hover .link__ico {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px -4px var(--brand, #fff);
}

/* Ces trois éléments sont des <span> : sans display:block ils restent en
   ligne et le sous-titre vient se coller au titre. */
.link__text { display: block; flex: 1; min-width: 0; }
.link__title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.link__sub {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__arrow {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  color: var(--muted-dim);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.link:hover .link__arrow { transform: translateX(4px); color: var(--text); }

/* Lien mis en avant : bordure animée rouge → bleue */
.link--featured {
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(115deg, var(--red), var(--blue), var(--cyan), var(--red)) border-box;
  border: 1px solid transparent;
  background-size: 100% 100%, 300% 300%;
  animation: border-run 7s linear infinite;
}
@keyframes border-run {
  0%   { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 300% 50%; }
}
.link--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(115deg, var(--red), var(--blue));
  filter: blur(15px);
  opacity: 0.28;
  z-index: -1;
}

/* ---------------------------------------------------------------------------
   13. LECTEUR AUDIO
   ------------------------------------------------------------------------ */
.player {
  position: fixed;
  z-index: 60;
  left: 20px;
  bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid var(--brd);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.9);
  max-width: calc(100vw - 40px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.player.is-ready { display: flex; }
.player:hover { border-color: var(--brd-hi); transform: translateY(-2px); }

.player__disc {
  position: relative;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, var(--red), var(--blue), var(--red));
  color: #fff;
  animation: spin 4.5s linear infinite;
  animation-play-state: paused;
}
.player.is-playing .player__disc { animation-play-state: running; }
.player__disc::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0c0c16;
}
.player__disc svg {
  position: relative;
  z-index: 1;
  width: 13px; height: 13px;
}

.player__meta { min-width: 0; max-width: 160px; }
.player__title {
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__artist {
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__vol {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.4s var(--ease), opacity 0.3s var(--ease);
}
.player:hover .player__vol { width: 66px; opacity: 1; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 66px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Égaliseur animé */
.eq { display: flex; align-items: flex-end; gap: 2px; height: 15px; flex: 0 0 auto; }
.eq i {
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--red), var(--cyan));
  height: 20%;
}
.player.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.36s; }
.eq i:nth-child(4) { animation-delay: 0.54s; }
@keyframes eq {
  0%, 100% { height: 22%; }
  50%      { height: 100%; }
}

/* ---------------------------------------------------------------------------
   14. PIED DE PAGE
   ------------------------------------------------------------------------ */
.footer {
  margin-top: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.footer__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--brd);
}
.footer__views svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------------------ */
@media (max-width: 560px) {
  .shell { padding: 40px 16px 120px; }
  .card { padding: 32px 20px 26px; }
  .web-corner { width: 165px; height: 165px; opacity: 0.11; }
  .player { left: 12px; right: 12px; bottom: 12px; justify-content: flex-start; }
  .player__meta { max-width: none; flex: 1; }
  .player__vol { display: none; }
}

@media (hover: none) {
  body.has-cursor { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .card > *:not(.card__shine) { transform: none; }
}

/* ---------------------------------------------------------------------------
   16. ACCESSIBILITÉ — mouvement réduit
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .bg__noise, .bg__scan::after { display: none; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
