html {
    --navbar-height: 5rem;
    --main-transition: .4s;
}

header.blog-header {
    height: var(--navbar-height);
    background-color: var(--blog-menu-background-color);
}

header.blog-header .header-wrapper {
    height: 100%;
    padding: 1rem 0.5rem;
    max-width: var(--blog-max-width);
    margin: auto;
}


header.blog-header .header-wrapper:before,
header.blog-header .header-wrapper:after {
    display: none;
}

header.blog-header .nav a,
header.blog-header nav li > a,
.blog-header .menu__link {
    color: var(--blog-menu-items-color);
    transition: color .4s, background-color .4s;
}

.blog-header .header-wrapper .logo-blog {
    height: inherit;
}

.blog-header .logo-blog > .logo-blog__link {
    height: 100%;
}

.blog-header nav.social-menu a {
    border-radius: 99rem;
    border: 1px solid currentColor;
    height: 2.5em;
    width: 2.5em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.blog-header nav.social-menu a > i {
    vertical-align: middle;
}

.blog-header nav.social-menu a:hover {
    border-color: transparent;
    color: var(--blog-menu-background-color);
    background-color: var(--blog-menu-items-color);
}

section, .section {
    padding: 3rem 0;
    position: relative;
}

main.navbar-top {
    padding-top: var(--navbar-height);
}

main.blog-page .heading-section {
    padding: 0;
}

.top-block {
    height: auto;
    margin-top: 2rem;
}

.top-block__wrapper {
    text-align: center;
    display: block;
}

.top-block__wrapper h1.top-block__title {
    margin-bottom: 20px;
    color: #171717;
    text-shadow: none;
    margin-top: 0;
}

.top-block__wrapper h2 {
    color: var(--color-primary) !important;
    max-width: 992px;
    margin: auto;
    margin-bottom: 0;
    text-shadow: none;
    font-weight: 500;
}

.top-block .top-block__img {
    text-align: center;
    padding: 5px 0;
    margin-top: 5px;
}

.top-block .top-block__img > img {
    max-height: var(--blog-heading-image-height);
    width: auto;
    max-width: 100%;
}

.blog-logo {
    display: flex;
    justify-content: center;
    padding: 50px 0 250px 0;
    margin-bottom: -200px;
    background-color: #ffffff;
}

.blog-logo__img {
    width: 100%;
    max-width: 600px;
}

/* STYLES "page-blog" */
section.blog-section {
    padding: 0 0 3rem 0;
    margin-top: 10rem;
    background-color: var(--blog-background-color);
}

.blog-section .blog-wrapper {
    width: 100%;
    position: relative;
    top: -6rem;
    margin-bottom: -6rem;
    max-width: var(--blog-max-width);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.blog-section .blog-wrapper:before, .blog-section .blog-wrapper:after {
    display: none;
}

.blog-section > .container:before {
    display: none;
}

.blog-wrapper .blog-card {
    padding: 1.5rem;
}

.blog-card > article, .blog-card > .article, article.blog-card {
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.blog-card > article:hover, .blog-card > .article:hover, article.blog-card:hover {
    /*box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);*/
}

.blog-card > article a:hover .blog-card__image > img,
.blog-card > .article a:hover .blog-card__image > img,
article.blog-card a:hover .blog-card__image > img {
    transform: scale(1.05);
}

.blog-card > article > a, .blog-card > .article > a {
    display: block;
}

.blog-card__image {
    width: 100%;
    height: 16rem;
    overflow: hidden;
}

.blog-card__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--main-transition);
}

.blog-card__image:hover {
    opacity: 0.7;
}

.blog-card__content {
    padding: 1.5rem;
    background: white;
    flex: 1;
}

.blog-card__content p {
    text-align: left;
}

.blog-card__title {
    font-size: 1.3rem;
    line-height: 1.3em;
    font-weight: 700;
}

.blog-card__title .blog-card__link:hover {
    color: var(--color-primary);
}

.blog-card__link {
    transition: 0.4s ease all;
}

.blog-card__separator {
    border-color: #eee;
}

.blog-card__details {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.blog-card__date {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.blog-card__date .icon + * {
    margin-left: 0.75em;
}

.blog-card__category > a {
    font-size: .9rem;
    font-weight: normal;
    padding: 0.5em 1em;
    background-color: #CCCCCC;
    color: white;
    border-radius: 3px;
}

.blog-card__details img.icon {
    height: 1.1em;
    object-fit: contain;
    vertical-align: middle;
}

.blog-card__icon-clock {
    font-size: 14px;
}

.blog-card__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.blog-card__actions .btn {
    padding-left: 1.25em;
    padding-right: 1.25em;
}

/* STYLES "article-blog" */
main.article-page section.heading-section {
    background-color: white;
}

main.article-page section.article-content-section {
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--blog-background-color);
}

main.article-page .heading-block {
    padding: 0;
}

main.article-page .heading-block h1 {
    margin-bottom: 0.5em;
    margin-top: 0;
}

main.article-page .article-image-wrapper > img {
    object-fit: cover;
    width: 100%;
    max-height: calc(420px + 15vh);
}

main.article-page .article-image-wrapper + .article-content-wrapper {
    padding: 2rem .75rem .75rem;
}

main.article-page .article-content-wrapper {
    background-color: white;
}

main.article-page .article-content-wrapper > section {
    padding: 1.5rem 0;
}

main.article-page .article-content,
main.article-page .article-content-wrapper > section {
    max-width: var(--article-max-width);
    margin: auto;
}

.article__img {
    width: 100%;
}

.article__date {
    color: #999;
    font-weight: 700;
}

.article-content h1 {
    margin-bottom: 50px;
    font-weight: 700 !important;
    color: #222;
}

.article-content h2 {
    margin: 35px 0 20px 0;
    font-size: 35px;
    font-weight: 700 !important;
    color: #222;
}

.article-content h3 {
    margin: 20px 0 10px 0;
    font-size: 30px;
    font-weight: 600 !important;
    color: #222;
}

.article-content p {
    font-size: 17px !important;
    line-height: 25.5px !important;
    text-align: left !important;
}

.article-content p + ul {
    margin-top: 1.25em;
}

.article-content ul li {
    margin: 10px 0;
}

.article-content ul + p {
    margin-top: 1.25em;
}

.article-content a {
    font-weight: 600 !important;
    color: var(--color-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    padding: 15px 0;
}

.kk-star-ratings {
    position: relative;
    display: block !important;
    float: none !important;
    padding: 1.5rem 0;
}

.kk-star-ratings::before {
    content: var(--star-rating-label);
    position: absolute;
    left: 0;
    top: -0.25em;
    display: block;
    font-weight: bold;
    font-size: 1.15rem;
}

.related-articles-section .section-title,
main.article-page ul.category-list > li {
    margin: 0 0 1.5em 0;
    display: inline-block;
    float: left;
    font-size: 1.15rem;
    font-weight: bold;
    position: relative;
}

.related-articles-section .section-title:before, main.article-page ul.category-list > li:before {
    content: "";
    display: block;
    width: 100%;
    min-width: 30px;
    border-top: 1px solid #ddd;
    border-top: 1px solid rgba(0, 0, 0, .2);
    margin-bottom: 1em;
}

.related-articles {
    display: flex;
    flex-wrap: wrap;
}

.related-articles article {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 20rem;
}

.related-articles article .article-content {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.related-articles article:hover .article-title {
    color: var(--color-primary);
}

.related-articles article:hover .article-image > img {
    transform: scale(1.05);
}

.related-articles .article-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.related-articles .article-image {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.related-articles .article-image > img {
    object-fit: cover;
    width: 100%;
    transition: var(--main-transition);
}

.related-articles .blog-card__image {
    min-height: 180px;
}

.related-articles .article-content {
}

.related-articles .article-title {
    font-size: 0.95rem;
    line-height: 1.35em;
    font-weight: bold;
    transition: color .4s;
}


main.article-page ul.category-list {
    list-style: none;
    margin: auto;
    max-width: var(--article-max-width);
    padding: 0;
}

main.article-page li.categories > ul {
    margin-top: 1.5em;
}

main.article-page ul.category-list ul {
    font-size: 1rem;
    font-weight: normal;
    padding-left: 0;
}

main.article-page ul.category-list li.cat-item {
    padding: 0.5em 0 0.5em 2em;
    position: relative;
    list-style: none;
    transition: color .4s;
}

main.article-page ul.category-list li.cat-item:before {
    content: '';
    background-image: var(--categ-list-item-background);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1em;
    width: 1em;
    display: block;
}

main.article-page ul.category-list li.cat-item:hover {
    color: var(--color-primary);
}

.related-articles .blog-card__title {
    font-size: 1rem;
    line-height: 1.5em;
}

.related-articles .blog-card__details {
    font-size: .95rem;
}

.sidebar {
    background-color: #ffffff;
    margin-bottom: 20px;
}

.sidebar__w {
    padding: 15px;
}

.sidebar__text {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px !important;
    line-height: 18px !important;
    text-align: left;
}

.sidebar__text--bg {
    color: #fff;
}

.sidebar__title {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-link {
    z-index: 9;
    display: inline-block;
    position: fixed;
    top: 50%;
    margin-top: -80px;
    width: 40px;
    height: 160px;
    background-color: #282828;
    display: flex;
    transition: 0.3s ease width;
    transition: 0.3s ease all;
}

.post-link--prev {
    left: 0;
}

.post-link--next {
    right: 0;
}

.post-link:hover {
    width: 60px;
}

.post-link__icon {
    margin: auto;
    position: relative;
    top: -3px;
    color: #fff;
    font-size: 30px;
}

.column {
    float: left;
}

.size-1of1 {
    width: 100%;
}

.size-1of2 {
    width: 50%;
}

.size-1of3 {
    width: 33.333%;
}

.blog-pagination-section {
    margin-top: 2.5rem;
}

.blog-pagination-section > .row {
    display: flex;
    justify-content: center;
}

ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

ul.pagination > li {
    display: block;
}

ul.pagination > li:not(:last-child) {
    margin-right: 1rem;
}

ul.pagination > li > a {
    border-color: #ddd;
    color: #888;
}

ul.pagination > li > a > span {
    color: inherit;
}

ul.pagination > li > a.pagination-link-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Main mobile media */
@media (min-width: 992px) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) white;
    }

    html::-webkit-scrollbar {
        background: transparent;
        -webkit-appearance: none;
        width: var(--scrollbar-thickness);
        transition: all var(--main-transition);
    }

    html::-webkit-scrollbar-track {
        z-index: -1;
        background: white;
    }

    html::-webkit-scrollbar-track-piece {
    }

    html::-webkit-scrollbar-thumb {
        min-height: 2rem;
        background: var(--color-primary);
        background-clip: padding-box;
        border-radius: 99rem;
        border: var(--scrollbar-gap) solid transparent;
        cursor: pointer;

        transition: all var(--main-transition);
    }

    html::-webkit-scrollbar-thumb:hover {
        border-color: var(--color-primary)
    }

    div[data-columns]::before {
        content: "3 .column.size-1of3";
    }

    .article-content {
        max-width: var(--article-max-width);
    }
}

@media (max-width: 1070px) {
    .post-link {
        top: initial;
        bottom: -1px;
        width: 50%;
        height: 60px;
    }

    .post-link:hover {
        width: 50%;
    }
}

@media (min-width: 500px) and (max-width: 991px) {
    div[data-columns]::before {
        content: "2 .column.size-1of2";
    }

    .article-content {
        padding: 45px;
    }

    .sticky-sidebar__row {
        display: flex;
    }

    .sidebar {
        flex: 1;
        margin-top: 20px;
    }

    .sidebar--partager {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .sticky-sidebar__row .sidebar:nth-child(1) {
        margin-right: 10px;
    }

    .sticky-sidebar__row .sidebar:nth-child(2) {
        margin-left: 10px;
    }

    .sidebar__title--partager {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .blog-section .blog-card .blog-card__title {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }
}

@media (max-width: 500px) {
    div[data-columns]::before {
        content: "1 .column.size-1of1";
    }

    .article-content-section {
        padding: 30px 0;
    }

    .article-content {
        padding: 25px;
    }

    .sidebar:nth-child(1) {
        margin-top: 15px;
    }

    .blog-card {
        padding: 15px 5px;
    }
}
