/* ==========================================================
   Barre latérale du blog : compacte, fixe au défilement (grand écran)
   ========================================================== */

/* Fixe pendant le défilement (grand écran) : la classe et la position sont calculées
   par blog-sidebar.js selon la hauteur de l'écran */
.blog-sidebar.is-sticky {
    position: sticky;
    top: var(--blog-sidebar-top, 110px);
}

.blog-sidebar .blog-sidebar__widget {
    --widget-padding-y: 20px;
    --widget-padding-x: 22px;
    margin-bottom: 14px;
    border-radius: 20px;
}

.blog-sidebar__title {
    margin: 16px 0 10px;
    font-size: 17px;
    font-weight: 600;
}

/* Recherche */
.blog-sidebar__search {
    position: relative;
}
.blog-sidebar__search input {
    width: 100%;
    height: 46px;
    padding: 0 54px 0 20px;
    border: 1px solid #dbe4f1;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
}
.blog-sidebar__search input:focus {
    border-color: var(--theme-color, #4A7BC8);
}
.blog-sidebar__search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--theme-color, #4A7BC8);
    color: #fff;
}

/* Catégories et tags en pastilles */
.blog-sidebar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-sidebar__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #dbe4f1;
    border-radius: 999px;
    background: #fff;
    color: var(--title-color);
    font-size: 14px;
    line-height: 1.2;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-sidebar__chip:hover,
.blog-sidebar__chip.is-active {
    border-color: var(--theme-color, #4A7BC8);
    background: var(--theme-color, #4A7BC8);
    color: #fff;
}
.blog-sidebar__chip--tag {
    color: var(--body-color);
}
.blog-sidebar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.blog-sidebar__count {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(74, 123, 200, .12);
    font-size: 12px;
}
.blog-sidebar__chip:hover .blog-sidebar__count,
.blog-sidebar__chip.is-active .blog-sidebar__count {
    background: rgba(255, 255, 255, .25);
}

/* Articles récents : carrousel */
.blog-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.blog-sidebar__nav {
    display: flex;
    gap: 6px;
}
.blog-sidebar__arrow {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe4f1;
    border-radius: 50%;
    background: #fff;
    color: var(--title-color);
    font-size: 13px;
    transition: background .2s ease, color .2s ease;
}
.blog-sidebar__arrow:hover {
    background: var(--theme-color, #4A7BC8);
    color: #fff;
}
.recent-slide {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
}
.recent-slide__img {
    flex: 0 0 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 12px;
}
.recent-slide__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.recent-slide:hover .recent-slide__img img {
    transform: scale(1.05);
}
.recent-slide__body {
    min-width: 0;
}
.recent-slide__date {
    display: block;
    margin-bottom: 4px;
    color: var(--theme-color, #4A7BC8);
    font-size: 13px;
}
.recent-slide__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--title-color);
    font-family: var(--title-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.recent-slide:hover .recent-slide__title {
    color: var(--theme-color, #4A7BC8);
}
.recent-posts-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}
.recent-posts-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #b5c4dc;
    opacity: 1;
}
.recent-posts-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 4px;
    background: var(--theme-color, #4A7BC8);
}

/* Encadré « Un projet en tête ? » compact dans la barre latérale */
.blog-sidebar .help-widget {
    margin-bottom: 0;
    padding: 18px 22px;
}
.blog-sidebar .help-widget__icon {
    display: none;
}
.blog-sidebar .help-widget__title {
    margin-bottom: 4px;
    font-size: 20px;
}
.blog-sidebar .help-widget__text {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.blog-sidebar .help-widget__phone {
    font-size: 18px;
}
.blog-sidebar .help-widget .th-btn {
    margin-top: 10px !important;
    padding: 10px 20px;
}
.blog-sidebar .help-widget__whatsapp {
    margin-top: 8px;
}

.blog-sidebar__head .blog-sidebar__title {
    margin: 0;
}
