/* --- 1. VARIABLES & RESET --- */
:root {
    --bg: #030305;
    --text: #ffffff;
    --accent: #5046e5;
    --accent-glow: rgba(80, 70, 229, 0.45);
    --glass: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Space Grotesk', sans-serif;
    --font-display: 'Syncopate', sans-serif;
}

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

body {
    background-color: var(--bg); color: var(--text); font-family: var(--font-main);
    overflow-x: hidden; cursor: crosshair; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* --- 2. TEXTURES & EFFETS --- */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 999; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* LE HALO VIOLET QUI SUIT LA SOURIS */
.cursor-glow {
    position: fixed; top: 0; left: 0; width: 800px; height: 800px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(0,0,0,0) 65%);
    border-radius: 50%;
    pointer-events: none; /* La souris passe à travers */
    margin-left: -400px; margin-top: -400px;
    z-index: 0; /* Tout au fond */
    mix-blend-mode: screen;
    will-change: transform;
}

/* --- 3. NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 60px; position: fixed; top: 0; width: 100%; z-index: 100;
    background: linear-gradient(to bottom, rgba(3,3,5,0.95) 0%, transparent 100%);
    backdrop-filter: blur(5px);
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; }
.ver { font-size: 0.7rem; color: var(--accent); margin-left: 8px; }

.menu { display: flex; align-items: center; gap: 40px; }
.menu-link { 
    color: #888; text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; 
    font-weight: 700; transition: 0.3s; text-transform: uppercase;
}
.menu-link:hover { color: #fff; }

.btn-contact {
    background: var(--text); color: var(--bg); text-decoration: none;
    padding: 10px 22px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); transition: 0.3s;
}
.btn-contact:hover { background: var(--accent); color: #fff; }

/* --- 4. HERO SECTION --- */
.hero { 
    display: flex; flex-direction: column;
    padding: 180px 60px 60px; position: relative; z-index: 2;
}
.sub-hero { 
    color: var(--accent); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 20px; 
    font-weight: 700; text-transform: uppercase; 
}
.glitch-title { 
    font-family: var(--font-display); font-size: 6.5vw; line-height: 0.95; 
    text-transform: uppercase; 
    background: linear-gradient(45deg, #fff 30%, #666 100%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-line { width: 80px; height: 3px; background: var(--accent); margin: 35px 0; box-shadow: 0 0 15px var(--accent-glow); }
.description { font-size: 1.5rem; color: #999; max-width: 650px; line-height: 1.4; font-weight: 300; }

/* --- 5. SECTIONS COMMUNES (Transparence pour voir le halo) --- */
section {
    background: transparent !important;
    border: none !important;
    position: relative; z-index: 2;
}
.about-section { padding: 60px 60px 100px; }
.services-section, .projects-section { padding: 0 60px 140px; }

.container { max-width: 1400px; margin: 0 auto; }
.section-title { font-family: var(--font-display); font-size: 1.8rem; color: #fff; margin-bottom: 60px; letter-spacing: 2px; }
.title-right { text-align: right; }

/* --- 6. SECTION FONDATRICE --- */
.about-centered { max-width: 850px; margin: 0 auto; text-align: left; }
.bio-full { font-size: 1.15rem; color: #a0a0a0; line-height: 1.8; font-weight: 300; }
.bio-full p { margin-bottom: 30px; }
.bio-full .lead { 
    font-size: 1.5rem; color: #fff; font-weight: 400; line-height: 1.4; 
    padding-left: 25px; border-left: 3px solid var(--accent); 
}
.signature { margin-top: 40px; font-family: var(--font-display); color: var(--accent); letter-spacing: 2px; font-size: 1rem; }

/* --- 7. GRILLE SERVICES (ARSENAL) --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }

.card { 
    background: var(--glass); border: 1px solid var(--border); padding: 40px; 
    min-height: 380px; position: relative; overflow: hidden; display: flex; 
    flex-direction: column; justify-content: flex-end; transition: 0.3s; 
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-number { 
    font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,0.03); 
    position: absolute; top: 15px; right: 20px; 
}
.card h3 { 
    font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; 
    margin-bottom: 20px; color: #fff; word-wrap: break-word; 
}
.card p { color: #888; font-size: 0.95rem; }
.card-neon { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; 
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(80, 70, 229, 0.1), transparent 40%); 
    opacity: 0; transition: 0.3s; 
}
.card:hover .card-neon { opacity: 1; }

/* --- 8. SECTION PROJETS --- */
.project-card {
    background: var(--glass); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column; transition: 0.3s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.project-img-container { width: 100%; height: 220px; overflow: hidden; border-bottom: 1px solid var(--border); }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(0.5); }
.project-card:hover .project-img { filter: grayscale(0); transform: scale(1.05); }

.project-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.project-desc { font-size: 0.95rem; color: #aaa; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

.project-btn {
    display: inline-block; text-align: center; padding: 10px 0; width: 100%;
    background: rgba(80, 70, 229, 0.1); color: var(--accent); text-decoration: none;
    font-family: var(--font-display); font-size: 0.8rem; border: 1px solid var(--accent); transition: 0.3s;
}
.project-btn:hover { background: var(--accent); color: #fff; }

/* --- 9. FOOTER (LE VOILA !) --- */
footer { 
    padding: 100px 60px 60px; /* Espace large */
    display: flex; flex-direction: column; align-items: center; 
    text-align: center; 
    background: transparent; 
    border-top: 1px solid var(--border); 
    position: relative; z-index: 2;
    margin-top: 50px;
}

.footer-content {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
}

.logo-footer { 
    font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 3px; 
    color: #fff; margin-bottom: 20px; 
}

footer h2 { 
    font-size: 1.5rem; color: #888; margin-bottom: 20px; font-family: var(--font-display); 
}

.footer-contact-btn { 
    font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); 
    text-decoration: none; padding: 15px 40px; 
    border: 1px solid var(--accent); transition: 0.3s; letter-spacing: 2px; 
    background: rgba(80, 70, 229, 0.05);
}
.footer-contact-btn:hover { 
    background: var(--accent); color: #fff; 
    box-shadow: 0 0 30px var(--accent-glow); 
}

.footer-bottom { 
    margin-top: 80px; width: 100%; display: flex; justify-content: space-between; 
    font-size: 0.75rem; color: #555; font-weight: 700; letter-spacing: 1px; 
    text-transform: uppercase; border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

/* --- 10. RESPONSIVE --- */
@media (max-width: 992px) { .glitch-title { font-size: 5rem; } }

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .menu .menu-link { display: none; }
    .hero { padding: 120px 25px 40px; }
    .glitch-title { font-size: 3.2rem; }
    .description { font-size: 1.1rem; }
    .about-section, .services-section, .projects-section { padding: 40px 25px; }
    .services-section, .projects-section { padding-bottom: 80px; }
    .bio-full .lead { font-size: 1.2rem; padding-left: 15px; }
    .title-right { text-align: left; }
    .footer-bottom { flex-direction: column; gap: 15px; margin-top: 50px; text-align: center; }
}