/* --- RESET & VARIABLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0d0c1d;
  background-image: 
    radial-gradient(#ff007f 1px, transparent 1px),
    radial-gradient(#00f3ff 1px, #0d0c1d 1px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: #e2e8f0;
  font-family: "Courier New", Courier, monospace;
  padding: 25px 15px;
  position: relative;
  min-height: 100vh;
}

/* Léger effet scanlines cathodiques (effet écran CRT) */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
}

.site-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- STYLE DES CADRES RÉTRO & ANIMATIONS DE SURVOL --- */
.retro-box {
  background: #151428;
  border: 3px solid #ff007f;
  box-shadow: 6px 6px 0px #000;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.2s ease, 
              border-color 0.2s ease;
}

/* Animation au survol de la souris */
.retro-box:hover {
  transform: translate(-3px, -3px) scale(1.015);
  box-shadow: 10px 10px 0px #00f3ff, 0 0 15px rgba(255, 0, 127, 0.4);
  border-color: #00f3ff;
}

.box-title {
  background: #ff007f;
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
}

/* --- HEADER --- */
.header-box {
  text-align: center;
  border-color: #00f3ff;
  box-shadow: 6px 6px 0px #ff007f;
}

.header-box:hover {
  box-shadow: 10px 10px 0px #ff007f, 0 0 20px rgba(0, 243, 255, 0.5);
  border-color: #ff007f;
}

.blink-tag {
  display: inline-block;
  background: #ffe600;
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 8px;
  box-shadow: 2px 2px 0 #000;
  animation: blinker 1.2s infinite alternate;
}

@keyframes blinker {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

.header-box h1 {
  font-size: 2.8rem;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 3px 3px 0px #ff007f, -2px -2px 0px #00f3ff;
  margin: 10px 0 5px 0;
}

.subtitle {
  color: #a5b4fc;
  font-size: 0.85rem;
}

.status-ticker {
  margin-top: 14px;
  background: #080711;
  border: 1px dashed #52527a;
  padding: 6px;
  color: #00f3ff;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* --- MISE EN PAGE --- */
.layout {
  display: flex;
  gap: 20px;
}

.sidebar {
  flex: 1;
}

.main-content {
  flex: 2;
}

@media (max-width: 640px) {
  .layout {
    flex-direction: column;
  }
}

/* --- CARTE PROFIL & PHOTO --- */
.profile-box {
  text-align: center;
}

.avatar-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px auto;
  border: 3px solid #ffe600;
  box-shadow: 4px 4px 0 #000;
  background: #000;
  overflow: hidden;
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.retro-box:hover .avatar-img {
  transform: scale(1.08);
}

.username {
  color: #ffe600;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0 #000;
}

.tagline {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

/* --- MINI CASSETTE / AUDIO --- */
.cassette-player {
  background: #090814;
  border: 2px solid #2e2c4d;
  padding: 10px;
}

.tape-anim {
  display: flex;
  justify-content: space-around;
  font-size: 1.5rem;
  color: #ff007f;
  margin-bottom: 5px;
}

.wheel {
  display: inline-block;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.track-info {
  font-size: 0.75rem;
  color: #00f3ff;
  text-align: center;
  margin-bottom: 8px;
}

.eq-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 16px;
  gap: 4px;
}

.bar {
  width: 5px;
  background: #ffe600;
  animation: jump 0.6s infinite alternate;
}

.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; }
.bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes jump {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* --- CONTENU --- */
p {
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.retro-list {
  list-style: none;
}

.retro-list li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.retro-list span {
  color: #ffe600;
  margin-right: 6px;
}

/* --- BOUTONS RÉTRO --- */
.button-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.retro-btn {
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 8px 14px;
  color: #000;
  box-shadow: 4px 4px 0 #000;
  border: 2px solid #fff;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.retro-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn-pink { background: #ff007f; color: #fff; }
.btn-cyan { background: #00f3ff; color: #000; }
.btn-yellow { background: #ffe600; color: #000; }

/* --- FOOTER --- */
.footer-box {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 10px;
}