#sergic-step-by-step {
    margin-top: 9rem;
    position: relative;
}

#sergic-step-by-step > h2 {
    position: absolute;
    bottom: 110%;
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #07374E;
    margin-bottom: 25px;
}

#sergic-numberlist-wrapper {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    justify-content: space-between;
    width: 945px;
    margin: auto;
    margin-top: 10px;
}

#sergic-numberlist-wrapper .sergic-numberlist {
    counter-increment: custom;
    position: relative;
    font-weight: 700;
    font-size: 18px;
    color: #07374E;
    margin-top: 16px;
    text-align: center;
    font-family: 'Raleway';
}

#sergic-numberlist-wrapper .sergic-numberlist:before {
    content: counter(custom) " ";
    position: absolute;
    left: 50%;
    bottom: 150%;
    height: 72px;
    width: 72px;
    background-color: rgb(166, 228, 255);
    color: #ffffff;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    font-weight: 700;
    transform: translate(-50%, 0);
    transition: all 0.2s ease;
}

#sergic-numberlist-wrapper .sergic-numberlist-image:before {
    content: "" !important;
}

#sergic-numberlist-wrapper .sergic-numberlist.active:before {
    background-color: rgb(0, 42, 123);
    transition: all 0.2s ease;
}

#sergic-numberlist-wrapper .sergic-numberlist img {
    position: absolute;
    left: 50%;
    bottom: 200%;
    height: 45px;
    width: 45px;
    cursor: pointer;
    transform: translate(-50%, 0);
    transition: all 0.2s ease;
    object-fit: contain;
}

#sergic-numberlist-wrapper .sergic-numberlist.active img {
    background-color: rgb(0, 42, 123);
    transition: all 0.2s ease;
}

#sergic-numberlist-wrapper .sergic-numberlist:after {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 55px 40px;
    border-color: transparent transparent #ffffff transparent;
    content: " ";
    position: absolute;
    left: 50%;
    top: 105%;
    transform: translate(-50%, 0);
    visibility: hidden;
}

#sergic-numberlist-wrapper .sergic-numberlist {
    flex: 1;
}

#sergic-numberlist-wrapper .sergic-numberlist.activetriangl:after {
    visibility: visible;
    transition: all 0.2s ease;
}

#sergic-numberlist-wrapper .sergic-numberlist:first-child {
    counter-reset: custom;
}

.sergic-result {
    display: none;
}

.sergic-result-wrapper {
    margin-top: 3.5rem;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
    border-radius: 20px;
    position: relative;
}

.sergic-result-image-wrapper {
    width: 45%;
    max-height: 460px;
}

.sergic-result-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.sergic-result-wrapper > .description {
    width: 65%;
    padding: 30px 15px 15px 50px;
    font-weight: 300;
    font-family: "Raleway", Sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 18px;
    color: #07374e;
    font-weight: inherit;
}

.sergic-result-wrapper > .description h3 {
    color: #07374e;
    font-family: "Raleway", Sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.page-template-page-insurance .sergic-result-wrapper > .description p:first-child {
    white-space: pre-wrap;
    font-weight: 700;
    color: #07374e;
}

.page-template-page-insurance .sergic-result-wrapper > .description p {
    font-size: 12px;
    line-height: 18px;
    color: #07374e;
}

.description a {
    font-family: "Helvetica", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    border: 1px solid #00b3ff;
    color: #00b3ff;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 30px;
    padding: 4px 30px;
    margin-top: 1rem;
    text-align: center;
}

.sergic-result.activecontent .sergic-result-wrapper {
    display: flex;
}

.sergic-result.activecontent {
    display: block;
}

.page-template-page-insurance .sergic-result-wrapper > .description p:first-of-type {
    font-weight: 500;
}

@media screen and (max-width: 767px) {
    .sergic-result.activecontent .sergic-result-wrapper {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .sergic-result-image-wrapper {
        width: 100%;
        height: 170px;
    }

    .sergic-result-wrapper > .description {
        width: 100%;
        padding: 15px;
    }

    .sergic-result-image-wrapper img {
        object-position: center;
    }

    #sergic-numberlist-wrapper .sergic-numberlist:before {
        width: 65px;
        height: 65px;
        align-items: center;
        bottom: 220%;
        font-size: 34px;
        padding-bottom: 5px;
    }

    #sergic-numberlist-wrapper .sergic-numberlist {
        font-size: 11px;
        font-weight: 500;
    }

    #sergic-numberlist-wrapper .sergic-numberlist img {
        bottom: 42%;
    }
}

@media screen and (max-width: 991px) {
    #sergic-numberlist-wrapper li:before {
        bottom: 120%;
    }

    #sergic-step-by-step > h2 {
        font-size: 28px;
        position: relative;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper {
        width: 100%;
        overflow-x: scroll;
        margin: auto;
        overflow-y: hidden; 
        padding-bottom: 2.5rem;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar {
        /* Scrollbars */
        width: .875em;
        height: 5px;
        background: transparent 0 0 repeat;
        display: block !important;
        -webkit-appearance: none;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-track-piece {
        /* Fond */
        background: #fff none;
        border-right-width: .5em;
        margin: .25em;
        padding: 5px;
        border-radius: 7px;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-track-piece:horizontal {
        /* Fond pour la barre du bas */
        border-right-width: .25em;
        border-bottom-width: .25em;
        background: #fff;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-thumb {
        /* Barre */
        background: rgb(166, 228, 255);
        border-right-width: .15em;
        -webkit-border-radius: 7px;
        -webkit-border-top-right-radius: 7px;
        -webkit-border-bottom-right-radius: 7px;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar {
        /* Scrollbars */
        width: .875em;
        height: 5px;
        background: transparent 0 0 repeat;
        display: block !important;
        -webkit-appearance: none;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-track-piece {
        /* Fond */
        background: #fff none;
        border-right-width: .5em;
        margin: .25em;
        padding: 5px;
        border-radius: 7px;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-track-piece:horizontal {
        /* Fond pour la barre du bas */
        border-right-width: .25em;
        border-bottom-width: .25em;
        background: #fff;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper::-webkit-scrollbar-thumb {
        /* Barre */
        background: rgb(166, 228, 255);
        border-right-width: .15em;
        -webkit-border-radius: 7px;
        -webkit-border-top-right-radius: 7px;
        -webkit-border-bottom-right-radius: 7px;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper .sergic-numberlist {
        display: block;
        width: 150px;
        margin: 0px 35px;
        padding-top: 25px;
    }

    #sergic-step-by-step #sergic-numberlist-wrapper .sergic-numberlist:before {
        bottom: 10%;
        display: block;
        padding-bottom: 0;
        left: 50%;
        position: relative;
        transform: translateX(-50%);
    }

    #sergic-step-by-step #sergic-numberlist-wrapper .sergic-numberlist:after {
        top: 100%;
        border-width: 0 15px 30px 15px;
    }
}

@media screen and (max-width: 540px) {
    .sergic-result-wrapper > .description {
        font-size: 12px;
    }
}

@media screen and (max-width: 540px) {
    #sergic-step-by-step {
        margin-top: 2rem;
        position: relative;
    }
}


@media screen and (min-width: 1090px) and (max-width: 1335px) {
    #sergic-step-by-step {
        margin-top: 3rem;
    }
    .page-template-page-rental-conditions #sergic-step-by-step {
        margin-top: 9rem !important;
    }
}