/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TYPOGRAPHIE GÉNÉRALE */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #e7e8e9;
    color: #212529;
    line-height: 1.6;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* HEADER */
header {
    background-color: #007bff;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
}

/* SECTIONS GÉNÉRIQUES */
section {
    max-width: 960px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1rem;
    color: #343a40;
}

ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* À PROPOS */
#about .contenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

#about img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 100px;
    border: 3px solid #007bff;
}

/* PROJETS */
.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project img {
    max-height: 200px;
    object-fit: cover;
}

.project button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.project button:hover {
    background-color: #0056b3;
}

/* CONTACT */
#contact a {
    color: #007bff;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .project {
        flex-direction: row;
        align-items: center;
    }

    #about .contenu {
        flex-direction: row;
    }
}
