/* =========================
   MOBILE VERSION
========================= */

.qui {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 2.5rem;
    margin-bottom:4rem;
}

.qui h2 {
    margin-left:0;
    margin-right: auto;
    margin-top: 3rem;
}

.qui figure {
    width: 100%;
    margin-bottom: 1.5rem;
}

.qui figure img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.qui figure figcaption {
    font-style: italic;
}

.qui p {
    font-size:1.6rem;
}

.qui article > div,
.qui article:nth-of-type(4),
.qui article:last-of-type {
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1rem 1.9rem;
    margin-bottom: 2rem;
}

.qui .schema {
    padding: 0.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.qui .background {
    margin: 2.5rem 0;
    padding: 1.4rem 2rem;
    background: rgb(241, 90, 34, 0.1);
    border-left: 3px solid #F15A22;
    border-radius: 0px 6px 6px 0px;
    line-height: 1.75;
    font-style: italic;
}

.qui article:nth-of-type(2),
.qui article:nth-of-type(3) {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    column-gap: 1.5rem;
}

.qui article:nth-of-type(3) {
    flex-direction: column-reverse;
}

.qui article:nth-of-type(3) img {
    margin-bottom: 1rem;
}

.qui .image:first-of-type {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.qui .image:first-of-type div {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(241, 90, 34, 0.1);
    border-radius: 6px;
    padding: 2rem 1.8rem;
}

.qui .image:first-of-type div:first-of-type {
    flex: 1;
}

.qui article:nth-of-type(3) .schema {
    padding: 1rem;
}

.qui .image:first-of-type div p:first-of-type {
    color: #F15A22;
    font-weight: 600;
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.qui .image:first-of-type div p:last-of-type {
    font-size: 1.4rem;
    color: rgb(0,0,0,0.6);
}

.qui article h4 {
    margin-bottom: 1.5rem;
}

.qui article > p {
    margin-bottom: 1rem;
}

.qui article dl {
    font-size:1.2rem;
}

.qui strong {
    font-weight:600;
}

.qui article:first-of-type dl {
    line-height: 1.7rem;
}


/* =========================
   TABLET VERSION
========================= */



/* =========================
   DESKTOP VERSION
========================= */

@media(min-width: 1024px) {
    .qui {
        width: 70%;
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(7, auto);
        gap: 1.5rem;
    }

    .qui h2 {
        grid-column: 1/3;
        grid-row: 1/2;
    }

    .qui article:first-of-type {
        grid-column: 1/3;
        grid-row: 2/3;
    }

    .qui article:nth-of-type(2) {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .qui article:nth-of-type(3) {
        grid-column: 1/3;
        grid-row: 4/5;
    }

    .qui article:nth-of-type(4) {
        grid-column: 1/3;
        grid-row: 5/6;
    }

    .qui figure:first-of-type {
        grid-column: 1/2;
        grid-row: 6/7;
    }

    .qui figure:last-of-type {
        grid-column: 2/3;
        grid-row: 6/7;
        align-self: start;
    }

    .qui article:last-of-type {
        grid-column: 1/3;
        grid-row: 7/8;
    }

    .qui article:nth-of-type(2) {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-content: stretch;
        column-gap: 1.5rem;
    }

    .qui article:nth-of-type(3) {
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        column-gap: 1.5rem;
    }

    .qui article:nth-of-type(3) .texte {
        align-self: stretch;
    }

    .qui article:nth-of-type(3) img {
        margin-bottom: 2rem;
        align-self: center;
    }

    .qui .image:first-of-type {
        display: flex;
        justify-content: center;
        gap: 1.4rem;
        flex-wrap: wrap;
    }

    .qui .texte {
        width: 70%;
    }

    .qui .schema {
        width: 46%;
    }

    .qui .image:first-of-type div {
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgb(241, 90, 34, 0.1);
        border-radius: 6px;
        padding: 2rem 1.8rem;
    }
}


/* =========================
   BIG DESKTOP VERSION
========================= */
@media (min-width: 1440px) {
    .qui {
        width: 65vw;
    }
}