/* ============================================================
   NeonBio — page publique (dark + néon)
   Les couleurs d'accent sont injectées via --accent / --accent2
   ============================================================ */

:root {
  --accent: #a855f7;
  --accent2: #22d3ee;
  --bg: #07060d;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --card-op: .55;
  --card-blur: 18px;
  --card-radius: 22px;
  --bg-blur: 0px;
  --bg-dim: .75;
}

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

/* fond sombre sur html (canvas) uniquement : le body doit rester
   transparent, sinon son fond opaque recouvre le #bg en z-index négatif
   (vidéo / image / dégradé) et on ne voit plus le fond. */
html {
  background: var(--bg);
}
html, body {
  height: 100%;
  font-family: var(--font);
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;   /* empêche tout déplacement latéral de la page (mobile) */
}
/* mode page unique (pas de vitrine) : on verrouille à un écran */
html.lock, body.lock { overflow: hidden; height: 100%; }

body.custom-cursor, body.custom-cursor * { cursor: none; }

/* ---------------- fond ---------------- */
#bg {
  position: fixed; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  filter: blur(var(--bg-blur)); transform: scale(1.06);
}
#bg.gradient {
  background: linear-gradient(125deg, #06050c, #150a2b, #0a0f24, #1a0a22, #07060d);
  background-size: 400% 400%;
  animation: gradientShift 22s ease infinite;
  overflow: hidden;
}
/* halos néon qui pulsent et dérivent doucement par-dessus le dégradé */
#bg.gradient::before,
#bg.gradient::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  mix-blend-mode: screen;
}
#bg.gradient::before {
  width: 60vw; height: 60vw; top: -15vw; left: -10vw;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  opacity: .55;
  animation: glowA 16s ease-in-out infinite alternate;
}
#bg.gradient::after {
  width: 55vw; height: 55vw; bottom: -18vw; right: -12vw;
  background: radial-gradient(circle, #1e6fff, transparent 60%);
  opacity: .40;
  animation: glowB 20s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowA {
  0%   { transform: translate(0, 0) scale(1);     opacity: .40; }
  100% { transform: translate(8vw, 6vw) scale(1.25); opacity: .65; }
}
@keyframes glowB {
  0%   { transform: translate(0, 0) scale(1.1);   opacity: .30; }
  100% { transform: translate(-7vw, -5vw) scale(1); opacity: .50; }
}
#bg video { width: 100%; height: 100%; object-fit: cover; }
#bg-overlay {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(circle at 50% 40%,
    rgba(0,0,0,calc(var(--bg-dim) * .35)),
    rgba(0,0,0,var(--bg-dim)));
}
#fx-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------------- splash ---------------- */
#splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 2, 8, .85);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity .8s ease, visibility .8s;
}
#splash.hidden { opacity: 0; visibility: hidden; }
#splash span {
  font-size: clamp(1.2rem, 4vw, 2rem); letter-spacing: .35em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 0 18px var(--accent), 0 0 40px var(--accent2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }

/* ---------------- carte ---------------- */
#stage {
  position: relative;            /* ancre la fenêtre Fun Facts du hero */
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s ease .15s, transform 1s ease .15s;
}
#stage.show { opacity: 1; transform: none; }

.card {
  position: relative;
  width: min(500px, 94vw);
  padding: 38px 36px 28px;
  border-radius: var(--card-radius);
  background: rgba(15, 12, 26, var(--card-op));
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 25px 60px rgba(0,0,0,.6),
    0 0 50px -10px var(--accent);
  text-align: center;
  transform-style: preserve-3d;
}
.card::before { /* halo néon animé sur le bord */
  content: ""; position: absolute; inset: -1px; border-radius: var(--card-radius);
  padding: 1px; z-index: -1;
  background: linear-gradient(120deg, var(--accent), transparent, var(--accent2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}

/* ---------------- avatar ---------------- */
.avatar-wrap {
  position: relative; width: 124px; height: 124px; margin: 0 auto 16px;
}
.avatar-wrap::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent));
  animation: spin 4s linear infinite;
  filter: blur(2px);
}
.avatar-wrap.rounded::before { border-radius: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: relative; width: 124px; height: 124px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg);
  box-shadow: 0 0 25px var(--accent);
}
.avatar-wrap.rounded .avatar { border-radius: 22px; }
.avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; background: #1a1430;
}

/* ---- effets audio-réactifs autour de l'avatar ---- */
.avatar-wrap.has-audio-fx { overflow: visible; }
.avatar-wrap .avatar { position: relative; z-index: 2; }
.beat-glow {
  position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  pointer-events: none; opacity: 0; will-change: opacity, box-shadow, transform;
}
.eq-canvas {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 1; pointer-events: none;
  width: 280px; height: 280px;
}
.beat-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid var(--accent2); z-index: 1;
  pointer-events: none; box-shadow: 0 0 14px var(--accent2);
}
.beat-note {
  position: absolute; top: 50%; left: 50%; z-index: 3; pointer-events: none;
  font-size: 1.3rem; color: var(--accent2);
  text-shadow: 0 0 10px var(--accent2), 0 0 18px var(--accent);
}

/* ---------------- texte ---------------- */
.name {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center;
}
/* effets sur le pseudo */
.uname-glow .uname-text {
  text-shadow: 0 0 16px var(--accent), 0 0 30px var(--accent2);
}
.uname-gradient .uname-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.uname-rainbow .uname-text {
  background: linear-gradient(90deg,#ff5f6d,#ffc371,#47e891,#22d3ee,#a855f7,#ff5f6d);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbow 6s linear infinite;
}
@keyframes rainbow { to { background-position: 300% 0; } }

.subtitle {
  margin-top: 4px; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.badges { display: inline-flex; align-items: center; gap: 5px; }
.badge {
  font-size: 1rem; filter: drop-shadow(0 0 6px var(--accent2));
}
/* badges icônes façon guns.lol : SVG blanc + halo blanc */
.badge-svg {
  display: inline-flex; align-items: center; filter: none;
}
.badge-svg svg {
  width: 1.05em; height: 1.05em; display: block;
  color: #fff;
  filter: drop-shadow(#fff 0 0 2.5px);
}
.bio {
  margin: 12px auto 4px; max-width: 400px;
  color: rgba(255,255,255,.78); font-size: .98rem; line-height: 1.5;
  min-height: 1.4em;
}
.bio .caret { color: var(--accent2); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- réseaux ---------------- */
.socials {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin: 22px 0 6px;
}
.social {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #cfcad9; transition: .25s ease;
}
.social svg { width: 22px; height: 22px; }
.social .favicon { width: 24px; height: 24px; border-radius: 5px; }
.social:hover {
  transform: translateY(-4px) scale(1.08);
  color: #fff; border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent), 0 8px 20px rgba(0,0,0,.4);
  background: rgba(168,85,247,.12);
}

/* ---------------- statut Discord live (Lanyard) ---------------- */
.discord-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px 14px; max-width: 100%;
  border-radius: 999px; text-decoration: none; vertical-align: middle;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 600;
  transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.discord-status:hover {
  color: #fff; border-color: var(--accent);
  box-shadow: 0 0 16px -2px var(--accent);
}
.discord-status .ds-text {
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: #747f8d; box-shadow: 0 0 8px #747f8d;
}
.discord-status[data-status="online"] .ds-dot {
  background: #3ba55d; box-shadow: 0 0 9px #3ba55d;
  animation: ds-pulse 2s ease-in-out infinite;
}
.discord-status[data-status="idle"]    .ds-dot { background: #faa81a; box-shadow: 0 0 9px #faa81a; }
.discord-status[data-status="dnd"]     .ds-dot { background: #ed4245; box-shadow: 0 0 9px #ed4245; }
.discord-status[data-status="offline"] .ds-dot { background: #747f8d; box-shadow: none; }
@keyframes ds-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.25); opacity: .7; }
}

/* ---------------- lecteur musique ---------------- */
.player {
  margin-top: 22px; padding: 12px 14px; border-radius: 14px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 12px;
}
.player.hidden { display: none; }
.play-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px var(--accent);
}
.player .meta {
  flex: 1; min-width: 0; text-align: left; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.player .title {
  font-size: .85rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: #eee; font-weight: 600;
}
/* barre de progression cliquable */
.progress {
  position: relative; height: 5px; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.12);
}
.progress-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px var(--accent);
}
.progress-fill::after { /* curseur rond qui apparaît au survol */
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  transform: translateY(-50%) scale(0); transform-origin: center;
  background: #fff; box-shadow: 0 0 8px var(--accent2);
  transition: transform .15s ease;
}
.progress:hover .progress-fill::after { transform: translateY(-50%) scale(1); }
.player .time {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: rgba(255,255,255,.45);
  font-variant-numeric: tabular-nums;
}
.viz { display: flex; align-items: flex-end; gap: 2px; height: 28px; flex: none; }
.viz span {
  width: 3px; height: 4px; border-radius: 2px;
  background: var(--accent2); transition: height .08s linear;
}

/* boutons précédent / suivant (playlist multi-morceaux) */
.nav-btn {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  background: rgba(255,255,255,.05); color: #cfcad9;
  display: flex; align-items: center; justify-content: center;
  transition: .2s ease;
}
.nav-btn:hover {
  color: #fff; border-color: var(--accent);
  box-shadow: 0 0 12px -2px var(--accent); transform: translateY(-1px);
}
/* compteur 1/5 à côté du titre */
.track-count {
  margin-left: 8px; font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums;
}
.player .title { display: flex; align-items: baseline; }
.player .title #track-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* liste des titres de la playlist */
.playlist {
  list-style: none; margin: 12px 0 0; padding: 6px;
  max-height: 188px; overflow-y: auto;
  border-radius: 14px; background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 2px;
}
.pl-track {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  text-align: left; color: rgba(255,255,255,.62);
  transition: background .2s, color .2s;
}
.pl-track:hover { background: rgba(255,255,255,.05); color: #fff; }
.pl-track .pl-num {
  flex: none; font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.32); font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.pl-track .pl-title {
  flex: 1; min-width: 0; font-size: .86rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-track.active {
  background: linear-gradient(90deg,
    rgba(168,85,247,.18), rgba(34,211,238,.06));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.pl-track.active .pl-num {
  color: var(--accent2);
  text-shadow: 0 0 10px var(--accent2);
}
/* scrollbar discrète de la liste */
.playlist::-webkit-scrollbar { width: 6px; }
.playlist::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 6px; border: none;
}
/* conteneur de paroles vidé (piste sans paroles) : on l'efface visuellement */
.lyrics.empty { display: none; }

/* pastilles de sélection de playlist (au-dessus de la liste des titres) */
.pl-tabs {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px;
}
.pl-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.pl-tab:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.pl-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 0 16px -3px var(--accent);
}
/* quand il y a des pastilles, la liste se colle juste dessous */
.pl-tabs + .playlist { margin-top: 8px; }

/* ---------------- lyrics synchronisés (karaoké) ---------------- */
.lyrics {
  margin-top: 16px; height: 168px; overflow: hidden; position: relative;
  padding: 6px 0; border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.05);
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
}
.lyrics-inner { transition: transform .45s cubic-bezier(.25,.8,.3,1); }
.lyrics .line {
  padding: 7px 16px; font-size: .94rem; line-height: 1.35;
  color: rgba(255,255,255,.3); transition: color .3s, transform .3s, filter .3s;
  transform: scale(.97); transform-origin: center;
}
.lyrics .line.active {
  color: #fff; transform: scale(1.06);
  text-shadow: 0 0 14px var(--accent), 0 0 26px var(--accent2);
  font-weight: 700; letter-spacing: .01em;
}

/* ---------------- contrôle du volume ---------------- */
.volume { display: flex; align-items: center; flex: none; }
.vol-btn {
  width: 30px; height: 30px; flex: none; border: none; cursor: pointer;
  background: transparent; color: var(--accent2); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.vol-btn svg { width: 19px; height: 19px; }
.vol-slider {
  width: 0; opacity: 0; height: 4px; padding: 0; margin: 0;
  accent-color: var(--accent2); cursor: pointer;
  transition: width .25s ease, opacity .2s ease, margin .25s ease;
}
.volume:hover .vol-slider, .vol-slider:focus { width: 64px; opacity: 1; margin-left: 7px; }

/* ---------------- carte + panneau paroles à droite ---------------- */
.stage-row {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  max-width: 100%;
}
.lyrics-side {
  width: 340px; flex: none; align-self: center;
  display: flex; flex-direction: column;
  padding: 22px 6px 18px;
  border-radius: var(--card-radius);
  background: rgba(15, 12, 26, calc(var(--card-op) * .85));
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 25px 60px rgba(0,0,0,.5), 0 0 40px -16px var(--accent);
}
.lyrics-side-head {
  text-align: center; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 12px;
}
.lyrics-side .lyrics-big {
  height: 440px; margin-top: 0; background: transparent; border: none;
}
.lyrics-big .line { font-size: 1.05rem; padding: 10px 18px; }

/* bouton plein écran (haut-droite de la carte) */
.lyrics-fs-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 10px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #cfcad9; cursor: pointer; transition: .2s ease;
}
.lyrics-fs-btn svg { width: 16px; height: 16px; }
.lyrics-fs-btn:hover {
  color: #fff; border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent); transform: translateY(-1px);
}

/* overlay plein écran des paroles */
.lyrics-fs {
  position: fixed; inset: 0; z-index: 120;
  display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  background: rgba(3, 2, 8, .92); backdrop-filter: blur(22px);
  padding: clamp(48px, 9vh, 96px) 20px 5vh;
}
.lyrics-fs.open { display: flex; }
.lyrics-fs-title {
  flex: none;
  font-size: .9rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 18px; text-align: center;
}
.lyrics-fs-close {
  position: absolute; top: 22px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1.05rem; transition: .2s ease;
}
.lyrics-fs-close:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent); }
.lyrics-fs-content {
  flex: 1; min-height: 0;            /* remplit toute la hauteur dispo */
  width: min(1000px, 92vw); margin-top: 0;
  background: transparent; border: none;
}
.lyrics-fs-content .line { font-size: clamp(1.4rem, 3.4vw, 2.4rem); padding: 16px; }

/* responsive : sous 980px, on cache le panneau et on garde les paroles dans la carte */
@media (max-width: 980px) {
  .lyrics-side { display: none; }
}
@media (min-width: 981px) {
  .lyrics-mini { display: none; }
}

/* ---------------- pied ---------------- */
.views {
  margin-top: 18px; font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.views b { color: var(--accent2); }

/* ---------------- curseur custom (par défaut) ---------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2); }
.cursor-dot.big { width: 16px; height: 16px;
  box-shadow: 0 0 16px var(--accent2), 0 0 30px var(--accent); }
.cursor-trail {
  position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
  width: 9px; height: 9px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.cursor-ring { width: 30px; height: 30px; border: 2px solid var(--accent);
  transition: transform .12s ease, width .2s, height .2s;
  box-shadow: 0 0 14px var(--accent); }
.cursor-img {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 34px; transform: translate(-30%, -10%);
}

@media (max-width: 480px) {
  .card { padding: 30px 22px 22px; }
  .cursor-dot, .cursor-ring { display: none; }
}
/* écrans tactiles (pas de survol) : le curseur custom n'a pas de sens et
   laisse un point figé en haut à gauche → on le désactive complètement */
@media (hover: none) {
  .cursor-dot, .cursor-ring, .cursor-trail, .cursor-img { display: none !important; }
  body.custom-cursor, body.custom-cursor * { cursor: auto !important; }
}

/* ============================================================
   VITRINE DE PROJETS — scrollytelling style Apple
   ============================================================ */
/* avec vitrine : la fenêtre scrolle naturellement */
body.has-showcase { height: auto; min-height: 100%; overflow-x: hidden; }
body.has-showcase #stage { height: 100vh; min-height: 100vh; }

/* ============================================================
   MOBILE / TABLETTE — corrections d'affichage sur téléphone
   ============================================================ */
@media (max-width: 820px) {
  /* (1) hero en COLONNE + aligné en HAUT. En flex row avec align-items:center,
     dès que la carte dépasse l'écran son haut (la photo) déborde AU-DESSUS du
     viewport et devient inatteignable → on landait « trop haut » sans voir la
     photo. flex-start = rien au-dessus, la photo est visible en haut ; column =
     le fun fact du hero s'empile proprement au lieu de se coller à côté. */
  body.has-showcase #stage,
  body.lock #stage {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 64px 16px 40px;   /* marge haute pour passer sous le sélecteur EN/FR */
  }
  .stage-row { order: 1; width: 100%; }   /* la carte (avec la photo) en premier */
  .ff-hero  { order: 2; }                  /* le fun fact du hero passe SOUS la carte */

  /* (2) mode page unique : scroll vertical autorisé si la carte dépasse l'écran */
  html.lock, body.lock {
    height: auto; min-height: 100%;
    overflow-x: hidden; overflow-y: auto;
  }

  /* (3) fenêtres « fun fact » empilées : plus compactes, barre plus petite */
  .ff-term   { width: min(360px, 90%); margin: 16px auto 0; }
  .ff-bar    { padding: 7px 11px; gap: 6px; }
  .ff-bar i  { width: 9px; height: 9px; }
  .ff-title  { font-size: .66rem; margin-left: 6px; }
  .ff-screen { min-height: 78px; font-size: .78rem; padding: 11px 13px; line-height: 1.55; }
}

/* indicateur de scroll sous le hero */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .7rem;
  letter-spacing: .25em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); } }

.showcase { position: relative; z-index: 1; padding: 30px 0 120px;
  overflow: hidden; }

/* couches d'arrière-plan parallax — NEUTRALISÉES pour un fond 100% uniforme.
   Chaque section portait sa propre couche de halos colorés (.px-bg / .blob),
   posée PAR-DESSUS le dégradé global : à la jointure de deux sections cette
   couche « recommençait » → ligne horizontale visible. On la supprime. La page
   n'a plus qu'UN seul fond : le dégradé fixe #bg (+ ses deux halos globaux,
   eux aussi fixes), continu sur toute la hauteur. Les sections restent
   entièrement transparentes et laissent voir ce même fond unique. */
.px-bg { display: none; }

.showcase-head { text-align: center; padding: 70px 20px 30px; }
.showcase-title {
  font-size: clamp(2.4rem, 9vw, 5rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}
.showcase-intro { margin-top: 12px; color: rgba(255,255,255,.62);
  font-size: clamp(1rem, 3vw, 1.3rem); }

/* révélation au scroll */
.reveal { opacity: 0; transform: translateY(48px); filter: blur(8px);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease; }
.reveal.in { opacity: 1; filter: none; }

/* scènes parallax */
.scene {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  max-width: 1150px; margin: 0 auto; padding: 14vh 40px;
}
.scene.flip .scene-media { order: 2; }
.scene-media { will-change: transform; }
.scene-copy { will-change: transform; max-width: 420px; }
.scene.flip .scene-copy { justify-self: end; }

/* cadre navigateur autour de la capture */
.browser {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); background: #14111f;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.8), 0 0 70px -25px var(--accent);
  transition: transform .4s ease;
}
.scene-media:hover .browser { transform: translateY(-6px); }
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser img { display: block; width: 100%; height: auto; }

.scene-num {
  font-size: .9rem; font-weight: 700; letter-spacing: .2em;
  color: var(--accent2);
}
.scene-title {
  margin-top: 8px; font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 0 30px var(--accent);
}
.scene-text { margin-top: 16px; color: rgba(255,255,255,.72);
  font-size: 1.05rem; line-height: 1.7; }

.showcase-cta { text-align: center; margin-top: 40px; }
.proj-btn {
  display: inline-block; padding: 14px 30px; border-radius: 12px;
  font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px -8px var(--accent); transition: .25s ease;
}
.proj-btn:hover { transform: translateY(-3px); filter: brightness(1.08);
  box-shadow: 0 16px 40px -8px var(--accent); }

@media (max-width: 820px) {
  .scene { grid-template-columns: 1fr; gap: 24px; padding: 9vh 26px;
    text-align: center; }
  .scene.flip .scene-media { order: 0; }
  .scene-copy { max-width: 100%; justify-self: center !important; }
  .blob { filter: blur(60px); opacity: .35; }
}

/* ---------------- grille de projets (portfolio) ---------------- */
.projects { position: relative; padding: 10vh 24px 16vh; }
.projects-grid {
  max-width: 1150px; margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.project-card {
  background: rgba(20,17,31,.7); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.8);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.85), 0 0 50px -20px var(--accent);
}
.project-cover { background: #14111f; }
.project-cover img { display: block; width: 100%; height: auto; }
.project-shots {
  display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto;
}
.project-shots img {
  height: 56px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 auto;
}
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column;
  gap: 10px; flex: 1; }
.project-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 0 24px var(--accent); }
.project-tagline { color: var(--accent2); font-size: .9rem; font-weight: 600;
  letter-spacing: .02em; }
.project-desc { color: rgba(255,255,255,.72); line-height: 1.6;
  font-size: .98rem; }
.project-features { list-style: none; padding: 0; margin: 4px 0;
  display: flex; flex-wrap: wrap; gap: 8px; }
.project-features li {
  font-size: .8rem; color: #cfc8e0; padding: 5px 11px; border-radius: 20px;
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3);
}
.project-body .proj-btn { margin-top: auto; align-self: flex-start;
  padding: 11px 22px; font-size: .95rem; }

/* ---------------- compétences / stack ---------------- */
.skills { position: relative; padding: 12vh 24px; overflow: hidden; }
.skills-grid {
  max-width: 900px; margin: 30px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.skill {
  display: flex; align-items: center; gap: 14px;
  background: rgba(20,17,31,.6); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.8);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease,
              border-color .3s ease, box-shadow .3s ease;
}
.skill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px -12px var(--accent);
}
/* tuile du logo de techno (façon icône d'app) */
.skill-icon-tile {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 0 14px -7px var(--accent);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.skill:hover .skill-icon-tile {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 0 18px -6px var(--accent), inset 0 0 14px -8px var(--accent2);
}
.skill-icon { width: 27px; height: 27px; display: block; }
.skill-body { flex: 1; min-width: 0; }
.skill-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.skill-name {
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.skill-pct {
  flex: none; font-size: .8rem; font-weight: 700; color: var(--accent2);
  font-variant-numeric: tabular-nums;
}
.skill-bar {
  margin-top: 11px; height: 8px; border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.skill-fill {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px -2px var(--accent2);
  transition: width 1.1s cubic-bezier(.2,.8,.3,1) .15s;
}
.skill.in .skill-fill { width: var(--lvl); }   /* la barre se remplit à la révélation */
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill { padding: 12px 14px; }
}
.skill[data-skill]:not([data-skill=""]) { cursor: pointer; }

/* ---- mini éditeur de code au survol d'un skill (preuve de compétence) ---- */
.skill-demo {
  position: fixed; z-index: 130; pointer-events: none;
  width: min(440px, 92vw); max-width: 92vw;
  border-radius: 13px; overflow: hidden;
  background: rgba(13, 11, 22, .97);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 70px -15px rgba(0,0,0,.85), 0 0 36px -12px var(--accent);
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity .18s ease, transform .18s ease;
  font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
.skill-demo.open { opacity: 1; transform: none; }
.skill-demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.skill-demo-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.skill-demo-bar i:nth-child(1) { background: #ff5f57; }
.skill-demo-bar i:nth-child(2) { background: #febc2e; }
.skill-demo-bar i:nth-child(3) { background: #28c840; }
.skill-demo-file {
  margin-left: 6px; font-size: .72rem; letter-spacing: .03em;
  color: rgba(255,255,255,.5); font-weight: 600;
}
.skill-demo-code {
  margin: 0; padding: 14px 16px; overflow: hidden;
  font-size: .76rem; line-height: 1.6; color: #d6d2e6;
  white-space: pre; tab-size: 2;
}
.skill-demo-code .caret {
  display: inline-block; width: 7px; margin-left: 1px;
  color: var(--accent2); animation: blink 1s step-end infinite;
}
/* coloration syntaxique légère */
.skill-demo-code .t-kw  { color: #c792ea; font-weight: 600; }
.skill-demo-code .t-str { color: #c3e88d; }
.skill-demo-code .t-com { color: #6b6480; font-style: italic; }
.skill-demo-code .t-num { color: #f78c6c; }

@media (hover: none), (max-width: 600px) {
  .skill-demo { display: none; }   /* pas de survol fiable sur tactile */
}

/* ============================================================
   Améliorations visuelles (polish)
   ============================================================ */

/* ---- (B) barre de progression de scroll ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px var(--accent2);
  transition: width .08s linear;
}

/* ---- (D) scrollbar néon + sélection de texte ---- */
::selection { background: var(--accent); color: #fff; text-shadow: none; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent2));
  border-radius: 10px; border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ---------------- fun facts (fenêtres terminal ancrées aux sections) ---------------- */
/* La fenêtre : verre dépoli + bordure/halo violet, comme le reste du site.
   Par défaut (petit/moyen écran) elle est EN FLUX, centrée, pour ne jamais
   chevaucher le contenu. Sur grand écran (≥1450px) elle passe en absolu dans
   la gouttière vide de sa section (voir media query plus bas). */
.ff-term {
  position: static; width: min(520px, 92%); margin: 26px auto 0; z-index: 4;
  border-radius: 14px; overflow: hidden;
  background: rgba(10, 9, 16, .62);
  backdrop-filter: blur(var(--card-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(140%);
  border: 1px solid rgba(168, 85, 247, .35);
  box-shadow: 0 30px 80px -28px rgba(0,0,0,.9),
              0 0 40px -16px var(--accent),
              inset 0 0 50px -34px var(--accent);
  /* état caché avant apparition — révélé au scroll via la classe .in (JS/IO) */
  opacity: 0; transform: translateY(26px) scale(.96);
  transition: opacity .7s cubic-bezier(.2,.8,.25,1),
              transform .7s cubic-bezier(.2,.8,.25,1);
  will-change: opacity, transform;
}
.ff-term.in { opacity: 1; transform: none; }

/* hero : masqué UNIQUEMENT sur écrans moyens (821–1449px), où la carte est
   centrée plein écran sans gouttière disponible. Sur mobile (≤820px) il
   s'empile sous la carte (voir bloc mobile) ; sur grand écran (≥1450px) il va
   dans la gouttière (voir bloc ci-dessous). */
@media (min-width: 821px) and (max-width: 1449px) {
  .ff-hero { display: none; }
}

/* === grand écran : placement dans les GOUTTIÈRES vides ===
   carte hero ≤ 500px, grilles skills/stats ≤ 900px (toutes centrées) →
   l'espace latéral n'existe qu'à partir de ~1450px, d'où ce seuil : aucune
   fenêtre ne peut chevaucher le contenu. Fenêtres volontairement étroites. */
@media (min-width: 1450px) {
  .ff-term { width: clamp(200px, 15vw, 240px); margin: 0; }

  /* Emplacement 1 — Accueil, à GAUCHE de la carte (centré verticalement) */
  .ff-hero {
    display: block; position: absolute; top: 50%;
    left: clamp(20px, 5vw, 90px);
    transform: translateY(-50%) translateX(-30px) scale(.96);
  }
  .ff-hero.in { transform: translateY(-50%); }

  /* Emplacements 2 & 4 — en HAUT À DROITE (skills, showcase) */
  .ff-skills, .ff-showcase {
    position: absolute; top: 28px; right: clamp(20px, 4vw, 80px);
    transform: translateX(30px) scale(.96);
  }
  .ff-skills.in, .ff-showcase.in { transform: none; }

  /* Emplacement 3 — en HAUT À GAUCHE (stats) */
  .ff-stats {
    position: absolute; top: 28px; left: clamp(20px, 4vw, 80px);
    transform: translateX(-30px) scale(.96);
  }
  .ff-stats.in { transform: none; }
}

/* accessibilité : pas de glissement si l'utilisateur préfère moins d'animation */
@media (prefers-reduced-motion: reduce) {
  .ff-term { transition: none; transform: none; }
}
/* recadrage vertical du hero seulement quand il est en placement absolu (gouttière) */
@media (prefers-reduced-motion: reduce) and (min-width: 1450px) {
  .ff-hero { transform: translateY(-50%); }
}

/* barre de titre façon macOS (3 pastilles + nom de fichier) */
.ff-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.ff-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.ff-bar i:nth-child(1) { background: #ff5f56; }
.ff-bar i:nth-child(2) { background: #ffbd2e; }
.ff-bar i:nth-child(3) { background: #27c93f; }
.ff-title {
  margin-left: 8px; font-size: .76rem; letter-spacing: .03em;
  color: rgba(255,255,255,.5); font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* écran où le texte se tape tout seul */
.ff-screen {
  padding: 15px 16px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: .84rem; line-height: 1.7; color: #d6d2e6;
}
@media (min-width: 1450px) {  /* fenêtres étroites en gouttière : texte plus compact */
  .ff-screen { font-size: .76rem; min-height: 132px; padding: 13px 14px; }
}
.ff-line { white-space: pre-wrap; word-break: break-word; }
.ff-comment { color: rgba(255,255,255,.4); font-style: italic; margin-bottom: 2px; }
.ff-prompt { color: var(--accent2); font-weight: 700; margin-right: 8px; }
.ff-typed { color: #e9e6f2; }
.ff-cursor {
  display: inline-block; margin-left: 1px; color: var(--accent);
  font-weight: 700; animation: ff-blink 1.05s steps(1) infinite;
}
@keyframes ff-blink { 50% { opacity: 0; } }

/* ---- (E) raccord entre sections ---- */
/* plus de trait lumineux : les sections s'enchaînent en douceur sur le fond
   fixe partagé. On garde juste un peu d'air entre deux blocs pour le rythme. */
.section-sep {
  height: 0; margin: 0 auto; border: 0; background: none; box-shadow: none;
}

/* ---- (F) réseaux : glow par plateforme + tooltip ---- */
.social { position: relative; }
.social[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(12,10,22,.95); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.social[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
/* couleurs de marque au survol (fallback = accent du thème) */
.social:hover { color:#fff; border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent); transform: translateY(-3px); }
.social[data-platform="discord"]:hover  { color:#5865f2; border-color:#5865f2; box-shadow:0 0 18px #5865f2; }
.social[data-platform="instagram"]:hover{ color:#e1306c; border-color:#e1306c; box-shadow:0 0 18px #e1306c; }
.social[data-platform="github"]:hover   { color:#fff;    border-color:#fff;    box-shadow:0 0 18px rgba(255,255,255,.6); }
.social[data-platform="youtube"]:hover  { color:#ff0000; border-color:#ff0000; box-shadow:0 0 18px #ff0000; }
.social[data-platform="tiktok"]:hover   { color:#25f4ee; border-color:#25f4ee; box-shadow:0 0 18px #25f4ee; }
.social[data-platform="spotify"]:hover  { color:#1db954; border-color:#1db954; box-shadow:0 0 18px #1db954; }
.social[data-platform="telegram"]:hover { color:#29a9eb; border-color:#29a9eb; box-shadow:0 0 18px #29a9eb; }
.social[data-platform="twitch"]:hover   { color:#9146ff; border-color:#9146ff; box-shadow:0 0 18px #9146ff; }
.social[data-platform="twitter"]:hover,
.social[data-platform="x"]:hover        { color:#fff;    border-color:#fff;    box-shadow:0 0 18px rgba(255,255,255,.55); }
.social[data-platform="email"]:hover    { color:var(--accent2); border-color:var(--accent2); box-shadow:0 0 18px var(--accent2); }

/* ---- (H) apparition en cascade des badges + réseaux ---- */
#stage.show .badges .badge,
#stage.show .socials .social {
  animation: popIn .5s cubic-bezier(.2,.8,.3,1) backwards;
  animation-delay: calc(.45s + var(--i, 0) * .07s);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
/* on neutralise le translate du hover réseau pendant l'animation d'entrée
   en laissant l'état final identique (transform:none) */

/* ---- (G) respect de prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #bg.gradient { animation: none; }
  .avatar-wrap::before { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   Spotify live (pochette + progression) dans la pill Discord
   ============================================================ */
.discord-status { position: relative; }
.discord-status .ds-art {
  width: 18px; height: 18px; border-radius: 4px; flex: none;
  object-fit: cover; box-shadow: 0 0 8px -2px var(--accent2);
}
.discord-status.playing .ds-dot { display: none; }   /* la pochette remplace le point */
.ds-prog {
  position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden;
}
.ds-prog-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 6px var(--accent2);
}
.discord-status.playing { padding-bottom: 9px; }

/* ============================================================
   Toast (notifications) + bouton "copier" sur les réseaux
   ============================================================ */
.neon-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translateX(-50%) translateY(16px);
  padding: 11px 18px; border-radius: 11px; pointer-events: none;
  background: rgba(13,11,22,.96); color: #fff;
  border: 1px solid var(--accent); font-size: .85rem; font-weight: 600;
  box-shadow: 0 12px 34px -10px rgba(0,0,0,.7), 0 0 22px -8px var(--accent);
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.neon-toast.in { opacity: 1; transform: translateX(-50%) translateY(0); }

.social-copy {
  position: absolute; top: -7px; right: -7px;
  width: 19px; height: 19px; border-radius: 50%; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 0 10px -1px var(--accent);
  opacity: 0; transform: scale(.5); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.social:hover .social-copy { opacity: 1; transform: scale(1); pointer-events: auto; }
.social-copy svg { width: 10px; height: 10px; }
.social-copy:hover { filter: brightness(1.15); }

/* ============================================================
   Easter egg Konami
   ============================================================ */
.konami-bit { position: fixed; top: 0; z-index: 190; pointer-events: none; user-select: none; }
body.party { animation: party-shake .5s ease 2; }
@keyframes party-shake {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-4px, 2px); }
  75% { transform: translate(4px, -2px); }
}

/* ============================================================
   Terminal interactif
   ============================================================ */
.term-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 115;
  width: 48px; height: 48px; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,11,22,.92); color: var(--accent2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.7), 0 0 22px -10px var(--accent);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.term-launch:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.75), 0 0 26px -6px var(--accent);
}
.term-launch svg { width: 24px; height: 24px; }

.terminal {
  position: fixed; inset: 0; z-index: 140;
  display: none; align-items: center; justify-content: center;
  background: rgba(3,2,8,.7); backdrop-filter: blur(6px);
  padding: 20px;
}
.terminal.open { display: flex; }
.term-win {
  width: min(720px, 96vw); height: min(460px, 80vh);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: rgba(10,9,16,.98);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.85), 0 0 50px -16px var(--accent);
  animation: term-pop .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes term-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.term-bar {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 14px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-title {
  margin-left: 8px; font-size: .74rem; color: rgba(255,255,255,.5);
  font-family: ui-monospace, Consolas, monospace; flex: 1;
}
.term-close {
  border: none; background: transparent; color: rgba(255,255,255,.55);
  cursor: pointer; font-size: .95rem; padding: 2px 6px; border-radius: 6px;
}
.term-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.term-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: .82rem; line-height: 1.55; color: #d6d2e6;
}
.term-row { white-space: pre-wrap; word-break: break-word; margin: 1px 0; }
.term-row.cmd { color: #fff; }
.term-row.err { color: #ff8da3; }
.term-row a { color: var(--accent2); }
.term-ascii { margin: 0 0 8px; line-height: 1.1; font-size: .66rem; white-space: pre; overflow-x: auto; }
.term-prompt { color: var(--accent); font-weight: 700; }
.t-accent { color: var(--accent2); }
.t-name { color: #fff; }
.term-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.term-line .term-prompt { flex: none; }
.term-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: inherit; font-size: inherit; caret-color: var(--accent2);
}
@media (max-width: 480px) { .term-launch { width: 42px; height: 42px; right: 12px; bottom: 12px; } }

/* ============================================================
   Section Stats : compteurs + uptime Synora + carte GitHub
   ============================================================ */
.stats-sec { position: relative; padding: 12vh 24px; overflow: hidden; }
.stats-grid {
  max-width: 900px; margin: 24px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.stat {
  background: rgba(20,17,31,.6); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 26px 18px; text-align: center;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.8);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease,
              border-color .3s ease, box-shadow .3s ease;
}
.stat:hover { border-color: var(--accent); box-shadow: 0 0 30px -12px var(--accent); }
.stat-value {
  font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -.02em;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 8px;
}
.stat-label {
  margin-top: 10px; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
/* badge uptime Synora */
#synora-uptime .up-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: #747f8d; box-shadow: 0 0 8px #747f8d;
  -webkit-text-fill-color: initial;
}
#synora-uptime .up-text { -webkit-text-fill-color: initial; color: #fff; font-size: 1.3rem; }
#synora-uptime[data-up="1"] .up-dot { background: #3ba55d; box-shadow: 0 0 10px #3ba55d; animation: ds-pulse 2s ease-in-out infinite; }
#synora-uptime[data-up="0"] .up-dot { background: #ed4245; box-shadow: 0 0 10px #ed4245; }

/* carte GitHub */
.gh-card {
  max-width: 560px; margin: 26px auto 0; padding: 20px 22px;
  background: rgba(20,17,31,.7); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8);
}
.gh-head { display: flex; align-items: center; gap: 10px; }
.gh-head svg { width: 22px; height: 22px; color: #fff; }
.gh-user { font-weight: 700; color: #fff; text-decoration: none; }
.gh-user:hover { color: var(--accent2); }
.gh-stats { display: flex; gap: 26px; margin: 16px 0 4px; flex-wrap: wrap; }
.gh-stats > div { display: flex; flex-direction: column; }
.gh-stats b {
  font-size: 1.5rem; font-weight: 800; color: var(--accent2);
  font-variant-numeric: tabular-nums;
}
.gh-stats span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.gh-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gh-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; border-radius: 10px; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  color: #d6d2e6; font-size: .9rem; transition: .2s ease;
}
.gh-list a:hover { border-color: var(--accent); background: rgba(168,85,247,.1); color: #fff; }
.gh-repo-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-repo-star { flex: none; color: var(--accent2); font-size: .82rem; }

/* ---------- sélecteur de langue EN / FR ---------- */
.lang-switch {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(12,10,22,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.lang-switch a {
  font: 600 .72rem/1 var(--font); letter-spacing: .06em;
  color: rgba(255,255,255,.6); text-decoration: none;
  padding: 6px 11px; border-radius: 999px; transition: .2s ease;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 2px 10px rgba(168,85,247,.4);
}
@media (max-width: 600px) { .lang-switch { top: 10px; right: 10px; } }
