/* Variables et reset */
:root {
    --primary: #00aaff;
    --secondary: #ff00aa;
    --accent: #00ff88;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --glass: rgba(20, 20, 30, 0.7);
    --glass-light: rgba(255, 255, 255, 0.1);
    --glow: 0 0 15px rgba(0, 170, 255, 0.7);
    --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Particules */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Fond vidéo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.2);
}

/* Carte de profil */
.profile-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 170, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
    margin: 2rem;
    overflow: visible;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: var(--transition);
}

.profile-card:hover::before {
    opacity: 0.6;
}

.profile-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 170, 255, 0.3);
}

/* Header */
.profile-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

/* Photo de profil hexagonale */
.profile-picture-container {
    position: relative;
    width: 140px;
    height: 160px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon {
    width: 120px;
    height: 120px;
    position: relative;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.5));
}

.hexagon-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.hexagon-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
}

.profile-picture-container:hover .hexagon {
    transform: rotate(15deg) scale(1.1);
}

.profile-picture-container:hover .hexagon-inner img {
    transform: scale(0.95);
}

/* Status */
.online-status {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 15px var(--accent);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Badge niveau */
.level-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--light);
    z-index: 2;
}

/* Texte profil */
.profile-username {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.profile-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

.profile-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
}

/* Compétences */
.skills-container {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
}

.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Lecteur audio */
.audio-player {
    background: var(--glass-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 1.5rem 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
}

.audio-controls {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.8rem;
}

#play-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

#play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}

.waveform {
    flex-grow: 1;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.waveform::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: waveform-animation 2s infinite linear;
}

@keyframes waveform-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

.audio-info {
    text-align: center;
}

#song-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

#song-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Liens sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.social-link {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
}

.social-link:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    bottom: -40px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.discord { background-color: #5865F2; }
.youtube { background-color: #FF0000; }
.github { background-color: #333; }
.twitch { background-color: #9146FF; }

/* Footer */
.profile-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(0, 170, 255, 0.1);
    transform: translateY(-3px);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    position: relative;
    transition: var(--transition);
}

.badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.badge::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
}

.badge:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    bottom: -40px;
}

/* Animations d'entrée */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .profile-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .audio-player {
        margin: 0 1rem 1rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}