/* ============================================================
STATUT24 — HOME.CSS
Page d'accueil — version compacte
============================================================ */


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

.sm-home {
    width: 100%;
    color: #1f2937;
    background: #fff;
}


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

.sm-home-hero {
    padding: 24px 20px 18px;

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

    border-bottom: 1px solid #eef2f6;
}

.sm-home-hero-inner {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}

.sm-home-kicker,
.sm-home-eyebrow {
    display: inline-block;

    color: #64748b;

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

    letter-spacing: .08em;
    text-transform: uppercase;
}

.sm-home-hero h1 {
    margin: 9px 0 10px;

    color: #172033;

    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 750;
}

.sm-home-lead {
    max-width: 680px;

    margin: 0 auto;

    color: #5c6b7d;

    font-size: 17px;
    line-height: 1.5;
}

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

.sm-home-search {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 20px auto 0;
    text-align: left;
}

.sm-home-search-field {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 14px;

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

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

.sm-home-search-icon {
    flex: 0 0 auto;
    margin-right: 10px;

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

.sm-home-search input {
    flex: 1;
    width: 100%;
    padding: 16px 0;

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

    color: #1f2937;
    font-size: 16px;
}

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


/* Bouton X */

.sm-home-search-clear {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

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

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

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

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

    cursor: pointer;
    box-shadow: none !important;
}

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

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


/* Résultats */

.sm-home-search-results {
    position: absolute;
    z-index: 1000;

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

    overflow: hidden;

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

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

.sm-home-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 13px 16px;

    border-bottom: 1px solid #eef2f6;

    color: #334155;
    text-decoration: none;
}

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

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

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

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

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

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

.sm-home-search-help {
    margin: 8px 0 0;

    color: #94a3b8;
    font-size: 12px;
}
/* ============================================================
4. SECTIONS
============================================================ */

.sm-home-section {
    width: calc(100% - 40px);
    max-width: 1120px;

    margin-left: auto;
    margin-right: auto;

    padding: 24px 0 8px;
}

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

    gap: 30px;
    margin-bottom: 18px;
}

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

    color: #172033;

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

.sm-home-section-heading p {
    max-width: 440px;
    margin: 0;

    color: #7a8797;

    font-size: 14px;
    line-height: 1.5;

    text-align: right;
}

/* ============================================================
5. SERVICE CARDS
============================================================ */

.sm-home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sm-home-service-card {
    display: flex;
    flex-direction: column;

    min-height: 132px;
    padding: 16px 18px;

    background: #fff;
    border: 1px solid #e1e7ee;
    border-radius: 15px;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, .035);

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

.sm-home-service-card:hover {
    transform: translateY(-2px);
    border-color: #cbd6e2;

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

/* ============================================================
5A. SERVICE CARDS — LOGOS
============================================================ */

.sm-home-service-main {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-top: 12px;

    min-width: 0;
}


/* Контейнер логотипа */

.sm-home-service-logo {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

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

    overflow: hidden;

    background: #fff;

    border-radius: 11px;
}


/* Само изображение */

.sm-home-service-logo-img {
    display: block;

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

    object-fit: contain;
}


/* Название + домен */

.sm-home-service-copy {
    flex: 1;
    min-width: 0;
}


.sm-home-service-card
.sm-home-service-copy h3 {
    margin: 0 0 5px;

    font-size: 19px;
    line-height: 1.2;
}


.sm-home-service-copy .sm-home-domain {
    display: block;

    overflow: hidden;

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


/* Нижняя ссылка */

.sm-home-service-bottom {
    display: flex;
    align-items: center;

    margin-top: auto;
    padding-top: 13px;
}


/* ============================================================
SERVICE LOGOS — MOBILE
============================================================ */

@media (max-width: 560px) {

    .sm-home-service-main {
        gap: 10px;
        margin-top: 10px;
    }


    .sm-home-service-logo {
        flex-basis: 46px;

        width: 46px;
        height: 46px;

        border-radius: 9px;
    }


    .sm-home-service-logo-img {
        width: 43px !important;
        height: 43px !important;
        max-width: 43px !important;
        max-height: 43px !important;
    }


    .sm-home-service-card
    .sm-home-service-copy h3 {
        margin: 0 0 3px;

        font-size: 16px;
    }
}

/* Statut */

.sm-home-service-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-home-status-dot,
.sm-home-report-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;

    border-radius: 50%;
    background: #cbd5e1;
}

.sm-home-status-dot.is-up,
.sm-home-report-dot.is-ok {
    background: #4fbd7a;
}

.sm-home-status-dot.is-limited,
.sm-home-report-dot.is-slow,
.sm-home-report-dot.is-login {
    background: #eeb64a;
}

.sm-home-status-dot.is-down,
.sm-home-report-dot.is-down {
    background: #e96565;
}

.sm-home-status-label {
    color: #8491a3;

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

.sm-home-status-label.is-up {
    color: #348c59;
}

.sm-home-status-label.is-limited {
    color: #a66a13;
}

.sm-home-status-label.is-down {
    color: #b84242;
}


/* Nom et domaine */

.sm-home-service-card h3 {
    margin: 14px 0 4px;

    color: #1f2937;

    font-size: 20px;
    line-height: 1.2;
}

.sm-home-domain {
    color: #94a3b8;
    font-size: 12px;
}


/* Lien Voir le statut */

.sm-home-service-bottom {
    display: flex;
    align-items: center;

    margin-top: auto;
    padding-top: 10px;
}

.sm-home-service-bottom span:last-child {
    margin-left: 14px;

    font-size: 24px;
    line-height: 1;
    font-weight: 400;

    transition: transform .16s ease;
}

.sm-home-service-card:hover
.sm-home-service-bottom span:last-child {
    transform: translateX(4px);
}


/* Voir tous les services */

.sm-home-all-services {
    margin-top: 18px;
    text-align: center;
}

.sm-home-all-services a {
    color: #41556f;

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

    text-decoration: none;
}

.sm-home-all-services a:hover {
    color: #172033;
    text-decoration: underline;
}

/* ============================================================
TITRE DES CATÉGORIES
============================================================ */

.sm-home-categories-heading {
    margin-top: 34px;
}

.sm-home-categories-heading h2 {
    margin: 0;

    color: #0f1f36;

    font-family: inherit;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
}

.sm-home-categories-heading p {
    margin: 7px 0 0;

    color: #718096;

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

/* ============================================================
5B. CATÉGORIES
============================================================ */

.sm-home-categories {
    display: grid;

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

    gap: 10px;

    margin-top: 14px;
    padding-top: 0;

    border-top: 0;
}


.sm-home-category-card {
    min-width: 0;
    min-height: 108px;

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

    gap: 10px;

    padding: 14px 8px;

    background: #fff;

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

    color: #253247;
    text-decoration: none;

    text-align: center;

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

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


.sm-home-category-card:hover {
    transform: translateY(-2px);

    border-color: #bdd3ea;

    color: #0877c9;

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


/* Icône */

.sm-home-category-icon {
    width: 32px;
    height: 32px;

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

    color: #0d6efd;
}


.sm-home-category-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Texte */

.sm-home-category-card > span:last-child {
    color: inherit;

    font-size: 12px;
    line-height: 1.25;
    font-weight: 650;
}


/* ============================================================
CATÉGORIES — TABLET
============================================================ */

@media (max-width: 900px) {

    .sm-home-categories {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


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

@media (max-width: 560px) {

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

        gap: 8px;

        margin-top: 16px;
        padding-top: 16px;
    }


    .sm-home-category-card {
        min-height: 92px;

        padding: 12px 8px;

        border-radius: 12px;
    }


    .sm-home-category-icon {
        width: 28px;
        height: 28px;
    }


    .sm-home-category-card > span:last-child {
        font-size: 11.5px;
    }
}

/* ============================================================
6. ACTIVITÉ
============================================================ */

.sm-home-activity {
    padding-top: 12px;
}

.sm-home-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
    align-items: stretch;
}

.sm-home-info-card {
    padding: 24px;

    background: #fff;

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

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

.sm-home-info-card h3 {
    margin: 0 0 16px;

    color: #253247;

    font-size: 18px;
    line-height: 1.3;
}

/* ============================================================
7. RANKING — SERVICES LES PLUS CONSULTÉS
============================================================ */

.sm-home-ranking,
.sm-home-reports {
    width: 100%;
    border-top: 1px solid #eef2f6;
}

.sm-home-ranking-row,
.sm-home-report-row {
    display: grid;
    align-items: center;

    width: 100%;
    min-height: 52px;

    border-bottom: 1px solid #eef2f6;

    text-decoration: none;
}


/* numéro | service | vues */

.sm-home-ranking-row {
    grid-template-columns:
        30px
        minmax(0, 1fr)
        100px;

    gap: 10px;
}

.sm-home-ranking-number {
    display: grid;
    place-items: center;

    justify-self: center;

    width: 23px;
    height: 23px;

    border-radius: 50%;

    background: #f1f5f9;
    color: #64748b;

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

.sm-home-ranking-row strong {
    justify-self: start;

    color: #334155;
    font-size: 14px;
}

.sm-home-ranking-views {
    justify-self: end;

    color: #94a3b8;
    font-size: 12px;

    text-align: right;
}
/* ============================================================
8. DERNIERS SIGNALEMENTS
============================================================ */

/* indicateur | service | statut */

.sm-home-report-row {
    grid-template-columns:
        30px
        minmax(0, 1fr)
        140px;

    gap: 10px;
}

.sm-home-report-dot {
    justify-self: center;
}

.sm-home-report-row strong {
    justify-self: start;

    color: #334155;
    font-size: 14px;
}

.sm-home-report-label {
    justify-self: end;

    color: #76869a;
    font-size: 12px;

    text-align: right;
}

.sm-home-report-row:hover,
.sm-home-ranking-row:hover {
    background: #fafbfd;
}

.sm-home-empty {
    margin: 0;
    padding: 18px 0 4px;

    color: #94a3b8;
    font-size: 14px;
}

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

@media (max-width: 850px) {

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

    .sm-home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .sm-home-section-heading p {
        text-align: left;
    }

    .sm-home-two-cols {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 560px) {

    .sm-home-hero {
        padding: 22px 15px 18px;
    }

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

    .sm-home-lead {
        font-size: 15px;
    }

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

    .sm-home-section {
        width: calc(100% - 30px);
        padding-top: 24px;
    }

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

        gap: 10px;
    }

    .sm-home-service-card {
        min-width: 0;
        min-height: 125px;

        padding: 14px 12px;

        border-radius: 13px;
    }

    .sm-home-service-top {
        gap: 6px;
    }

    .sm-home-status-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }

    .sm-home-status-label {
        font-size: 11px;
    }

    .sm-home-service-card h3 {
        margin: 11px 0 4px;
        font-size: 17px;
    }

    .sm-home-domain {
        overflow: hidden;

        font-size: 11px;

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

    .sm-home-service-bottom span:first-child {
        font-size: 13px;
    }

    .sm-home-service-bottom span:last-child {
        margin-left: 8px;
        font-size: 20px;
    }


    /* Classement */

    .sm-home-ranking-row {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;
    }


    /* Signalements */

    .sm-home-report-row {
        grid-template-columns:
            30px
            minmax(0, 1fr);
    }

    .sm-home-report-label {
        grid-column: 2;

        justify-self: start;

        margin-top: -7px;
        padding-bottom: 8px;

        text-align: left;
    }
}
/* ============================================================
5C. COMMENT ÇA MARCHE ?
============================================================ */

.sm-home-how {
    width: calc(100% - 40px);
    max-width: 1120px;

    margin: 18px auto 0;
}

.sm-home-how-heading {
    margin-bottom: 14px;
}

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

    color: #172033;

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

.sm-home-how-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.sm-home-how-step {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 16px 18px;

    background: #f8fafc;

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

.sm-home-how-number {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1.5px solid #0d6efd;
    border-radius: 50%;

    color: #0d6efd;

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

.sm-home-how-step h3 {
    margin: 1px 0 5px;

    color: #253247;

    font-size: 15px;
    line-height: 1.3;
}

.sm-home-how-step p {
    margin: 0;

    color: #64748b;

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


/* ============================================================
COMMENT ÇA MARCHE — MOBILE
============================================================ */

@media (max-width: 700px) {

    .sm-home-how {
        width: calc(100% - 30px);
    }

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