/* =============================================================================
    divers
   ========================================================================== */
.sousSolution-elm {
    a {
        color: var(--bleu-ebra);
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }

        &.linkBtn1 {
            position: relative;
            padding: 8px 12px;
            color: var(--white);
            border-radius: 8px;
            width: fit-content;
            /* background: linear-gradient(in oklch to right, var(--rouge-ebra), var(--bleu-ebra)); */
            background-color: var(--bleu-ebra);
            border: 1px solid var(--bleu-ebra);
            transition: all .2s 0s ease-out;
            cursor: pointer;
            display: inline-block;
            font-size: var(--f-s);
            margin: 18px 0;
            text-decoration: none;

            &:hover {
                background-color: transparent;
                color: var(--bleu-ebra);
                text-decoration: none;
            }
        }

        &.linkBtn2 {
            position: relative;
            padding: 8px 12px;
            color: var(--white);
            border-radius: 8px;
            width: fit-content;
            /* background: linear-gradient(in oklch to right, var(--rouge-ebra), var(--bleu-ebra)); */
            background-color: var(--rouge-ebra);
            border: 1px solid var(--rouge-ebra);
            transition: all .2s 0s ease-out;
            cursor: pointer;
            display: inline-block;
            font-size: var(--f-s);
            margin: 18px 0;
            text-decoration: none;

            &:hover {
                background-color: transparent;
                color: var(--rouge-ebra);
                text-decoration: none;

            }
        }

        &.linkBtn3 {
            margin-top: auto;
            background: none;
            color: var(--bleu-ebra);
            border: none;
            border-bottom: 1px solid var(--bleu-ebra);
            border-radius: 0;
            padding: 0;
            text-decoration: none;

            &:hover {
                border-color: transparent !important;
            }
        }

        &.linkBtn4 {
            margin-top: auto;
            background: none;
            color: var(--rouge-ebra);
            border: none;
            border-bottom: 1px solid var(--rouge-ebra);
            border-radius: 0;
            padding: 0;
            text-decoration: none;

            &:hover {
                border-color: transparent !important;
            }
        }
    }
}

/* =============================================================================
    GRDC : listContent / ContentListGroupComponent
   ========================================================================== */

article {
    position: relative;
}

article a.goToDetail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    cursor: pointer;
}

article:hover .ico_EBA2[data-icon="arrow-right"] {
    transform: rotate(-45deg);
    color: var(--rouge-ebra);
}


#listContent {
    margin: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;

}

.ContentListGroupComponent .corpslist ul.listCard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
    grid-gap: 32px;
    width: 100%;
    margin: 20px 0 0 0;

    .all-tags{
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}


.ContentListGroupComponent .corpslist ul.listCard .card {
    border-radius: 8px;
    border: 1px solid var(--color18);
    box-shadow: var(--shadow-2);
}

.ContentListGroupComponent .corpslist .listCard .card article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ContentListGroupComponent .corpslist .listCard .card article figure {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--color03);
}

.ContentListGroupComponent .corpslist .listCard .card article figure img {
    border-radius: 8px 8px 0 0;
}

.ContentListGroupComponent .corpslist .listCard .card article .corps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ContentListGroupComponent .corpslist .listCard .card article h2 {
    font-size: var(--f-l);
}

.ContentListGroupComponent .corpslist .listCard .card article .text {
    margin: 0 0 10px 0;
}

.ContentListGroupComponent .corpslist .listCard .card article .tag {
    color: var(--rouge-ebra);
    background-color: var(--background-alt);
    padding: 4px 12px;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: calc(infinity * 1px);
    width: fit-content;

}

.ContentListGroupComponent .corpslist .listCard .card article .text p {
    font-size: 1.5rem;
}

.ContentListGroupComponent {
    .listElement {
        img {
            width: 100%;
        }
    }
}

@media screen and (max-width: 1000px) {
    .ContentListGroupComponent .corpslist ul.listCard {
        padding: 0 16px;
    }
}

/* @media screen and (max-width: 800px) {
    .ContentListGroupComponent .corpslist ul.listCard {
        .card {
            article {
                flex-direction: row;
                min-height: 233px;
                figure {
                    flex: 1;
                    aspect-ratio: 1 / 1;
                    img {
                        object-fit: cover;
                        height: 100%;
                        border-radius: 0;
                    }
                }
                .corps {
                    flex: 3;
                }
            }
        }
    }
} */

/* list Solution */
.listSolution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
    gap: 18px;
    justify-content: center;

    article {
        position: relative;
        background-color: var(--color03);
        height: 100%;
        border-radius: 8px;
        box-shadow: var(--shadow-2);
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        &:hover {
            top: -10px;

            .btn {
                border-color: transparent;
            }
        }

        figure {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 16px 16px 0;
            width: 40px;
            aspect-ratio: 1 / 1;
        }

        img {
            min-width: 40px;
            height: 100%;
            object-fit: contain;

        }

        .content {
            padding: 0 16px 16px;
            z-index: 1;
            flex: 1;
            display: flex;
            flex-direction: column;

            h2 {
                font-size: var(--f-l);
                color: var(--bleu-ebra);
            }

            .goToDetail {
                min-height: 55px;
                display: flex;
                align-items: center;
            }

            a:hover {
                text-decoration: none;

                .btn {
                    border: transparent;
                }
            }

            a {

                margin-top: auto;

                .btn {
                    padding: 6px;
                    color: inherit;
                    border-color: inherit;

                    .ico_EBA2 {
                        font-size: 1rem;
                    }
                }
            }
        }

    }
}

@media screen and (max-width: 1000px) {
    .listSolution {
        padding: 0 16px;
    }
}

/* List Sous Solutions */
.listSousSolution {
    .anchor-id {
        display: block;
        margin-top: -15rem;
        height: 15rem;
        visibility: hidden;
        pointer-events: none;
    }
    .sousSolution-elm {
        display: flex;
        position: relative;
        padding-bottom: 60px;
        padding-top: 60px;
        border-top: var(--grey) 1px solid;

        article {
            position: initial;
        }

        .content {
            display: flex;
            flex-direction: column;

            .corps {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            .insetPdf {
                color: var(--rouge-ebra);
                width: fit-content;
                margin-top: auto;
            }
        }

        img {
            max-width: 320px;
            width: 100%;
            border-radius: 8px;
            object-fit: contain;
        }

        &:nth-child(odd) {
            article {
                img {
                    float: left;
                    margin-right: 48px;

                }
            }
        }

        &:nth-child(even) {
            article {
                img {
                    float: right;
                    margin-left: 48px;
                }
            }
        }



        .tag {
            text-transform: uppercase;
            color: var(--rouge-ebra);

        }

        .pdf-dl {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        ul {
            display: flex;
            flex-direction: column;
            gap: 8px;
            
            li {
                line-height: 1.5;
                position: relative;
                padding-left: 21px;
                &::before {
                    content: "line_start";
                    font-family: 'icoEBA2' !important;
                    speak: never;
                    font-style: normal;
                    font-weight: normal;
                    font-variant: normal;
                    text-transform: none;
                    line-height: 1.5;
                    font-size: var(--f-s);
                    vertical-align: middle;
                    display: inline-block;
                    color: var(--rouge-ebra);
                    position: absolute;
                    left: 0;
                }
            }
            &.splide__list {
                flex-direction: row;
                li {
                    display: block;
                    &::before {
                        display: none;
                    }
                    img {
                        max-width: 100%;
                        object-fit: cover;
                    }
            }
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    .listSousSolution {
        .sousSolution-elm {
            article {
                padding: 0 16px;
            }
        }
    }
}

@media screen and (min-width: 800px) {
    .listSousSolution {
        .sousSolution-elm {
            width: 100%;

            article {
                width: 100%;

            }

            &:nth-child(odd) {
                article {
                    img {
                        float: left;
                        margin-right: 48px;

                    }
                }
            }

            &:nth-child(even) {
                article {
                    img {
                        float: right;
                        margin-left: 48px;
                    }
                }
            }
        }
    }

}

@media screen and (max-width: 800px) {
    .listSousSolution {
        .sousSolution-elm {
            article {
                img {
                    float: none !important;
                    margin: 0 !important;
                }
            }
        }
    }
}

/* Filtre */
.filterAll {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;

    .filters-list {
        display: flex;
        align-items: flex-end;
        gap: 18px;

        .dropdown {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            flex: 2;

            li {
                .field-checkbox {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    background-color: var(--grey-light);
                    text-align: center;
                    border-radius: 8px;
                    padding: 8px 18px;
                    height: 100%;
                    position: relative;

                    input {
                        margin-top: 3px;
                        display: none;
                    }

                    &:hover {
                        outline: 1px solid var(--bleu-ebra);
                    }

                    &:has(input:checked) {
                        background-color: var(--color09);

                        &:hover {
                            outline: 1px solid var(--bleu-ebra);
                        }
                    }

                    label {
                        font-size: var(--f-xs);
                    }

                    label::after {
                        content: "";
                        cursor: pointer;
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                    }
                }
            }
        }

        .filter-btn {
            display: flex;
            align-items: baseline;
            height: fit-content;
            gap: 8px;
            font-size: var(--f-xs);

        }
    }
}

#listContent[data-keyword="nos-realisations"] {
    .List-real {
        display: grid;
        gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(321px, 1fr));
        margin: 20px 0 0;
        li {
            position: relative;
            min-height: 400px;
            display: flex;
            align-items: flex-end;
            border-radius: 8px;
            overflow: hidden;

            article {
                height: 100%;
            }

            a {
                height: 100%;
                display: flex;
                align-items: flex-end;

                &:hover {
                    text-decoration: none;

                    .link {
                        border-color: inherit;
                    }
                }
            }

            figure {
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;

                img {
                    height: 100%;
                    width: 100%;
                    object-fit: cover;
                }
            }

            .corps {
                position: relative;
                z-index: 1;
                background-color: var(--bleu-transparent);
                color: var(--white);
                padding: 16px;
                display: flex;
                flex-direction: column;
                gap: 10px;

                &::before {
                    content: "";
                    position: absolute;
                    top: -70px;
                    left: 0;
                    height: 70px;
                    width: 100%;
                    background: linear-gradient(0deg, var(--bleu-transparent) 0%, var(--bleu-transparent) 40%, rgba(255, 255, 255, 0) 100%);
                }

                .tag {
                    background-color: var(--rouge-ebra);
                    padding: 4px 12px;
                    color: inherit;
                    border-radius: 18px;
                    width: fit-content;
                    font-size: var(--f-xs);
                }

                p,
                h3 {
                    color: inherit;
                }

                .link {
                    display: flex;
                    gap: 8px;
                    width: fit-content;
                    border-bottom: 1px solid transparent;

                    p,
                    span {
                        font-size: var(--f-xs);
                    }
                }
            }
        }
    }

}

.sliderSolution {
    article {
        position: relative;
        background-color: var(--color03);
        height: 100%;
        border-radius: 8px;
        box-shadow: var(--shadow-2);
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        figure {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 16px 16px 0;
            width: 40px;
            aspect-ratio: 1 / 1;
        }

        img {
            min-width: 40px;
            height: 100%;
            object-fit: contain;

        }

        .content {
            padding: 0 16px 16px;
            z-index: 1;
            flex: 1;
            display: flex;
            flex-direction: column;

            h2 {
                font-size: var(--f-l);
                color: var(--bleu-ebra);
            }

            .goToDetail {
                min-height: 55px;
                display: flex;
                align-items: center;
            }

            a:hover {
                text-decoration: none;

                .btn {
                    border: transparent;
                }
            }

            a {

                margin-top: auto;

                .btn {
                    padding: 6px;
                    color: inherit;
                    border-color: inherit;

                    .ico_EBA2 {
                        font-size: 1rem;
                    }
                }
            }
        }

    }
}

.sliderArticle {
    &.alone {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 18px;
    }

    li {
        position: relative;
        min-height: 400px;
        display: flex;
        align-items: flex-end;
        border-radius: 8px;
        overflow: hidden;

        article {
            height: 100%;
            width: 100%;
        }

        a {
            height: 100%;
            display: flex;
            align-items: flex-end;

            &:hover {
                text-decoration: none;

                .link {
                    border-color: inherit;
                }
            }
        }

        figure {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;

            img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }

        .corps {
            position: relative;
            z-index: 1;
            background-color: var(--bleu-transparent);
            color: var(--white);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;

            &::before {
                content: "";
                position: absolute;
                top: -70px;
                left: 0;
                height: 70px;
                width: 100%;
                background: linear-gradient(0deg, var(--bleu-transparent) 0%, var(--bleu-transparent) 40%, rgba(255, 255, 255, 0) 100%);
            }

            .tag {
                background-color: var(--rouge-ebra);
                padding: 4px 12px;
                color: inherit;
                border-radius: 18px;
                width: fit-content;
                font-size: var(--f-xxs);
            }

            p,
            h3 {
                color: inherit;
            }

            .link {
                display: flex;
                gap: 8px;
                width: fit-content;
                border-bottom: 1px solid transparent;

                p,
                span {
                    font-size: var(--f-xs);
                }
            }
        }
    }
}

.sectionWhy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--grey-light);
    padding: 60px 0;
}

.sectionSSolutionBottom {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 0;
}

.Whynot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
    gap: 18px;
    justify-content: center;

    article {
        position: relative;
        background-color: var(--white);
        height: 100%;
        border-radius: 8px;
        box-shadow: var(--shadow-2);
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        figure {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 16px 16px 0;
            width: 40px;
            aspect-ratio: 1 / 1;
        }

        img {
            min-width: 40px;
            height: 100%;
            object-fit: contain;

        }

        .content {
            padding: 0 16px 16px;
            z-index: 1;
            flex: 1;
            display: flex;
            flex-direction: column;

            h2 {
                font-size: var(--f-l);
                color: var(--bleu-ebra);
            }

            .goToDetail {
                min-height: 55px;
                display: flex;
                align-items: center;
            }

            a:hover {
                text-decoration: none;

                .btn {
                    border: transparent;
                }
            }

            a {

                margin-top: auto;

                .btn {
                    padding: 6px;
                    color: inherit;
                    border-color: inherit;

                    .ico_EBA2 {
                        font-size: 1rem;
                    }
                }
            }
        }

    }
}

.Section-Middle {

    display: flex;
    justify-content: center;
}