/* =========================================================
   POURQUOI FAIRE CONFIANCE À DJEZZY - WIDGET STYLES
========================================================= */

/* =========================================================
   SECTION
========================================================= */

.p2-trust {
    width: 100%;
    padding: 70px 20px 78px;
    box-sizing: border-box;

    background: linear-gradient(
        to bottom,
        #eaeaea 0%,
        #f5f5f5 40%,
        #ffffff 100%
    );
}


/* =========================================================
   CONTAINER
========================================================= */

.p2-trust .p2-container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   TITLE
========================================================= */

.p2-trust .p2-section-hd {
    width: 100%;
    margin: 0 auto 40px;
    padding: 0;

    text-align: center;
}

.p2-trust .p2-section-hd__title {
    margin: 0 0 12px;
    font-family: 'Gotham', 'Montserrat', 'Cairo', sans-serif;
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: #1a1a1a;
}

.p2-trust .p2-section-hd__title::after {
    display: none;
}


/* =========================================================
   MAIN PANEL
========================================================= */

.p2-trust__bar {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.10);

    padding: 30px 8px;

    box-sizing: border-box;
}


/* =========================================================
   ITEM
========================================================= */

.p2-trust__item {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding: 4px 22px;

    box-sizing: border-box;
}


/* =========================================================
   DIVIDERS
========================================================= */

.p2-trust__item + .p2-trust__item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 6px;
    bottom: 6px;

    width: 1px;

    background: #e6e6e6;
}


/* =========================================================
   ICON / STAT HOLDER
========================================================= */

.p2-trust__icon,
.p2-trust__stat {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 17px;
}


/* =========================================================
   ICON
========================================================= */

.p2-trust__icon {
    border-radius: 50%;

    background: #eef1f5;

    color: #17365D;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.p2-trust__icon svg,
.p2-trust__icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;

    display: block;
}

.p2-trust__item:hover .p2-trust__icon {
    background: #fdeaec;
    color: #E30613;
}


/* =========================================================
   STAT
========================================================= */

.p2-trust__stat {
    font-family: "Gotham", "Montserrat", "Cairo", sans-serif;

    font-size: 40px;
    font-weight: 800;

    line-height: 1;

    color: #17365D;
}

.p2-trust__stat span {
    color: #E30613;
}


/* =========================================================
   TEXT
========================================================= */

.p2-trust__label {
    width: 100%;
    max-width: 195px;

    min-height: 58px;

    margin: 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    font-family: "Cairo", "Montserrat", sans-serif;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.5;

    color: #222222;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .p2-trust {
        padding: 62px 18px 68px;
    }

    .p2-trust .p2-container {
        width: min(760px, calc(100% - 20px));
    }

    .p2-trust .p2-section-hd {
        margin-bottom: 34px;
    }

    .p2-trust .p2-section-hd__title {
        font-size: 30px;
    }

    .p2-trust__bar {
        grid-template-columns: repeat(2, 1fr);

        padding: 20px 8px;
    }

    .p2-trust__item {
        padding: 24px 22px;
    }

    .p2-trust__item:nth-child(odd)::before {
        display: none;
    }

    .p2-trust__item:nth-child(n + 3) {
        border-top: 1px solid #e6e6e6;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .p2-trust {
        padding: 52px 15px 58px;
    }

    .p2-trust .p2-container {
        width: 100%;
    }

    .p2-trust .p2-section-hd {
        margin-bottom: 28px;
    }

    .p2-trust .p2-section-hd__title {
        font-size: 25px;
        line-height: 1.3;
    }

    .p2-trust__bar {
        grid-template-columns: 1fr;

        padding: 10px 0;

        border-radius: 12px;
    }

    .p2-trust__item {
        padding: 28px 24px;
    }

    .p2-trust__item + .p2-trust__item {
        border-top: 1px solid #e6e6e6;
    }

    .p2-trust__item + .p2-trust__item::before {
        display: none;
    }

    .p2-trust__label {
        max-width: 280px;

        min-height: auto;

        font-size: 13px;
        line-height: 1.6;
    }
}
