/* =========================
   MOBILE VERSION
========================= */

.pourquoi {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 2.5rem;
    margin-bottom:4rem;
}

.pourquoi section {
    background-color: #f8f8f8;
    /* border: 1px solid #F15A22; */
    border: 1px solid #f0f0f0;
    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 2rem;
    margin-top: 2rem;
}

.pourquoi h2 {
    margin-left: 0;
    margin-right: auto;
    margin-top: 4rem;
}

.pourquoi section ul {
    list-style-type: disc;
    list-style-position: inside;
}

.pourquoi section div 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);
}

.pourquoi 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);
    margin: 1.5rem 0;
}


/* =========================
   TABLET VERSION
========================= */

@media(min-width: 768px) and (max-width: 1023px) {
    .pourquoi section h5,
    .pourquoi section h4 {
        margin: 1.3rem 0;
    }

    .pourquoi section div ul {
        column-count: 2;
        column-gap: 2rem;
    }

    .pourquoi img:last-of-type {
        width: 60%;
    }

    .pourquoi img:nth-of-type(2) {
        width: 70%;
    }
}


/* =========================
   DESKTOP VERSION
========================= */
@media(min-width: 1024px) {
    .pourquoi {
        width: 60%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(9, auto);
        align-items: start;
        gap: 2rem;
    }

    .pourquoi h2 {
        grid-column: 1/4;
        grid-row: 1/2;
    }

    .pourquoi .card-1 {
        grid-column: 1/4;
        grid-row: 2/3;
    }

    .pourquoi .card-2 {
        grid-column: 1/4;
        grid-row: 4/5;
    }

    .pourquoi > img:first-of-type {
        grid-column: 1/4;
        grid-row: 3/4;
        width:100%;
        justify-self: center;
    }

    .pourquoi > img:nth-of-type(2) {
        grid-row: 5/6;
        grid-column: 1/2;
        margin: 0;
    }

    .pourquoi .card-3 {
        grid-column: 2/4;
        grid-row: 5/6;
    }

    .pourquoi .card-4 {
        grid-column: 1/3;
        grid-row: 6/7;
    }

    .pourquoi > img:last-of-type {
        grid-column: 3/4;
        grid-row: 6/7;
        margin: 0;
        width: 100%;
    }

    .pourquoi .card-5 {
        grid-column: 1/4;
        grid-row: 7/8;
    }

    .pourquoi .card-6 {
        grid-column: 1/4;
        grid-row: 8/9;
    }

    .pourquoi section {
        padding: 1.5rem 2.5rem;
        margin-top: 0;
    }

    .pourquoi section div ul {
        column-count: 4;
        column-gap: 2rem;
    }

    .pourquoi section h3 {
        margin: 2rem 0;
    }

    .pourquoi section h4 {
        margin: 1.5rem 0;
    }

    .pourquoi section h5 {
        margin: 1.5rem 0;
    }

    .pourquoi section div {
        display:flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .pourquoi section:nth-of-type(2) div {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(2, auto);
        justify-content: space-between;
        align-items: start;
        gap: 1rem;
    }

    .pourquoi section:nth-of-type(2) div h5 {
        grid-row: 1/2;
        grid-column: 1/2;
    }

    .pourquoi section:nth-of-type(2) div ul {
        grid-row: 2/3;
        grid-column: 1/2;
    }

    .pourquoi section div img {
        width:50%;
    }
}