/* 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;
}

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

article {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px solid #494f5e;
    background-color: #181d2f;
    transition: all 0.2s ease;
}

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 #72779a;
    padding-bottom: 1rem;
}

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

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 {
    background-image: url('https://www.transparenttextures.com/patterns/fabric-of-squares.png');
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    border-radius: 8px;
    text-align: center;
}

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

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

.articles-list li:hover {
    background-color: #162254;
    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;
    }
}