/**** Importation des polices ****/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&display=swap');

/**** Variables css ****/

:root {
    --very-dark-blue: hsl(233, 47%, 7%);
    --dark-saturated-blue: hsl(244, 38%, 16%);
    --soft-violet: hsl(277, 64%, 61%);
    --white: hsl(0, 0%, 100%);
    --slightly-transparent-white: hsla(0, 0%, 100%, 0.75);
    --other-slightly-transparent-white: hsla(0, 0%, 100%, 0.6);
}

/**** Reset ****/

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**** body ****/

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--very-dark-blue);
}

/**** section container ****/

.container {
    width: 85%;
    height: 430px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark-saturated-blue);
    border-radius: 10px;
}

.image__container,
.article__container {
    width: 50%;
}

.image__container {
    width: 50%;
    height: 100%;
    background-image: url(img/image-header-desktop.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.image__container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--soft-violet);
    opacity: 0.6;
    mix-blend-mode: hard-light;
    /* La propriété mix-blend-mode définit la façon dont le contenu d'un élément doit se mélanger avec le contenu de l'élément parent et avec son arrière-plan. */
}

.image__container,
.image__container::before {
    border-radius: 0 10px 10px 0;
}

.article__container {
    padding: 0 100px 0 70px;
}

.article__container__title {
    margin-top: 20px;
    font-family: "Inter", sans-serif;
    color: var(--white);
    font-size: 30px;
}

.article__container__title span {
    color: var(--soft-violet);
}

.article__container__title,
.article__container__paragraph {
    line-height: 1.4;
}

.article__container__paragraph {
    font-size: 15px;
    color: var(--slightly-transparent-white);
    margin: 15px 0 40px 0;
    font-family: "Lexend Deca", sans-serif;
}

.article__container__div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.stat {
    width: 100px;
    margin-bottom: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column-reverse;
}

.stat__number {
    font-size: x-large;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: var(--white);
}

.stat__title {
    margin-top: 5px;
    text-transform: uppercase;
    font-family: "Lexend Deca";
    font-size: 15px;
    font-weight: 400;
    color: var(--other-slightly-transparent-white);
}

/**** Responsive design version tablette ****/

@media screen and (max-width: 992px) {
    .container {
        flex-direction: column;
        height: 90%;
    }

    .image__container,
    .article__container {
        width: 100%;
        height: 50%;
    }

    .image__container,
    .image__container::before {
        border-radius: 10px 10px 0 0;
    }

    .article__container {
        padding: 30px 15px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/**** Responsive design version mobile ****/

@media screen and (max-width: 572px) {
    .image__container {
        height: 30%;
    }

    .image__container {
        background-image: url(img/image-header-mobile.jpg);
    }

    .article__container {
        height: 70%;
    }

    .article__container__div {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .stat {
        margin-right: 0;
    }
}