/* Variables CSS - Style minimaliste dark */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #aaaaaa;
    --accent-primary: #d6a504;
    --accent-secondary: #ff0080;
    --accent-blue: #0080ff;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow-green: rgb(255, 255, 255);
    --glow-pink: rgb(0, 6, 88);
    --glow-blue: rgba(0, 128, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000;
    color: #ffffff;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #000;
}

/* Animations supprimées - remplacées par le visualiseur audio */

/* Contrôle audio - Nouveau style avec barre de volume */
.audio-control {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 60px;
    max-width: 60px;
    overflow: hidden;
    justify-content: left;
}

.audio-control:hover {
    width: 350px;
    max-width: 350px;
}

.audio-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
    flex-shrink: 0;
    margin-left: -7px;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-control:hover .volume-control {
    opacity: 1;
}

.volume-icon {
    color: white;
    font-size: 16px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Informations de musique */
.music-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 0;
}

.audio-control:hover .music-info {
    opacity: 1;
}

.song-title {
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: 200px;
    width: 200px;
    animation: marquee 10s linear infinite;
    position: relative;
}

.song-title::before,
.song-title::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.song-title::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.song-title::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-200%);
    }
}

.music-controls {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.music-nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s;
}

.music-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.music-nav-btn:active {
    transform: scale(0.95);
}

.time-display {
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
}

/* Container principal */
.main-container {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: transparent;
    backdrop-filter: none;
}

.site-title {
    max-width: 100px;
    height: auto;
    background: transparent;
}

.site-title:hover {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Section profil centrale */
.profile-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-container {
    background: transparent;
    backdrop-filter: none;
    border: none;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}



/* Avatar */
.profile-image {
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px var(--glow-green);
    animation: avatarFloat 3s ease-in-out infinite;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    overflow: hidden;
}

.avatar i {
    font-size: 2.5rem;
    color: var(--bg-primary);
}



@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* Informations profil */
.profile-info {
    margin-bottom: 2rem;
}

.username {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Sections cachées */
.section {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 100px;
    width: 600px;
    max-width: 90vw;
    min-height: 250px;
}

.section.hidden {
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Projets */
.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.project-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px var(--glow-green);
    transform: translateY(-3px);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
}

.project-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-details p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tech {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Section À propos */
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-primary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--glow-green);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: transparent;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--glow-green);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Effet de clic */
.click-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: clickExpand 0.6s ease-out forwards;
}

@keyframes clickExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .header {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .profile-container {
        padding: 2rem 1.5rem;
        margin: 0 auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }
    
    .audio-control {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        gap: 10px;
        width: 200px;
    }
    
    .audio-control:not(:hover) {
        width: 61px;
        padding: 8px 12px;
        gap: 0;
    }
    
    .song-title {
        max-width: 80px;
        font-size: 10px;
    }
    
    .music-nav-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .audio-control:not(:hover) .volume-control {
        margin-left: -12px;
        transform: translateX(12px);
    }
    
    .volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 1.5rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar i {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Visualiseur audio */
.audio-visualizer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: end;
    gap: 2px;
    height: 40px;
    padding: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-visualizer.active {
    opacity: 1;
}

.visualizer-bar {
    width: 3px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: height 0.1s ease, background-color 0.1s ease;
}

.visualizer-bar:nth-child(1) {
    background: var(--accent-primary);
}

.visualizer-bar:nth-child(2) {
    background: var(--accent-secondary);
}

.visualizer-bar:nth-child(3) {
    background: var(--accent-blue);
}

.visualizer-bar:nth-child(4) {
    background: var(--accent-primary);
}

.secret-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    height: 100vh;
}

.frame-container {
    position: relative;
    width: 300%;
    left: -100%;
    height: 100vh;
}

.frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.close-secret {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 100000;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-secret:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.close-secret:active {
    transform: scale(0.95);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    background: transparent;
}

.profile-photo:hover {
    transform: scale(1.05);
}