/*-------------------------------------------------------------------------------*/
/*----------------------- LIST COLUMN AND STYLE FOR BLOCK -----------------------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');


#content-wrapper {
    padding-left: 0;
    padding-right: 0;
}

body#module-leoblog-blog #content-wrapper {
    width: 70% !important;
    flex: 0 0 70% !important;
    max-width: 70% !important;
}

#wrapper {
    padding-top: 18px;
}

.mss-row-flex {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.mss-row-flex .col-lg-4 {
    position: relative;
}

.mss-row-flex .blog-item {
    border-top: none;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    background-color: #fff;
    height: 100%;
    box-shadow: 1px 1px 5px 0px rgb(179 180 189);
}

.mss-row-flex .blog-item .blog-image {
    padding-top: 0;
}

.mss-line-blog {
    display: block;
    width: 100%;
    height: 1px;
    background: #e84242;
}

/*-----------------------------------------------------------*/
/*----------------------- TITLE BLOCK -----------------------*/
.mss-container-title {
    display: flex;
    justify-content: center;
    align-content: center;
    background: linear-gradient(to right, #ffffff03 0%, #ddb52b 50%, #ddb52b 50%, #ffffff00 100%);
    height: 2px;
    margin: 50px auto 90px auto;
}

.mss-container-title .blog-lastest-title {
    font-family: 'Good Times Rg', sans-serif;
    font-size: 25px;
    text-align: center;
    text-transform: uppercase;
    color: #003d60;
    font-weight: 400;
    line-height: 0.123;
    background: #fff;
    height: 10px;
    padding: 0 12px;
}

/*-------------------------------------------------------------------*/
/*----------------------- SEARCH BLOG SECTION -----------------------*/
.mss-search-blog {
    position: relative;
    margin-bottom: 50px;
}

.mss-search-blog .mss-container-search {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    background: transparent;
}

.mss-search-blog .mss-container-search .mss-input-search-blog {
    background: #eaeaea;
    border: 1px solid #dddd;
    width: 100%;
    font-size: 16px;
    padding: 8px 8px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.mss-search-blog .mss-container-search .mss-search-icon {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    padding-bottom: 3px;
    padding-right: 8px;
    cursor: pointer;
}

.mss-search-blog .mss-container-search .mss-search-icon .material-icons {
    color: #0b4565;
}

.mss-search-blog .mss-container-search .mss-search-icon:hover .material-icons {
    color: #4c4c4c !important;
}

/*-------------------------------------------------------------------*/
/*----------------------- ITEM BLOG SECTION -----------------------*/
.mss-container-date-share-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px
}

.mss-container-date-share-icons .share_button,
.mss-header-date-share-button .share_button {
    margin: 0;
    display: block;
    position: relative;
}

.mss-container-date-share-icons .share_button .mss-btn-share,
.mss-header-date-share-button .share_button .mss-btn-share {
    background: transparent;
    cursor: pointer;
    padding: 0;
    clear: both;
    display: block;
}

.mss-container-date-share-icons .share_button .mss-btn-share .material-icons {
    margin-right: 0;
    margin-top: 0 !important;
}

/*---------------------------------------------------------------------------------------*/
/*-------------------------------  SOCIAL NETWORK BUTTON  -------------------------------*/
.mss-container-date-share-icons .share_button ul.mss-share-button-content,
.mss-header-date-share-button .share_button ul.mss-share-button-content {
    display: block;
    clear: both;
    position: absolute;
    z-index: 10;
}

.mss-container-date-share-icons .share_button .btn.mss-btn-share {
    box-shadow: none;
}

.mss-container-date-share-icons .share_button .btn.mss-btn-share .fa.fa-share-alt::before {
    color: #ebe9e9;
    font-size: 22px;
}

.mss-container-date-share-icons .share_button .btn.mss-btn-share .fa.fa-share-alt:hover::before {
    color: #003d60;
}

.mss-container-date-share-icons .share_button:hover .btn.mss-btn-share .fa.fa-share-alt::before {
    color: #003d60;
}

.share_button {
    position: relative;
}

.mss-share-button-content {
    position: absolute;
    top: 25px;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    z-index: 200;
}

.share_button:hover .mss-share-button-content {
    height: 70px;
    min-width: 90px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.share_button:hover .mss-share-button-content > li > a:hover {
    color: #003d60;
}

div.mss-description-blog a.btn-blog-link {
    background-color: #EBE9E9;
    color: #000;
}

.mss-container-date-share-icons .share_button ul.mss-share-button-content li:first-child,
.mss-header-date-share-button .share_button ul.mss-share-button-content li:first-child {
    margin-left: 0;
    padding-left: 0;
}

.mss-container-date-share-icons .share_button ul.mss-share-button-content li,
.mss-header-date-share-button .share_button ul.mss-share-button-content li {
    display: block;
    clear: both;
    padding-left: 5px !important;
    padding-right: 0;

}

.mss-container-date-share-icons .share_button ul.mss-share-button-content li:before,
.mss-header-date-share-button .share_button ul.mss-share-button-content li:before {
    width: 0;
    height: 0;

}

.blog-info.mss-information-blog {
    padding-bottom: 60px;
    border-top: 1px solid #e84242;
    padding-top: 20px;
    margin-top: 20px;
}

.blog-info.mss-information-blog .mss-container-btn {
    position: absolute;
    bottom: 15px;
    /*right: 0;*/
}

.blog-info.mss-information-blog .mss-container-btn a.more {
    background-color: #ebe9e9;
    color: #000;
    transition: transform .2s;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    box-shadow: none;
    margin-right: 15px;
}

.blog-info.mss-information-blog .mss-container-btn a.more:hover {
    background-color: #003D60;
    color: #fff;
    transform: scale(1.10);
}

.mss-information-blog .blog-shortinfo {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.mss-information-blog h4.title {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}


.mss-row-flex .col-lg-4 .blog-item {
    /*padding: 0;*/
}

/*-----------------------------------------------------------------------------------------*/
/*------------------------------  PAGINATION SECTION FOOTER  ------------------------------*/
.mss-pagination-content {
    display: flex;
    justify-content: center;
}

.mss-pagination-content .material-icons {
    color: #e74141;
}

/*--------------------------------------------------------------------------------------*/
/*--------------------------------   DETAIL BLOG PAGE   --------------------------------*/
.mss-blog-container .blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mss-btn-back span.material-icons {
    color: #e74141;
    padding-left: 0;
    width: 15px;
    text-align: left;
    direction: rtl;
}

.mss-btn-back .mss-text {
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.mss-header-date-share-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mss-header-date-share-button .share-section {
    height: 20px;
}

.mss-share-button-content-detail .btn.btn-default {
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    padding-right: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.mss-share-button-content-detail .btn.btn-default:hover {
    font-size: 20px;
    color: #e30615;
}

.mss-header-date-share-button .mss-date strong {
    font-size: 16px;
}

.mss-blog-container {
    margin-bottom: 20px;
}

.mss-blog-container .blog-title {
    color: #163C5D;
    font-family: "Playfair Display", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3em;
    margin-bottom: 30px;
    margin-top: 30px;
}

.blog-image-description-row .blog-description p {
    margin-bottom: 0;
    line-height: 1.6;
}

.blog-content {
    color: #163C5D;
}

.blog-content p {
    font-family: Poppins, Sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.blog-content ul,
.blog-content ol {
    padding-left: 20px;
}

.blog-content ul li,
.blog-content ol li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #163C5D;
    line-height: 1.6;
    list-style: none;
    padding-left: 12px;
    position: relative;
}

.blog-content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #163C5D;
}

.blog-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 30px;
}

.blog-content a {
    color: #d0121a;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #BE4142;
}

.blog-description a {
    color: #d0121a;
    text-decoration: underline;
}

.blog-description a:hover {
    color: #BE4142;
}

.blog-image-description-row .blog-description {
    color: #163C5D;
}

.hs-pagination-sample {
    margin-top: 10px;
}

.hs-pagination-sample ul.hs-sample-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.hs-pagination-sample ul.hs-sample-pagination li a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #163C5D;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.hs-pagination-sample ul.hs-sample-pagination li a:hover {
    color: #E84242;
}

.hs-pagination-sample .hs-sample-pagination i.material-icons {
    font-size: 15px;
    max-width: 10px;
}

.mss-blog-container .blog-image img {
    /*max-width: 800px;*/
    margin: 0 auto;
}


/*------------------------------------------------------------------------------------------------------------*/
/*----------------------------------    PRODUCT RELATEDS ON SECTION BLOG    ----------------------------------*/
.mss-related-blogs .ms-articles-relateds {
    display: flex;
    flex-wrap: wrap;
}

.mss-related-blogs .ms-articles-relateds .mss-article-related {
    display: flex;
    flex-direction: column;
    position: relative;
}

.mss-related-blogs .mss-article-related {
    margin-bottom: 30px;
}

.mss-related-blogs .ms-articles-relateds .mss-cover {
    /*margin-bottom: 15px;*/
    display: flex;
}

.mss-related-blogs .ms-articles-relateds .mss-cover img {
    width: 100%;
    object-fit: cover;
    background-size: cover;
    border-radius: 8px;
}

.mss-description-blog strong, .mss-blog-created strong.date {
    font-weight: 400;
}

.mss-related-blogs .ms-articles-relateds .mss-description-blog {
    /*padding-bottom: 65px;*/
}

.mss-related-blogs .ms-articles-relateds .mss-description-blog h3 {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    color: #003d60;
    border-top: 1px solid #e84242;
    padding-top: 25px;
    margin-top: 12px;
}

.mss-related-blogs .ms-articles-relateds .mss-description-blog a.btn-blog-link {
    background: #ebe9e9;
    box-shadow: none;
    position: absolute;
    right: 0;
    margin-right: 15px;
    bottom: 0;
    color: #000;
    transition: transform .2s;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

div.mss-related-blogs .ms-articles-relateds .mss-description-blog a.btn-blog-link:hover {
    background: #003D60;
    color: #fff;
    transform: scale(1.10);
}

.mss-related-blogs h2.mss-subtitle-article {
    font-size: 18px;
    font-family: 'Good Times Rg', sans-serif;
    display: block;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.row.wrapper-header-category {
    padding: 40px 15px;
}

.link-see-more {
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    transition: background-color .23s ease-in-out;
    /* color: #fff; */
    cursor: pointer;
    background-color: #d5d5d5;
    border-color: #002d47;
    padding: 10px;
}

.link-see-more:hover {
    background-color: #002d47;
    color: #fff;
    border-color: #001a2e;
    transform: translateY(-2px); /* Légère élévation */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre au survol */
}

.blog-image a img {
    border-radius: 8px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 140px;
}

.row.mss-row-flex .col-lg-3 {
    margin-bottom: 30px;
    height: 480px
}

.row.wrapper-header-category h2 {
    font-size: 1.25rem;
}

.row.wrapper-header-category span {
    font-size: 15px;
}

.col-lg-6.mss-cover img {
    height: 150px !important;
    background-repeat: no-repeat;
}

div#blogpage .mss-blog-container, .row.ms-articles-relateds, .blog-menu {
    border-top: none;
    border-radius: 8px;
    background-color: #fff;
    padding-bottom: 30px;
    border-bottom: none;
    position: relative;
}

.blog-full-width-separator {
    border-top: 1px solid #E2E2E2;
    margin-bottom: 20px;
}

div#blogpage {
    margin-right: 80px;
    /*padding: 20px !important;*/
}

#blogpage .mss-date {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.blog-category-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 4px 12px 4px 14px;
    background-color: #163C5D;
    border-radius: 5px;
    text-transform: uppercase;
}

.blog-category-badge:hover {
    color: #fff;
}

.blog-published-label {
    font-family: Poppins, Sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #163C5D;
    text-transform: uppercase;
}

.share_button.mss-share-button-content-detail {
    margin-left: auto;
}

.share_button.mss-share-button-content-detail a {
    font-size: 30px;
}

.mss-date span {
    margin-left: 10px;
}

.col-lg-6.mss-description-blog {
    padding: 0;
}

.col-lg-6.mss-description-blog p {
    margin: 0;
    padding: 5px 0;
}

.mss-description-blog .mss-container-read-more {
    /*position: absolute;*/
    bottom: 0;
}

.col-lg-6.mss-cover {
    padding-left: 1px;
}

div#blog-listing .inner {
    margin-bottom: 5rem;
}

#blogpage .mss-go-back {
    margin-bottom: 20px;
}

.ms-articles-relateds .mss-title-related {
    font-weight: 600;
}

.ms-articles-relateds .mss-date-related {
    font-size: 14px;
}

div#right-column {
    width: 30% !important;
    flex: 0 0 30% !important;
    max-width: 30% !important;
    border-radius: 5px;
    margin-top: 20px;
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    background-color: #F9F7F6;
}

.sidebar-section {
    margin: 0;
    padding: 0;
}

.sidebar-section__title {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    color: #163C5D;
    font-weight: 600;
    padding-bottom: 12px;
    margin-bottom: 16px;
    width: 100%;
    border-bottom: none;
    position: relative;
}

.sidebar-section__title::after {
    content: '';
    display: block;
    width: 22%;
    height: 5px;
    background-color: #cccccc;
    margin-top: 12px;
}

.sidebar-categories .sidebar-section__title,
.sidebar-recent .sidebar-section__title {
    padding-bottom: 6px;
}

.sidebar-recent .sidebar-recent-item:first-of-type {
    padding-top: 0;
}

.sidebar-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 12px;
}

.sidebar-product-item img {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 3px;
}

.sidebar-product-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #163C5D;
    line-height: 1.3;
}

.sidebar-product-item:hover .sidebar-product-name {
    color: rgb(233, 66, 66);
}

/* Catégories sidebar */
.sidebar-categories {
    margin-top: 30px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 0;
}

.sidebar-cat-icon {
    font-size: 8px;
    width: 8px;
    flex-shrink: 0;
    color: #163C5D;
}

.sidebar-cat-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #163C5D;
}

.sidebar-cat-item:hover .sidebar-cat-name,
.sidebar-cat-item:hover .sidebar-cat-icon {
    color: rgb(233, 66, 66);
}

/* Articles récents sidebar */
.sidebar-recent {
    margin-top: 30px;
}

.sidebar-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.sidebar-recent-item:last-child {
    border-bottom: none;
}

.sidebar-recent-img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}

.sidebar-recent-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-recent-title {
    font-family: 'Playfair Display', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #163C5D;
    line-height: 1.3;
}

.sidebar-recent-date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #163C5D;
}

.sidebar-recent-item:hover .sidebar-recent-title {
    color: rgb(233, 66, 66);
}

.blog-menu .tree .collapse-icons {
    right: 10px;
    top: 20px;
}
.col-md-2.nav-right-blog {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.blog-image-description-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}

.blog-detail .blog-image {
    max-width: 285px;
    flex-shrink: 0;
    margin-right: 20px;
}

.blog-detail .blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-image-description-row .blog-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 20px 0px 20px 20px;
    margin-top: 0;
}

@media (max-width: 767px) {
    body#module-leoblog-blog #wrapper > .container {
        display: flex;
        flex-direction: column;
    }
    body#module-leoblog-blog #content-wrapper {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 1;
    }
    div#right-column {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
        flex-basis: 100% !important;
        order: 2;
        margin-top: 0;
        border-radius: 0;
    }
    .blog-image-description-row {
        flex-direction: column;
    }
    .blog-detail .blog-image {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .blog-detail .blog-image img {
        width: 100%;
    }
    .blog-image-description-row .blog-description {
        padding: 16px 0 0 0;
    }
    div#blogpage {
        margin-right: 0 !important;
        padding-left: 18px;
        padding-right: 18px;
    }
    .blog-full-width-separator {
        margin-left: 0;
        margin-right: 0;
    }
}


/*-------------------------------------------------------------------------------*/
/*------------------- PAGE BLOG (listing) — charte Repiauto ---------------------*/
/* Tout est scope sous .rp-blog pour ne pas toucher la page article ni la page
   categorie, qui partagent ce meme fichier CSS. */

.rp-blog {
    --navy: #0b1e3d;
    --navy-2: #142a52;
    --red: #e81f1f;
    --grey-bg: #f5f6fa;
    --grey-line: #e3e6ee;
    --text-soft: #667085;
    --rp-radius: 10px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--navy);
    background: #fff;
}

.rp-blog * {
    box-sizing: border-box;
}

.rp-blog button,
.rp-blog input {
    font-family: inherit;
}

.rp-blog .rp-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* La page utilise le layout pleine largeur : on neutralise les marges que le
   fichier applique globalement aux pages blog. */
body#module-leoblog-list #content-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

body#module-leoblog-list #wrapper > .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* -------- Breadcrumb -------- */
.rp-blog .rp-breadcrumb {
    padding: 16px 0;
    font-size: .8rem;
    color: var(--text-soft);
}

.rp-blog .rp-breadcrumb a {
    color: var(--text-soft);
    text-decoration: none;
}

.rp-blog .rp-breadcrumb a:hover {
    color: var(--navy);
}

.rp-blog .rp-breadcrumb span {
    color: var(--navy);
    font-weight: 600;
}

/* -------- Hero -------- */
.rp-blog .rp-hero {
    position: relative;
    min-height: 420px;
    border-radius: var(--rp-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    isolation: isolate;
    background: var(--navy);
}

.rp-blog .rp-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.rp-blog .rp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 30, 61, .05) 0%, rgba(11, 30, 61, .55) 55%, rgba(11, 30, 61, .92) 100%);
}

.rp-blog .rp-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px clamp(24px, 4vw, 56px);
    color: #fff;
    max-width: 640px;
}

.rp-blog .rp-hero-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
    margin-bottom: 14px;
}

.rp-blog .rp-hero-badge {
    background: var(--navy);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    text-decoration: none;
}

.rp-blog .rp-hero-badge:hover {
    background: var(--navy-2);
    color: #fff;
    text-decoration: none;
}

.rp-blog .rp-hero-date-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--grey-bg);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.rp-blog .rp-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    text-transform: none;
}

.rp-blog .rp-hero-excerpt {
    font-size: .92rem;
    line-height: 1.55;
    color: #dde3f0;
    margin: 0 0 22px;
}

.rp-blog .rp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    padding: 13px 26px;
    border-radius: 50px;
    transition: background .2s, transform .2s;
}

.rp-blog .rp-hero-cta:hover {
    background: #c81616;
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

/* -------- Titre de filtre (recherche / tag / auteur) -------- */
.rp-blog .rp-filter-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 24px;
    text-transform: none;
}

.rp-blog .rp-filter-title span {
    color: var(--red);
}

/* -------- Onglets de filtre -------- */
.rp-blog .rp-tabs {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--grey-bg);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 32px;
    position: sticky;
    top: 16px;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(11, 30, 61, .04);
}

.rp-blog .rp-tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 0;
    background: var(--navy);
    border-radius: 50px;
    z-index: 0;
    box-shadow: 0 4px 12px -2px rgba(11, 30, 61, .35);
    transform: translateX(0);
    will-change: transform, width;
    transition: transform .45s cubic-bezier(.65, 0, .35, 1), width .45s cubic-bezier(.65, 0, .35, 1);
}

.rp-blog .rp-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: color .25s;
}

.rp-blog .rp-tab svg {
    opacity: .6;
    transition: opacity .25s;
    flex-shrink: 0;
}

.rp-blog .rp-tab:hover {
    color: var(--navy);
    text-decoration: none;
}

.rp-blog .rp-tab.is-current {
    color: #fff;
}

.rp-blog .rp-tab.is-current svg {
    opacity: 1;
}

/* -------- Grille d'articles -------- */
.rp-blog .rp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 20px;
}

.rp-blog .rp-card {
    background: #fff;
    border: 1px solid var(--grey-line);
    border-radius: var(--rp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}

.rp-blog .rp-card--hidden {
    display: none;
}

.rp-blog .rp-card:hover {
    box-shadow: 0 8px 20px -10px rgba(11, 30, 61, .18);
}

.rp-blog .rp-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--grey-bg);
}

.rp-blog .rp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    /* Le theme applique globalement img{vertical-align:middle} : en block on ne
       depend plus de la hauteur de ligne du lien parent. */
    display: block;
    vertical-align: top;
}

.rp-blog .rp-card:hover .rp-card-media img {
    transform: scale(1.03);
}

.rp-blog .rp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-bg);
    color: var(--text-soft);
}

.rp-blog .rp-card-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    /* On laisse la place du bouton de partage (34px) et de sa marge. */
    max-width: calc(100% - 64px);
}

.rp-blog .rp-badge {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    padding: 4px 9px;
    border-radius: 20px;
    pointer-events: none;
}

/* La maquette distingue les actualites en rouge, le reste en navy. Le slug vient
   du titre de la categorie en base : toute nouvelle categorie prend le navy. */
.rp-blog .rp-card[data-cat*="actu"] .rp-badge,
.rp-blog .rp-card[data-cat*="news"] .rp-badge {
    background: var(--red);
}

.rp-blog .rp-share {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 30, 61, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    /* line-height normalise : sans ca, celui herite du theme decale la fleche
       vers le haut malgre le centrage flex. */
    line-height: 1;
    font-size: 0;
    color: var(--navy);
    cursor: pointer;
    transition: color .2s, transform .2s;
}

.rp-blog .rp-share svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rp-blog .rp-share:hover {
    color: var(--red);
    transform: scale(1.06);
}

.rp-blog .rp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rp-blog .rp-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--navy);
    font-size: .6rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.rp-blog .rp-card-date svg {
    flex-shrink: 0;
    opacity: .7;
}

.rp-blog .rp-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-line);
    color: var(--navy);
    text-transform: none;
}

.rp-blog .rp-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.rp-blog .rp-card-title a:hover {
    color: var(--red);
    text-decoration: none !important;
}

/* Le lien qui porte la vignette remplit exactement la zone media, quel que soit
   le line-height herite du theme. */
.rp-blog .rp-card-media > a:not(.rp-share) {
    position: absolute;
    inset: 0;
    display: block;
    line-height: 0;
    font-size: 0;
}

.rp-blog .rp-card-media > a:not(.rp-share) > img {
    display: block;
}

.rp-blog .rp-card-excerpt {
    font-size: .85rem;
    color: var(--navy);
    opacity: .65;
    line-height: 1.55;
    margin: 0 0 20px;
    flex: 1;
}

.rp-blog .rp-card-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    border: 1.5px solid rgba(232, 31, 31, .35);
    border-radius: 20px;
    padding: 8px 16px;
    align-self: flex-start;
}

.rp-blog .rp-card-link svg {
    transition: transform .2s;
}

.rp-blog .rp-card-link:hover {
    color: var(--red);
    text-decoration: none;
}

.rp-blog .rp-card-link:hover svg {
    transform: translateX(3px);
}

/* -------- Voir plus / etats vides -------- */
.rp-blog .rp-more {
    display: block;
    margin: 32px auto 56px;
    background: var(--navy);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: .85rem;
    padding: 13px 34px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.rp-blog .rp-more:hover {
    background: var(--navy-2);
    transform: translateX(2px);
}

.rp-blog .rp-empty-filter {
    text-align: center;
    color: var(--text-soft);
    font-size: .9rem;
    margin: 32px 0 48px;
}

.rp-blog .rp-noresult {
    text-align: center;
    background: var(--grey-bg);
    border: 1px solid var(--grey-line);
    border-radius: var(--rp-radius);
    padding: 40px 24px;
    margin-bottom: 48px;
}

.rp-blog .rp-noresult h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    text-transform: none;
}

.rp-blog .rp-noresult p {
    color: var(--text-soft);
    font-size: .9rem;
    margin: 0 0 18px;
}

.rp-blog .rp-noresult ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: .85rem;
}

.rp-blog .rp-noresult li {
    margin-bottom: 6px;
}

/* -------- Responsive -------- */
@media (max-width: 980px) {
    .rp-blog .rp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .rp-blog .rp-grid {
        grid-template-columns: 1fr;
    }

    .rp-blog .rp-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        /* relative et non static : la barre ne colle plus au scroll en mobile,
           mais elle doit rester le conteneur de reference de l'indicateur, qui
           est en position absolue. En static, l'indicateur se rattache a un
           ancetre positionne et s'etire sur toute la hauteur de la page. */
        position: relative;
    }

    .rp-blog .rp-hero {
        min-height: 340px;
    }
}

.rp-blog .rp-hero[data-cat*="actu"] .rp-hero-badge,
.rp-blog .rp-hero[data-cat*="news"] .rp-hero-badge {
    background: var(--red);
    border-color: rgba(255, 255, 255, .35);
}


/* =========================================================================
   Titre de page (H1) et intro editoriale
   ========================================================================= */

.rp-blog .rp-page-h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 16px;
    line-height: 1.25;
    text-transform: none;
}

/* Intro en citation : le guillemet rouge est purement decoratif, le retrait
   gauche lui reserve la place. */
.rp-blog .rp-page-intro {
    position: relative;
    padding-left: 36px;
    margin-bottom: 32px;
}

.rp-blog .rp-page-intro-quote {
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    font-family: Georgia, serif;
}

.rp-blog .rp-page-intro p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--navy);
    opacity: .9;
    margin: 0;
}

/* Focus clavier visible sur tous les elements interactifs du blog : le theme
   ne le garantit pas partout, et c'est un point de la checklist accessibilite. */
.rp-blog a:focus-visible,
.rp-blog button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .rp-blog .rp-page-h1 {
        font-size: 1.3rem;
    }
}
