/* ============================================================
STATUT24 — SERVICES.CSS
Catalogue de tous les services
============================================================ */


/* ============================================================
1. PAGE
============================================================ */

.sm-services-page {
    width: 100%;
    background: #ffffff;
    color: #1f2937;
}


/* ============================================================
2. HERO
============================================================ */

.sm-services-hero {
    box-sizing: border-box;

    width: 100%;

    padding: 28px 20px 24px;

    background: linear-gradient(
        180deg,
        #f7f9fc 0%,
        #ffffff 100%
    );

    border-bottom: 1px solid #eef2f6;

    text-align: center;
}

.sm-services-kicker,
.sm-services-eyebrow {
    display: inline-block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sm-services-hero h1 {
    margin: 10px 0 12px;
    color: #172033;

    font-size: clamp(
        34px,
        5vw,
        46px
    );

    line-height: 1.15;
    font-weight: 750;
}

.sm-services-hero > p {
    max-width: 690px;
    margin: 0 auto;

    color: #64748b;
    font-size: 16px;
    line-height: 1.65;
}


/* ============================================================
3. SEARCH
============================================================ */

.sm-services-search {
    position: relative;

    width: 100%;
    max-width: 650px;

    margin: 26px auto 0;
    text-align: left;
}

.sm-services-search-field {
    display: flex;
    align-items: center;

    min-height: 58px;
    padding: 0 14px;

    background: #ffffff;

    border: 1px solid #d8e0e9;
    border-radius: 14px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, .08);
}

.sm-services-search-icon {
    flex: 0 0 auto;

    margin-right: 10px;

    color: #7b8a9d;
    font-size: 25px;
}

.sm-services-search input {
    flex: 1;

    width: 100%;
    padding: 16px 0;

    background: transparent !important;
    color: #1f2937;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    font-size: 16px;
}

.sm-services-search input::placeholder {
    color: #98a5b5;
}

.sm-services-search-clear {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 30px;
    height: 30px;
    padding: 0;

    background: #f1f5f9 !important;
    color: #7b8796 !important;

    border: 0 !important;
    border-radius: 50%;

    box-shadow: none !important;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

.sm-services-search-clear:hover {
    background: #e8edf3 !important;
    color: #475569 !important;
}

.sm-services-search-clear[hidden] {
    display: none !important;
}


/* ============================================================
4. SEARCH RESULTS
============================================================ */

.sm-services-search-results {
    position: absolute;

    z-index: 1000;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dce3eb;
    border-radius: 12px;

    box-shadow:
        0 16px 35px
        rgba(15, 23, 42, .12);
}

.sm-services-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 13px 16px;

    color: #334155;

    border-bottom: 1px solid #eef2f6;

    text-decoration: none;
}

.sm-services-search-result:last-child {
    border-bottom: 0;
}

.sm-services-search-result:hover {
    background: #f8fafc;
}

.sm-services-search-result strong {
    color: #1f2937;
    font-size: 15px;
}

.sm-services-search-result span {
    color: #94a3b8;
    font-size: 12px;
}

.sm-services-search-empty {
    padding: 17px;

    color: #64748b;
    font-size: 14px;
}

.sm-services-search-help {
    margin-top: 10px !important;

    color: #94a3b8 !important;
    font-size: 12px !important;
}


/* ============================================================
5. CATALOGUE
============================================================ */

.sm-services-catalogue {
    box-sizing: border-box;

    width: calc(100% - 40px);
    max-width: 1120px;

    margin: 0 auto;

    padding: 22px 0 30px;
}

.sm-services-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.sm-services-heading h2 {
    margin: 6px 0 0;

    color: #172033;

    font-size: 26px;
    line-height: 1.25;
}

.sm-services-count {
    padding: 6px 10px;

    background: #f5f7fa;
    color: #718096;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
6. GRID
============================================================ */

.sm-services-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


/* ============================================================
7. SERVICE CARD
============================================================ */

.sm-services-card {
    position: relative;
    min-width: 0;
}


/* ============================================================
LETTRE / LOGO
============================================================ */

.sm-services-letter,
.sm-services-logo {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 18px;

    transform: translateY(-50%);
}


/* Lettre de secours */

.sm-services-letter {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    background: #f1f5f9;
    color: #64748b;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 750;
}


/* Logo */

.sm-services-logo {
    width: 44px;
    height: 44px;

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

    overflow: hidden;

    background: #fff;

    border-radius: 9px;
}

.sm-services-logo-img {
    display: block;

    width: 42px !important;
    height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;

    object-fit: contain;
}


/* ============================================================
CARTE
============================================================ */

.sm-services-card-link {
    box-sizing: border-box;

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

    gap: 18px;

    min-height: 86px;

    padding:
        15px 18px
        15px 78px;

    background: #fff;
    color: inherit;

    border: 1px solid #e1e7ee;
    border-radius: 14px;

    box-shadow:
        0 3px 12px
        rgba(15, 23, 42, .03);

    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.sm-services-card-link:hover {
    transform: translateY(-2px);

    border-color: #cbd6e2;

    box-shadow:
        0 9px 22px
        rgba(15, 23, 42, .07);
}


/* ============================================================
TEXTE
============================================================ */

.sm-services-card-main {
    min-width: 0;
}

.sm-services-card h3 {
    margin: 0 0 4px;

    overflow: hidden;

    color: #253247;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-services-domain {
    display: block;

    overflow: hidden;

    color: #94a3b8;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-services-arrow {
    flex: 0 0 auto;

    color: #64748b;

    font-size: 22px;
    line-height: 1;

    transition: transform .16s ease;
}

.sm-services-card-link:hover
.sm-services-arrow {
    transform: translateX(4px);
}


/* ============================================================
8. EMPTY
============================================================ */

.sm-services-empty {
    padding: 40px 20px;

    background: #f8fafc;
    color: #64748b;

    border: 1px solid #e5eaf0;
    border-radius: 14px;

    text-align: center;
}


/* ============================================================
9. PAGINATION
============================================================ */

.sm-services-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    flex-wrap: wrap;

    margin-top: 32px;
}

.sm-services-pagination .page-numbers {
    display: grid;
    place-items: center;

    min-width: 38px;
    min-height: 38px;

    padding: 0 10px;

    background: #ffffff;
    color: #52657d;

    border: 1px solid #dce3eb;
    border-radius: 9px;

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

    text-decoration: none;
}

.sm-services-pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sm-services-pagination .page-numbers.current {
    background: #eef3f8;
    color: #253247;
    border-color: #cbd6e2;
}


/* ============================================================
10. TABLET
============================================================ */

@media (max-width: 850px) {

    .sm-services-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ============================================================
11. MOBILE
============================================================ */

@media (max-width: 560px) {

    .sm-services-hero {
        padding: 34px 15px 32px;
    }

    .sm-services-hero h1 {
        font-size: 31px;
    }

    .sm-services-hero > p {
        font-size: 15px;
    }

    .sm-services-search-field {
        min-height: 54px;
    }

    .sm-services-catalogue {
        width: calc(100% - 30px);
        padding-top: 36px;
    }

    .sm-services-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .sm-services-grid {
        grid-template-columns: 1fr;
    }

    .sm-services-card-link {
        min-height: 80px;
    }

    .sm-services-pagination {
        margin-top: 26px;
    }

}
/* ============================================================
CATÉGORIES — TOUS LES SERVICES
============================================================ */

.sm-services-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;

    width: calc(100% - 40px);
    max-width: 1120px;

    margin: 16px auto 0;
}


/* Bouton */

.sm-services-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 16px;

    background: #ffffff;

    border: 1px solid #dbe3ec;
    border-radius: 10px;

    color: #52657d !important;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}


/* Hover */

.sm-services-category:hover {
    background: #f8fafc;

    border-color: #b9c8d8;

    color: #0877c9 !important;
}


/* Catégorie sélectionnée */

.sm-services-category.is-active {
    background: #eef6ff;

    border-color: #9bc9ee;

    color: #0877c9 !important;

    box-shadow:
        inset 0 0 0 1px
        rgba(8, 119, 201, .06);
}


/* ============================================================
CATÉGORIES — MOBILE
============================================================ */

@media (max-width: 600px) {

    .sm-services-categories {
        justify-content: flex-start;

        gap: 8px;

        width: calc(100% - 30px);

        margin-top: 18px;
    }


    .sm-services-category {
        min-height: 38px;

        padding: 8px 12px;

        font-size: 12px;
    }
}