/* =====================================================
   DJEZZY SOLUTIONS - LES COMPOSANTS
===================================================== */


.djezzy-components * {
    box-sizing: border-box;
}

.djezzy-components__container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

/* HEADING */
.djezzy-components__heading {
    text-align: center;
    margin-bottom: 44px;
}

.djezzy-components__eyebrow {
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--djz-grey-muted);
}

.djezzy-components__title {
    margin: 0;
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
    color: var(--djz-grey-text);
}

/* LIST */
.djezzy-components__list {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1000px) {
    .djezzy-components__list {
        grid-template-columns: repeat(var(--djz-cols, 3), 1fr);
    }

    .djezzy-components__list::before {
        content: "";
        position: absolute;
        top: 56px;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(to right, transparent, #d5d5d5 12%, #d5d5d5 88%, transparent);
        z-index: 0;
    }
}

/* CARD */
.djezzy-component {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 30px 24px 28px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.djezzy-component:hover {
    transform: translateY(-4px);
    border-color: #e8b9bd;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .10);
}

/* ICON */
.djezzy-component__icon-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 18px;
}

.djezzy-component__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--djz-red);
    color: var(--djz-red);
    transition: background-color .25s ease, color .25s ease;
}

.djezzy-component__icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: filter .25s ease;
}

.djezzy-component:hover .djezzy-component__icon {
    background: var(--djz-red);
    color: #fff;
}

.djezzy-component:hover .djezzy-component__icon img {
    filter: brightness(0) invert(1);
}

.djezzy-component__index {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--djz-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BODY */
.djezzy-component__body {
    width: 100%;
    text-align: left;
}

.djezzy-component__tag {
    display: block;
    margin-bottom: 6px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--djz-red);
}

.djezzy-component__body h3 {
    margin: 0;
    font-family: var(--djz-font-body);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--djz-grey-text);
}

/* MOBILE */
@media (max-width: 700px) {
    .djezzy-components {
        padding: 50px 18px 58px;
    }

    .djezzy-components__list {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .djezzy-component {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
        padding: 20px;
    }

    .djezzy-component__icon-wrap {
        margin-bottom: 0;
    }

    .djezzy-component__body h3 {
        font-size: 14px;
    }
}