:root {
    --bg: #05070a;
    --card-bg: #0d1117;
    --accent: #00f0ff;
    --text: #ffffff;
    --dim: #888;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 40%);
    z-index: -1;
}

/* --- NAVIGATION --- */
nav {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: 0.4s ease;
    border-bottom: 1px solid transparent;
}

.nav-left { display: flex; align-items: center; gap: 1rem; }
.nav-logo-img { height: 30px; width: auto; display: none; opacity: 0; transition: 0.4s ease; }

.logo-nav { 
    font-weight: 800; 
    letter-spacing: 2px; 
    color: var(--accent); 
    transition: all 0.4s ease;
    font-size: 1.5rem;
}

nav.scrolled {
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
nav.scrolled .logo-nav { font-size: 1rem; color: #ffffff; }
nav.scrolled .nav-logo-img { display: block; opacity: 1; }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { 
    text-decoration: none; 
    color: #e0e0e0; 
    font-size: 0.9rem; 
    transition: 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
nav a:hover { color: var(--accent); }

section { min-height: 100vh; padding: 15vh 10% 5vh; }

/* --- HERO --- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-text { flex: 1.5; }
.hero-logo-box { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-logo-box img { width: 60%; height: auto; display: block; }

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; color: #ffffff; }
.glitch-text { color: var(--accent); text-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
.hero p.subtitle { color: var(--dim); letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 1rem; }
.hero p.description { color: #e0e0e0; font-size: 1.1rem; margin-bottom: 2.5rem; opacity: 0.8; text-align: justify; }

.btn {
    padding: 1rem 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.5s;
    cursor: pointer;
    background: transparent;
    display: inline-block;
}
.btn:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 30px var(--accent); }

/* --- PORTFOLIO --- */
#portfolio {
    background: rgba(0, 240, 255, 0.03);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}
.portfolio-title {
    margin-bottom: 2rem; 
    font-weight: 800; 
    letter-spacing: 5px; 
    opacity: 0.5;
    font-size: 2.2rem;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 6rem 0;
    width: 100%;
}

.project-row.reversed { 
    flex-direction: row-reverse; 
}

.separator-container {
    width: 100%;
    height: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.line-separator {
    width: 100%;
    height: 1px;
    background: rgba(0, 240, 255, 0.3);
}

.project-media {
    flex: 1.2;
    background: #000;
    border: 1px solid #1a2238;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.project-media.no-bg { background: transparent; border: none; box-shadow: none; }
.project-media iframe, .project-media img { width: 100%; height: 100%; border: none; display: block; }
.project-media img { object-fit: contain; padding: 20px; }

.project-content { flex: 1; }
.project-content h3 { font-size: 2rem; color: var(--accent); margin-bottom: 1.5rem; letter-spacing: 2px; }
.project-content p { color: #ffffff; font-size: 1.05rem; margin-bottom: 1.5rem; text-align: justify; }
.project-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* --- CONTACT --- */
.contact { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; color: #ffffff; }
.contact p { color: var(--dim); margin-bottom: 1.5rem; }

.copy-email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.email-display { font-size: clamp(0.9rem, 4vw, 1.8rem); color: var(--accent); font-weight: 300; }
.copy-icon-btn {
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.copy-icon-btn:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px var(--accent); }
.copy-icon-btn svg { width: 18px; height: 18px; fill: var(--accent); }

#copy-status {
    font-size: 0.8rem;
    color: var(--accent);
    height: 20px;
    margin-top: 10px;
    opacity: 0;
    transition: 0.3s;
    text-transform: lowercase;
}

@media (max-width: 1024px) {
    nav ul { display: none; }
    .hero { flex-direction: column-reverse; text-align: center; justify-content: center; padding: 10vh 10% 5vh; gap: 2rem; }
    .hero-logo-box { width: 100%; flex: none; }
    .hero-logo-box img { width: 40%; }
    .hero-text { width: 100%; flex: none; }
    .project-row, .project-row.reversed { flex-direction: column !important; gap: 2rem; padding: 4rem 0; }
    .project-media { width: 100%; }
    .logo-nav { font-size: 1.1rem; }
    
    /* Correction spécifique justification Mobile */
    .project-content p, .hero p.description { 
        text-align: justify !important; 
    }
    .project-content h3 {
        text-align: center;
    }
}