/* commitments */

.commitments {
    text-align: center;
}

.commitments.is-h3 {
    padding-bottom: 50px;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 65px;
}

.commitments-grid h3 {
    grid-column-start: 1;
    width: 100%;
    grid-column-end: 4;
    text-align: left;
    margin-bottom: 25px;
}

.commitments-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(14, 11, 11, .06);
    padding: 32px 26px;
    text-align: center;
}

.commitments-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.commitments-card-icon svg,
.commitments-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.commitments-card h4 {
    margin-bottom: 15px;
}

.commitments-card .commitments-card-desc {
    font-weight: 300;
    color: #000;
}
/*
.commitments-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.commitments-card-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #726d6a;
}*/

.commitments-cta-wrap {
    display: flex;
    justify-content: center;
}

.commitments-cta {
    /*display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    border: 1.5px solid #0e0b0b;
    background: transparent;
    color: #0e0b0b;
    font-size: 15px;
    font-weight: 600;*/
}

.commitments-cta:hover {
    background: #0e0b0b;
    color: #fff;
}

.commitments-cta svg {
    transition: transform .2s ease;
}

.commitments-cta:hover svg {
    transform: translateX(3px);
}

@media screen and (max-width: 767px) {
    .commitments-grid {
        grid-template-columns: 1fr;
    }

    .commitments:not(.is-dark):not(.is-boxed) {
        text-align: left;
    }

    .commitments:not(.is-dark):not(.is-boxed) .commitments-header {
        text-align: left;
    }

    .commitments:not(.is-dark):not(.is-boxed) .commitments-header .eyebrow-center {
        align-items: flex-start;
    }

    .commitments:not(.is-dark):not(.is-boxed) .commitments-grid {
        margin-top: 35px;
    }

    .commitments:not(.is-dark):not(.is-boxed) .commitments-card {
        border-radius: 15px;
        box-shadow: none;
        padding: 30px 30px 35px;
    }

    .commitments-card-icon {
        width: 45px;
        height: 45px;
    }

    .commitments-card h4 {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    .commitments-cta-wrap.mt-lg {
        margin-top: 44px;
    }
}

/* dark "avantages" variant */

.commitments.is-dark {
    padding-bottom: 203px;
    color: #fff;
    background-image: -moz-linear-gradient(-57deg, #171413 0%, #534d52 68%, #110f0e 100%);
    background-image: -webkit-linear-gradient(-57deg, #171413 0%, #534d52 68%, #110f0e 100%);
    background-image: -ms-linear-gradient(-57deg, #171413 0%, #534d52 68%, #110f0e 100%);
    background: linear-gradient(-57deg, #171413 0%, #534d52 68%, #110f0e 100%);
}

.commitments.is-dark .h5::after {
    background: #fff;
}

.commitments.is-dark .commitments-card {
    padding: 40px 25px;
    min-height: 500px;
    flex: 1;
    max-width: calc(25% - 16px);
}
.commitments.is-dark .commitments-card .commitments-card-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 35px;
}

.commitments.is-dark .commitments-card-title {
    font-size: 29px;
    letter-spacing: -0.20px;
    padding-bottom: 35px;
    margin-bottom: 35px;
    position: relative;
}

.commitments.is-dark .commitments-card-title:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    height: 2px;
    width: 43px;
}

.commitments.is-dark .commitments-card:nth-of-type(2n) .commitments-card-title:after {
    background-color: #1a8841;
}
.commitments.is-dark .commitments-card:nth-of-type(2n + 1) .commitments-card-title:after {
    background-color: #6c57a9;
}
.commitments.is-dark .commitments-card:first-of-type .commitments-card-title:after {
    background-color: #265092;
}
.commitments.is-dark .commitments-card:last-of-type .commitments-card-title:after {
    background-color: #d35535;
}

.commitments.is-dark .commitments-heading {
    color: #fff;
}

.commitments.is-dark .commitments-grid {
    /*grid-template-columns: repeat(4, 1fr);
    gap: 23px;*/
    display: flex;
    justify-content: center;
    gap: 24px;
}



.commitments.is-dark .commitments-card {
    color: #0e0b0b;
}

.commitments.is-dark .commitments-card-desc {
    color: #726d6a;
}

.commitments.is-dark .commitments-cta {
    background: #fff;
    border-color: #fff;
    color: #0e0b0b;
}

.commitments.is-dark .commitments-cta:hover {
    background: transparent;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .commitments.is-dark .commitments-grid {
        grid-template-columns: 1fr;
        justify-content: flex-start;
        margin-top: 45px;
    }

    .commitments.is-dark {
        margin: 0 13px;
        padding: 93px 15px;
        border-radius: 8px;
    }

    .commitments.is-dark .commitments-description {
        font-size: 14px;
        line-height: 22px;
    }

    .commitments.is-dark .commitments-card {
        flex: 0 0 100%;
        min-height: 0;
        padding: 35px 25px;
    }

    .commitments.is-dark .commitments-card .commitments-card-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .commitments.is-dark .commitments-card-title {
        font-size: 22px;
        line-height: 28px;
        min-height: 0;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .commitments.is-dark .mobile-carousel-nav button {
        border-color: #fff;
        color: #fff;
    }

    .commitments.is-dark .mobile-carousel-nav button:disabled {
        border-color: rgba(255, 255, 255, .3);
        color: rgba(255, 255, 255, .3);
    }
}

/* boxed "mission" variant: only the grid is darkened into a contained card */

.commitments.is-boxed .commitments-grid {
    background-image: -moz-linear-gradient(-57deg, rgb(23, 20, 19) 0%, rgb(46, 42, 44) 27%, rgb(69, 64, 69) 68%, rgb(17, 15, 14) 100%);
    background-image: -webkit-linear-gradient(-57deg, rgb(23, 20, 19) 0%, rgb(46, 42, 44) 27%, rgb(69, 64, 69) 68%, rgb(17, 15, 14) 100%);
    background-image: -ms-linear-gradient(-57deg, rgb(23, 20, 19) 0%, rgb(46, 42, 44) 27%, rgb(69, 64, 69) 68%, rgb(17, 15, 14) 100%);
    background: linear-gradient(-57deg, rgb(23, 20, 19) 0%, rgb(46, 42, 44) 27%, rgb(69, 64, 69) 68%, rgb(17, 15, 14) 100%);
    color: #fff;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 65px auto 0;
    border-radius: 27px;
    padding: 65px;
    gap: 40px;
}

.commitments.is-boxed .commitments-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.commitments.is-boxed .commitments-card-icon {
    width: 70px;
    height: 70px;
}

.commitments.is-boxed .commitments-card-desc {
    color: #FFF;
}

.commitments.is-boxed .commitments-card-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 20px;
}

.commitments.is-boxed .commitments-cta-wrap {
    display: none;
}

@media screen and (max-width: 767px) {
    .commitments.is-boxed .commitments-grid {
        grid-template-columns: 1fr;
        padding: 100px 13px 110px;
        gap: 55px;
        margin: 45px -7px 0;
        border-radius: 8px;
    }

    .commitments-grid h3 {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    .commitments.is-boxed .commitments-card-icon {
        width: auto;
        height: 55px;
        margin-bottom: 30px;
    }

    .commitments.is-boxed .commitments-card-icon img {
        width: auto;
    }

    .commitments.is-boxed .commitments-card-title {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .commitments.is-boxed .commitments-card-desc {
        line-height: 22px;
    }

    /* Mission suivie de la carte Vision (Qui sommes-nous) : les deux cartes se suivent de près. */
    .commitments.is-h3:has(+ .story.is-h3) {
        padding-bottom: 18px;
    }
}

/* "H3 regular" overline treatment (mission/vision labels) */

.commitments.is-h3 .h5 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.2px;
}