/***** Services *****/

.service {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(1100px, 90%);
    margin: 0 auto 2rem;
    opacity: 0;
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;

    h3 {
        margin: 0;
        font-family: "HelveticaNeuBold", sans-serif;
        font-size: 1rem;
        color: var(--text);
    }

    .head {
        display: block;
    }

    &.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .service-cat {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 1rem;
        width: 100%;

        p {
            margin: 0.5rem 0 0;
            color: var(--muted);
            line-height: 1.7;
        }

        i {
            flex-shrink: 0;
            width: 3.1rem;
            height: 3.1rem;
            border-radius: 50%;
            border: 1px solid rgba(88, 101, 242, 0.4);
            color: var(--accent);
            text-align: center;
            line-height: 3.1rem;
            font-size: 1.15rem;
            background: rgba(88, 101, 242, 0.12);
            transition:
                transform 0.25s ease,
                background-color 0.25s ease,
                color 0.25s ease;

            &:hover {
                transform: translateY(-3px) scale(1.03);
                color: white;
                background-color: var(--accent);
            }
        }

        .service-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            flex: 0 1 calc((100% - 2rem) / 3);
            max-width: calc((100% - 2rem) / 3);
            min-width: 280px;
            padding: 1.1rem 1.2rem;
            border-radius: 20px;
            background: rgba(49, 51, 56, 0.78);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            transition:
                transform 0.25s ease,
                border-color 0.25s ease,
                background 0.25s ease;

            &:hover {
                transform: translateY(-4px);
                border-color: rgba(88, 101, 242, 0.4);
                background: rgba(49, 51, 56, 0.9);
            }
        }
    }
}

/***** Responsive Mobile *****/

@media screen and (max-width: 768px) {
    .service {
        flex-direction: column;
        align-items: stretch;
        width: 92%;

        .service-cat {
            .service-item {
                flex: 1 1 100%;
                max-width: 100%;
                min-width: 0;
            }
        }

        .head {
            width: 100%;
            margin-bottom: 0.5rem;
        }
    }
}

/***** Responsive Tablette *****/

@media screen and (max-width: 990px) and (min-width: 769px) {
    .service {
        width: 92%;
        flex-direction: column;
        align-items: stretch;

        .service-cat {
            .service-item {
                flex: 0 1 calc((100% - 1rem) / 2);
                max-width: calc((100% - 1rem) / 2);
                min-width: 0;
            }
        }

        .head {
            width: 100%;
            margin-bottom: 0.5rem;
        }
    }
}
