/* --- Archive - Actualités --- */
@media (width < 782px) {
    .blog main {
        padding-top: 136px;
    }
}

@media (width >= 782px) {
    .blog main {
        padding-top: 152px;
        padding-bottom: 64px;
    }
}

.blog h1 {
    text-transform: none;
}

.blog .category-filter-toggle__wrapper {
    width: 100%;
}

.blog .category-filter-toggle {
    margin: 0;
}

.post-offer-filter {
    position: relative;
    display: inline-block;
    max-width: 100%;
}


@media (width < 782px) {
    .post-offer-filter {
        width: 100%;
    }
}

@media (width >= 782px) {
    .post-offer-filter {
        width: 300px;
    }
}

.select {
    position: relative;
    cursor: pointer;
}

.select__trigger {
    border-radius: 8px;
    padding: 12px 16px;
    padding-right: 16px;
    border: 1px solid var(--color-grey-700);
    transition: all 0.3s ease-out;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.select__trigger:hover,
.select.open .select__trigger {
    border: 1px solid var(--color-black);
}

.select__trigger span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select__trigger i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--color-black);
}

.select.open .select__trigger i {
    transform: rotate(180deg);
}

.select__options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-grey-500);
    border-radius: 8px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.select.open .select__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select__option {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select__option:hover {
    background-color: #F8F8F8;
}

.select__option.selected {
    font-weight: 600;
    background-color: #F8F8F8;
}

/* --- Single - Actualités --- */
@media (width < 782px) {
    .single-post main {
        padding-top: 136px;
    }

    .single-post .single-post__content {
        padding-bottom: 64px;
    }
}

@media (width >= 782px) {
    .single-post main {
        padding-top: 200px;
    }

    .single-post .single-post__content {
        padding-bottom: 200px;
    }
}

.single-post .single-post__header .taxonomy-category {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-post .single-post__header h1 {
    text-transform: none;
}

.single-post .single-post__header .taxonomy-category span {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    border-width: 1px;
    border-style: solid;
}

.single-post .single-post__header .taxonomy-category span.wp-block-post-terms__separator {
    display: none;
}

.single-post .single-post__header .taxonomy-category span.category-solarothermie,
.single-post .single-post__header .taxonomy-category span.category-energia-solar-termica,
.single-post .single-post__header .taxonomy-category span.category-solar-thermal-energy,
.single-post .single-post__header .taxonomy-category span.category-solarthermie {
    border-color: var(--color-solarothermie);
}

.single-post .single-post__header .taxonomy-category span.category-eclairage,
.single-post .single-post__header .taxonomy-category span.category-iluminacion,
.single-post .single-post__header .taxonomy-category span.category-beleuchtung,
.single-post .single-post__header .taxonomy-category span.category-lighting {
    border-color: var(--color-eclairage);
}

.single-post .single-post__header .single-post__metas p {
    font-weight: 400;
}

.single-post .single-post__header .single-post__back {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.single-post .single-post__thumbnail img {
    object-fit: cover;
    border-radius: 16px;
}

.single-post .single-post__content .wp-block-heading {
    margin-bottom: 16px;
}

.single-post .single-post__content .wp-block-image img {
    border-radius: 16px;
    object-fit: cover;
}