/* --- FONT DECLARATION --- */
@font-face {
    font-family: 'San Francisco';
    src: url('SF-Pro-Display-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

/* --- BODY --- */
body {
    background: #0b0b0b;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-family: 'San Francisco';
    padding: 20px;
}

/* --- BACKGROUND VIDEO --- */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    display: none;
}

/* --- OVERLAY --- */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    opacity: 1;
    transition: opacity .8s ease;
}

#overlay.fade-out {
    opacity: 0;
}

#overlay-text {
    font-family: 'San Francisco';
    font-size: 2rem;
    letter-spacing: 1px;
    color: #fff;
    transition: opacity .8s ease;
    text-align: center;
    padding: 0 20px;
}

/* --- MAIN CONTAINER --- */

.main-container {
    width: 90%;
    max-width: 450px;
    padding: 30px 25px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: none;
    margin: 0 auto;

    /* --- Nouveau style --- */
    background: rgba(232, 107, 161, 0.2); /* rose transparent */
    border: 0.1px solid #e6277a; /* bordure neon */
    backdrop-filter: blur(8px); /* flou derrière le container */
    box-shadow: 0 0 20px #e6277a, 0 0 40px #e6277a, 0 0 60px #e6277a; /* glow */
    text-align: center;
}

/* --- AVATAR --- */
.avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #444;
    border-radius: 50%;
}

/* --- USERNAME --- */
.username {
    font-family: 'San Francisco';
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- ICON ROW --- */
.icon-row {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.icon-row a {
    text-decoration: none;
    color: #ddd;
    font-size: 1.3rem;
    padding: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: .2s ease-in-out;
}

.icon-row a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* --- FADE ANIMATION --- */
.fade {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- DISCORD STATUS --- */
.discord-status {
    width: 100%;
    max-width: 380px;
    padding: 10px;
    margin: 15px auto 0;
    background: linear-gradient(135deg,#1a1a1a 0%,#0f0f0f 100%);
    border: 1px solid #444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'San Francisco';
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.status-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.status-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.status-indicator.online { background: #23a55a; }
.status-indicator.idle { background: #f0b232; }
.status-indicator.dnd { background: #f23f43; }
.status-indicator.offline { background: #80848e; }

.status-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.status-username {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.status-activity {
    font-size: 11px;
    color: #b5bac1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-activity i {
    font-size: 12px;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.activity-name {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.activity-state, .activity-time {
    font-size: 10px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-platform {
    margin-left: auto;
    font-size: 14px;
    color: #5865f2;
}

.activity-icon {
    margin-right: 4px;
}

/* --- BIO --- */
.bio-container {
    margin: 10px auto 0;
    font-size: 0.95rem;
    color: #d0d0d0;
    font-family: 'San Francisco';
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.bio-text {
    min-height: 1em;
}

.cursor {
    font-weight: 700;
    color: #7289da;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    text-shadow: 0 0 8px rgba(114,137,218,0.6);
}

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

/* --- MEDIA QUERIES --- */
@media(max-width:480px){
    .main-container { padding: 25px 20px; }
    .avatar img { width: 90px; height: 90px; }
    .username { font-size: 1.4rem; }
    .icon-row { gap: 10px; }
    .icon-row a { width: 45px; height: 45px; font-size: 1.2rem; }
    .discord-status { padding: 8px; gap: 8px; }
    .status-avatar { width: 40px; height: 40px; }
    .status-username { font-size: 13px; }
    .activity-name { font-size: 11px; }
    .bio-container { font-size: 0.9rem; }
}

@media(max-width:360px){
    .avatar img { width: 80px; height: 80px; }
    .username { font-size: 1.3rem; }
    .icon-row a { width: 42px; height: 42px; font-size: 1.1rem; }
    .icon-row { gap: 8px; }
    .bio-container { font-size: 0.85rem; }
}

/* ===============================
   GLOBAUX : GLITCH + NEON GLOW
   =============================== */


/* --- Keyframes Neon Glow --- */
@keyframes neonGlow {
  from { text-shadow: 0 0 4px #e6277a, 0 0 10px #0ff; }
  to { text-shadow: 0 0 8px #e6277a, 0 0 18px #0ff; }
}

/* --- Keyframes Blink Cursor --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Classe curseur clignotant --- */
.cursor {
  font-weight: 700;
  color: #7289da;
  margin-left: 2px;
  animation: blink 0.8s infinite;
  text-shadow: 0 0 8px rgba(114,137,218,0.6);
}

/* --- Texte animé : neon glow --- */
h1, h2, h3, h4, h5, h6, p, span, .username, .avatar, .bio-text, .status-username, .activity-name {
  animation: neonGlow 1.5s ease-in-out infinite alternate;
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 12px #0ff, 0 0 18px #0ff;
}

/* --- Fade-in pour les éléments dynamiques --- */
.fade {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Hover léger sur les icônes --- */
.icon-row a {
  transition: .2s ease-in-out;
}

.icon-row a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* --- Overlay fade out --- */
#overlay.fade-out {
  opacity: 0;
  transition: opacity .8s ease;
}

/* Overlay pour scanlines + neige + shake visuel */
#vhs-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;  /* laisse tout cliquable en dessous */
  z-index: 9999;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.08) 0 1px,
    transparent 1px 2px
  ); /* scanlines */
}

/* Glitch sur titres ou éléments spécifiques */
.glitch {
  position: relative;
  color: #fff;
  font-weight: bold;
  animation: rgb-glitch 0.3s infinite;
  text-shadow: 2px 0 red, -2px 0 cyan, 0 2px blue;
}
@keyframes rgb-glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px) }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

