/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CENTRAGE GLOBAL */
html, body {
    height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.7;
    padding: 2rem;
    text-align: center;
}

/* CONTENU PRINCIPAL */
main {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* TITRES */
h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #999;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* À PROPOS & PROJETS */
.about p,
.projects p {
    font-size: 1.1rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    background-color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #d6249f;
}

.project-card a {
    text-decoration: none;
    color: white;
}

/* CONTACT */
.contact a {
    color: #d6249f;
    text-decoration: none;
    font-weight: 500;
}

.socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    color: #aaa;
    transition: color 0.2s;
}

.socials a:hover {
    color: #d6249f;
}

/* ANIMATIONS */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.6s; }
section:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* RESPONSIVE */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .project-card {
        padding: 1rem;
    }

    body {
        padding: 1rem;
    }
}
