/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --purple: #60519b;
    --dark: #31323c;
    --light: #bfc0d1;
    --bg: #1a1a24;
    --surface: #242430;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--light);
    position: relative;
}

/* Particules flottantes */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { left: 90%; animation-delay: 2.5s; animation-duration: 19s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Grain texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
}

/* Mesh gradient animé */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(96, 81, 155, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(191, 192, 209, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(96, 81, 155, 0.2) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; opacity: 1; }
    50% { background-position: 20% 30%, 80% 70%, 60% 40%; opacity: 0.8; }
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    width: 80px;
    background: rgba(36, 36, 48, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(96, 81, 155, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--purple) 30%, var(--purple) 70%, transparent 100%);
    opacity: 0.6;
    animation: slideGlow 3s ease-in-out infinite;
}

@keyframes slideGlow {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(20px); }
}

.back-link {
    font-size: 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: var(--purple);
}

.divider {
    width: 30px;
    height: 1px;
    background: rgba(96, 81, 155, 0.3);
}

.year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
}

/* ==========================================
   MAIN
   ========================================== */

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* ==========================================
   COMING SOON CONTENT
   ========================================== */

.coming-soon-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Terminal */
.terminal {
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 81, 155, 0.3);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto 60px;
    overflow: hidden;
    animation: terminalGlow 2s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(96, 81, 155, 0.2); }
    50% { box-shadow: 0 0 40px rgba(96, 81, 155, 0.4); }
}

.terminal-header {
    background: rgba(36, 36, 48, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(96, 81, 155, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.terminal-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.terminal-line {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.prompt {
    color: var(--purple);
    font-weight: bold;
}

.command {
    color: var(--light);
}

.output {
    color: #4CAF50;
}

.typing-animation {
    animation: blink 1.5s infinite;
}

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

/* Titre */
.title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.7;
    margin-bottom: 40px;
}

/* Bouton retour */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(96, 81, 155, 0.2);
    border: 1px solid rgba(96, 81, 155, 0.4);
    border-radius: 10px;
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 81, 155, 0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .main {
        padding: 40px 30px;
    }
    
    .sidebar {
        width: 60px;
        padding: 30px 0;
    }
    
    .terminal {
        margin-bottom: 40px;
    }
}
