/* --- VARIABLES --- */
:root {
    --bg: #050505;
    --text: #ffffff;
    --accent: #ccff00; /* Vert Néon */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg) !important; /* Force le noir */
    color: var(--text) !important;
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; left: 0; width: 100%; 
    padding: 2rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: exclusion;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.highlight { color: var(--accent); }

.nav-links { 
    display: flex; gap: 40px; align-items: center; 
}
.nav-links a {
    text-transform: uppercase; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px;
}
.btn-contact {
    border: 1px solid rgba(255,255,255,0.3); padding: 10px 25px; border-radius: 50px;
    transition: all 0.3s;
}
.btn-contact:hover { background: var(--text); color: var(--bg); }

/* --- HERO SECTION (CORRIGÉE) --- */
.hero {
    height: 100vh; position: relative; padding: 0 3rem;
    display: flex; align-items: center; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; width: 100%; }

/* Correction de la taille pour éviter le chevauchement */
.hero-title {
    font-family: var(--font-display); 
    font-size: 7vw; /* Réduit de 10vw à 7vw pour aérer */
    line-height: 1.1; 
    font-weight: 800;
    text-transform: uppercase; margin-bottom: 2rem;
}
.hero-title .outline {
    color: transparent; 
    -webkit-text-stroke: 2px var(--text);
}

.hero-footer {
    display: flex; justify-content: space-between; margin-top: 4rem;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; width: 100%;
}

/* Visuel Arrière-plan */
.hero-visual {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40vw; height: 60vh; z-index: 1; opacity: 0.4; filter: grayscale(100%);
    transition: all 0.5s; overflow: hidden; pointer-events: none;
}
.hero:hover .hero-visual { opacity: 1; filter: grayscale(0%); }

/* --- MARQUEE --- */
.marquee-wrap { background: var(--accent); color: var(--bg); padding: 20px 0; transform: rotate(-2deg) scale(1.05); margin: 0; }
.marquee { display: flex; overflow: hidden; white-space: nowrap; }
.marquee span { 
    font-family: var(--font-display); font-size: 2rem; font-weight: 800; padding-right: 50px;
    animation: marquee 20s linear infinite; 
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- PROJETS --- */
.work-section { padding: 15vh 3rem; position: relative; }
.section-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 4rem; }

.project-list { display: flex; flex-direction: column; }
.project-row {
    display: flex; align-items: baseline; padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    transition: padding-left 0.3s; position: relative; z-index: 2;
}
.project-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.project-row:hover { padding-left: 30px; color: var(--accent); }

.p-id { font-family: var(--font-body); font-size: 1rem; width: 100px; opacity: 0.5; }
.p-title { font-family: var(--font-display); font-size: 4vw; margin: 0; flex-grow: 1; font-weight: 700; }
.p-cat { font-family: var(--font-body); font-size: 1rem; border: 1px solid rgba(255,255,255,0.2); padding: 5px 20px; border-radius: 50px; color: var(--text); }

/* --- FOOTER --- */
footer { padding: 10vh 3rem 5vh; }
.footer-title { font-family: var(--font-display); font-size: 5vw; line-height: 1; margin-bottom: 4rem; text-align: center; }
.footer-cta { text-align: center; margin-bottom: 8rem; }
.email-btn { 
    font-size: 3vw; border-bottom: 2px solid var(--accent); padding-bottom: 5px; 
    transition: all 0.3s; 
}
.email-btn:hover { background: var(--accent); color: var(--bg); padding: 5px 20px; border-bottom: none; }

.footer-bottom { 
    display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; font-size: 0.9rem; color: #888; 
}
.socials a { margin-left: 20px; color: var(--text); transition: color 0.3s; }
.socials a:hover { color: var(--accent); }

/* --- CURSEUR & NOISE --- */
.cursor-dot { width: 8px; height: 8px; background: var(--accent); position: fixed; border-radius: 50%; pointer-events: none; z-index: 10001; transform: translate(-50%, -50%); }
.cursor-circle { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s; }
.cursor-hover { width: 80px; height: 80px; background: rgba(255,255,255,0.05); border-color: transparent; }
.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.06; pointer-events: none; z-index: 9999; }
.loader { position: fixed; inset: 0; background: var(--bg); z-index: 20000; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.loader-text { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 2px; background: #222; }
.loader-progress { width: 0%; height: 100%; background: var(--accent); }

/* MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 12vw; }
    .project-row { flex-direction: column; }
    .p-title { font-size: 8vw; }
    .footer-title { font-size: 3rem; }
    .email-btn { font-size: 1.5rem; }
}