.cartes {
    .carte__item {
        &:not(.carte__img_fond) {
            .carte_wrapper {
                background-color: var(--white);
            }
        }
    }

    &[data-color="#000000"],
    &[data-color="#006aaf"] {
        .carte__item:not(.carte__img_fond) {
            .carte_wrapper {
                background-color: transparent;
                border: 1px solid rgba(255, 255, 255, 0.4);
            }
        }
    }

    .cartes__list {
        display: flex;
        margin-top: 50px;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;

        @media (min-width: 1400px) {
            justify-content: space-between;
        }

        .carte__item {
            @media (max-width: 767px) {
                padding: 0 10px;
                margin: auto -10px;
            }

            &.carte__img_fond {
                min-width: 240px;

                &:hover {
                    .carte_wrapper {
                        background-size: 110%;

                        .carte__content {
                            &:after {
                                width: 100%;
                            }
                        }
                    }
                }

                .carte_wrapper {
                    height: 440px;
                    display: flex;
                    padding: 20px;
                    align-items: end;
                    background-position: center;
                    background-size: 100%;
                    transition: var(--transition);
                    width: 100%;

                    .carte__content {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        align-items: start;
                        background: rgba(255, 255, 255, 0.2);
                        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                        backdrop-filter: blur(12px);
                        margin: 0;
                        padding: 15px 20px;
                        height: 200px;
                        transition: var(--transition);
                        width: 100%;

                        &:after {
                            content: '';
                            display: block;
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 0%;
                            height: 100%;
                            z-index: -1;
                            background: var(--dark);
                            transition: var(--transition);
                        }

                        .cartes__icon {
                            width: 36px;
                            height: 36px;
                            object-fit: contain;
                        }

                        p {
                            font-weight: var(--bold);
                            text-transform: uppercase;
                            margin: 0;
                            line-height: 28px;
                        }
                    }
                }
            }

            &:not(.carte__img_fond) {
                display: flex;
                flex-direction: column;
                min-height: 530px;

                @media (min-width: 768px) {
                    padding: 0px;
                    min-width: 295px;
                }

                .carte_wrapper {
                    padding: 10px;
                    height: 100%;
                    flex-grow: 1;

                    .carte__image {
                        overflow: hidden;
                        transition: var(--transition);

                        img {
                            width: 100%;
                            object-fit: cover;
                            transition: var(--transition);
                        }
                    }

                    .carte__content {
                        padding: 20px 25px 0 25px;

                        .h3_like {
                            text-transform: uppercase;

                            &+p {
                                line-height: 24px;
                                opacity: 0.66;
                            }
                        }
                    }
                }

                div.carte_wrapper {
                    .carte__arrow {
                        display: none;
                    }
                }

                a.carte_wrapper {
                    position: relative;
                    overflow: hidden;

                    &:hover {
                        &:after {
                            transform: translate(0);
                        }

                        .carte__image {
                            img {
                                transform: scale(1.1);
                            }
                        }
                    }

                    &:after {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        z-index: -1;
                        backdrop-filter: blur(12px);
                        background: rgba(255, 255, 255, 0.12);
                        transform: translateX(-100%);
                        transition: var(--transition);
                    }
                }
            }
        }
    }
}