/* Importation des polices éco-responsables */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Work+Sans:wght@400;600&display=swap');

* {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    background: #f4f1ea url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    line-height: 1.7;
    font-size: 18px;
    padding: 0;
}

main {
    display: flex;
    gap: 2rem;
    flex-direction: row;
    justify-content: space-around;
    align-items: start;
    box-sizing: border-box;
}

article {
    flex: 3;
    max-width: 850px;
    background-color: #ffffffe8;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(105, 85, 60, 0.15);
}

article img {
    width: 100%;
}

h1,
h2,
h3,
h4 {
    margin-top: 2rem;
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px dashed #a4b494;
    padding-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    color: #c0aa83;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 1.5rem;
}

p {
    margin: 1rem 0;
}

article p:first-of-type {
    font-style: italic;
    color: #777;
    font-size: 0.95rem;
}

.articles-list {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    border-radius: 8px;
}

.articles-list ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.articles-list li {
    padding: 15px;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.articles-list li:hover {
    background-color: #f5f2f2;
    transform: translateY(-3px);
}

.articles-list a {
    border-radius: 8px;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0;
        margin: 2rem 1rem;
        flex-direction: column;
    }

    .articles-list {
        align-items: start;
    }

    .articles-list ul {
        padding: 0;
        justify-content: start;
        align-items: start;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}