.cartes {

    &:not(.c_white) {
        .container {

            h1,
            h2,
            h3,
            h4,
            p, .cartes__content {
                color: var(--white);
            }
        }
    }

    &.c_white {
        .container {

            h1,
            h2,
            h3,
            h4,
            p, .cartes__content {
                color: var(--dark) !important;
            }

            .cartes__item {
                border: 1px solid var(--dark) !important;
                outline: none !important;

                .cartes__content p {
                    color: var(--dark) !important;
                }
            }
        }
    }

    .container {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 45px;

        .cartes_list {
            justify-content: center;
            gap: 40px;
            display: flex;
            width: 100%;

            @media (min-width: 1200px) {
                justify-content: space-around;
                gap: 0px;
            }

            .cartes__item {
                border: 1px solid var(--white);
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                justify-content: start;
                align-items: center;
                text-align: center;
                outline: 8px solid rgb(7 116 186 / 33%);
                gap: 30px;
                padding: 20px;
                
                @media (min-width: 992px) {
                    padding: 20px 20px 0 20px;
                    min-height: 480px;
                    gap: 0px;
                }

                @media (min-width: 1200px) {
                    max-width: 320px;
                }

                .cartes__img {
                    width: 100%;
                    max-height: 240px;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: 8px;
                    }
                }

                .cartes__content {
                    margin: auto;

                    p {
                        color: var(--white);
                        font-size: 18px;
                        line-height: 26px;
                        padding: 0px;
                        
                        @media (min-width: 992px) {
                            padding: 0 30px;
                            font-size: 24px;
                            line-height: 32px;
                        }
                    }

                    li {
                        text-align: left;

                        &:before {
                            left: -30px !important;
                        }
                    }
                }
            }
        }

        .section__btn {
            background-color: var(--main-color3) !important;
            margin: -20px 0 0 0;

            &:hover {
                background-color: var(--dark) !important;
            }

            .bouton {
                border: 0px !important;
            }
        }

        .text_supl {
            text-align: center;

            @media (min-width: 992px) {
                max-width: 70%;
            }
        }
    }
}