main {
    overflow: visible;
}
.article-hero {
    max-width: none;
    min-height: 150px;
    background-size: cover;
    /* margin-top: clamp(3rem, 3vw, 5rem); */
    max-width: 1540px;
    width: 100%;
    margin-right: 0;
    
    .main-title {
        box-sizing: border-box;
        max-width: 750px;
        width: 100%;
        background-color: var(--color-magenta);
        padding: 1.2em 1em;
        box-shadow: 10px 10px var(--color-dark-blue);
        line-height: 1.2;
        border-radius: 5px;
        font-size: 36px;
    }

    @media (width > 1552px) {
        border-radius: 1em 0 0 0;
    }
}

.breadcrumbs {
    display: flex;
    gap: 2ch;
    max-width: 1540px;
    align-self: end;
    width: 100%;
    padding: .8rem 1.5em;
    box-sizing: border-box;
    background-color: var(--color-dark-blue);
    font-size: clamp(.8rem, 1vw, 1rem);
    align-items: center;

    span {
        display: flex;
        gap: 10px;
    }

    .active {
        color: var(--color-magenta);
    }

    a {
        color: var(--color-white);
        &:hover {
            color: var(--color-magenta);
            text-decoration: underline;
        }
    }
}

.content_wrapper {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1240px;
    margin-block: clamp(3rem, 3vw, 5rem);

    
    a {
        color: var(--color-magenta);
        &:hover {
            text-decoration: underline;
        }
    }

    .sticky-aside {
        position: sticky;
        top: 2rem;
        align-self: flex-start;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .article-meta {
      display: flex;
      justify-content: space-between;
      margin-bottom: clamp(1.5rem, 2vw, 2rem);

      .category {
        display: flex;
        gap: 1ch;
        color: var(--color-magenta);
        align-items: center;
        small {
            color: var(--color-white);
        }
      }

      .date {
        font-style: italic;
        display: flex;
        gap: 1ch;
        align-items: baseline;
        margin-left: 1ch;

        .fa {
            color: var(--color-magenta);
        }
      }
    }

    @media (width < 948px) {
        flex-direction: column;
       .sticky-aside {
            min-width: 100%;
        }
    }
}

.widget-read-more {
    background: var(--color-magenta);
    padding: 1rem;
    box-shadow: 10px 10px var(--color-dark-blue);

    .title {
        color: var(--color-white);
        font-size: clamp(1.4rem, 1vw, 2.2rem);
        margin-top: 0;
    }

    li {
        position: relative;
        margin-left: 2rem;
        margin-bottom: 1rem;

        .fa {
            position: absolute;
            left: -2rem;
            top: .25rem;
        }

        a {
            color: var(--color-white);
            &:hover {
                text-decoration: underline;
            }
        }
    }
}

.article_section {
    padding: 1em 0;
    /* border: solid 1px red; */
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    text-align: justify;

    img {
        max-width: 40%;
        border-radius: 5px;
        box-shadow: 10px 10px var(--color-dark-blue);
        background-color: var(--color-white);
    }

    :where(h1, h2, h3) {
        margin-block: 1rem;
        font-size: clamp(1.125rem, 0.857rem + 0.714vw, 1.5rem);
        line-height: 1.2;
        text-align: left;
        color: var(--color-magenta);
    }

    h3 {
        color: var(--color-white);
        margin-top: 2em;
    }

    ul {
        padding-inline-start: 40px;
        list-style: disc;
    }

    blockquote {
        text-align: center;
        background: var(--color-dark-blue);
        width: 100%;
        padding: 2em;
        border-left: var(--color-magenta) 5px solid;
        border-radius: .5em;
        margin: 0;
        margin-block: 2em;
        box-sizing: border-box;
        position: relative;

        &::before,
        &::after {
            position: absolute; /* <-- la vraie correction */
            color: var(--color-magenta);
            font-size: 2em;
            line-height: 1; /* évite l'impact sur l'interligne */
        }

        &::before {
            content: "“";
            top: .5em;
            left: .5em;
        }

        &::after {
            content: "”";
            bottom: .5em;
            right: .5em;
        }
    }


    pre {
        background-color: black;
        color: greenyellow;
        padding: 2em;
        border-left: gray solid 5px;
        position: relative;
        border-radius: 3px;

        &::before {
            content: "> ";
            color: gray;
            margin-left: -1em;
        }
    }

    &:nth-child(even):has(img) {
        flex-direction: row-reverse;
    }

    @media (width < 948px) {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;

        :where(h1, h2) {
            text-align: center;
        }

        &:nth-child(even):has(img) {
            flex-direction:column;
            flex-direction: column;
            
            :where(h1, h2) {
                text-align: center;
            }
        }

        img {
            max-width: 80%;
        };

        @media(width < 425px) {
            img {
                max-width: 90%;
            }
        }

    }
}