:root {
    --bg: #050505;
    --card-bg: #121212;
    --primary: #7c3aed; /* Violet vibrant */
    --accent: #3b82f6;  /* Bleu électrique */
    --text-main: #ffffff;
    --text-dim: #a3a3a3;
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background-color: var(--bg); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; position: fixed; width: 100%; top: 0; z-index: 1000;
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.4rem; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.nav-cta { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 50px; }

/* Hero */
header { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.profile-wrapper { position: relative; margin-bottom: 30px; }
.profile-container {
    width: 150px; height: 150px; border-radius: 40px; overflow: hidden;
    position: relative; z-index: 2; border: 2px solid var(--border);
}
.profile-pic { width: 100%; height: 100%; object-fit: cover; }
.glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary); filter: blur(40px); opacity: 0.3; z-index: 1;
}

h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -2px; }
h1 span { background: linear-gradient(to right, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 40px; }

/* Buttons */
.btn { padding: 14px 28px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-block; cursor: pointer; }
.btn.primary { background: var(--primary); color: white; border: none; }
.btn.outline { border: 1px solid var(--border); color: white; margin-left: 15px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2); }

/* Sections */
section { padding: 100px 10%; }
.title { font-size: 2.5rem; text-align: center; margin-bottom: 60px; font-weight: 800; }

.grid {
    display: grid;
    /* Cela permet aux cartes de s'étaler intelligemment */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les icônes et le texte */
    text-align: center;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(124, 58, 237, 0.05); /* Légère lueur violette au survol */
}
.card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-item {
    background: linear-gradient(145deg, #121212, #1a1a1a);
    padding: 40px; border-radius: 24px; border: 1px solid var(--border);
}
.project-tag { font-size: 0.7rem; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* Contact Box */
.contact-box { background: var(--card-bg); padding: 60px; border-radius: 32px; border: 1px solid var(--border); max-width: 800px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, textarea {
    width: 100%; padding: 15px; background: #1a1a1a; border: 1px solid var(--border);
    border-radius: 12px; color: white; outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--primary); }
.full { width: 100%; margin-top: 20px; border: none; }

/* Footer */
footer { text-align: center; padding: 50px; border-top: 1px solid var(--border); }
.social-links { font-size: 1.5rem; margin-bottom: 20px; }
.social-links a { color: var(--text-dim); margin: 0 15px; transition: 0.3s; }
.social-links a:hover { color: var(--primary); }
.copyright { font-size: 0.8rem; color: var(--text-dim); }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}