/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --bg-color: #0b0e14;
    --card-bg: #161b22;
    --text-main: #f0f6fc;
    --text-dim: #8b949e;
    --accent: #2f81f7; /* Bleu GitHub moderne */
    --accent-glow: rgba(47, 129, 247, 0.4);
    --border: #30363d;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

/* --- SECTION PROFIL (HERO) --- */
.profile-section {
    display: flex;
    padding: 100px 10%;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    gap: 50px;
}

.profile-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff 50%, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-text p {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 1rem;
}

.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 24% 76% 70% 30% / 30% 30% 70% 70%; /* Forme organique moderne */
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: var(--transition);
}

.profile-image img:hover {
    border-radius: 50%;
    transform: scale(1.05);
}

/* --- SECTION PROJETS --- */
.projects-section {
    padding: 80px 10%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0d1117 100%);
}

.projects-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

.projects-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto;
    border-radius: 2px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-transform: capitalize;
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.language-tag {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-main);
    background: #238636; /* Vert GitHub pour le côté "active" */
    padding: 2px 10px;
    border-radius: 20px;
}

.repo-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.repo-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 10%;
    text-align: center;
    border-top: 1px solid var(--border);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 30px;
}

.contact-links a {
    color: var(--text-dim);
    font-size: 2rem;
    transition: var(--transition);
}

.contact-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }
    .profile-text h1 { font-size: 2.5rem; }
    nav ul { display: none; } /* On pourrait ajouter un menu burger ici */
}