/* ---------------------------------------------------------------------------
   Article "escapade d'exception" (post /test/) — mise en page éditoriale
   --------------------------------------------------------------------------- */

/* Sélecteurs volontairement peu spécifiques (une seule classe) et sans
   dépendance à la classe body `.single` : l'article peut être un « post »
   ou une « page » selon l'installation, et l'URL n'a aucune importance. */

.entry-content .brb-hero,
.brb-hero {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.brb-hero img {
    width: 100%;
    border-radius: 8px;
}

.entry-content .brb-lede,
.brb-lede {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .brb-highlight,
.brb-highlight {
    background-color: #F2B632;
    color: #333;
    padding: 3rem;
    border-radius: 8px;
    margin: 2.5rem auto;
}

.brb-highlight a,
.brb-highlight strong {
    color: #333 !important;
}

.brb-highlight .wp-block-list {
    max-width: 34rem;
    margin: 1.5rem auto 0;
}

.brb-price {
    font-family: "Bowlby One";
    font-size: 3rem;
    line-height: 1;
    color: #333;
    margin: 0.5rem 0 0;
}

.brb-wellness .wp-block-column {
    margin-top: 0;
}

.entry-content .brb-cta,
.brb-cta {
    background-color: #333;
    color: #fff;
    padding: 3.5rem 3rem;
    border-radius: 8px;
    margin: 3rem auto 1rem;
    text-align: center;
}

.brb-cta h2,
.brb-cta h2.wp-block-heading {
    color: #F2B632 !important;
    margin-top: 0;
}

.brb-cta,
.brb-cta p,
.brb-cta .has-text-align-center {
    color: #fff;
}

.brb-cta .wp-block-buttons {
    margin-top: 2rem;
}

.entry-content hr.wp-block-separator.is-style-wide,
hr.wp-block-separator.brb-sep {
    border-top-color: #F2B632;
    max-width: 100%;
    margin: 3rem auto;
    opacity: 1;
}

@media (max-width: 700px) {
    .brb-highlight,
    .brb-cta {
        padding: 2rem 1.5rem;
    }
    .brb-price {
        font-size: 2.4rem;
    }
}

/* ---------------------------------------------------------------------------
   Archive de catégorie (category.php) — grille de miniatures d'articles
   --------------------------------------------------------------------------- */

.brb-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 3.5rem auto;
}

.brb-post-card {
    margin: 0;
    background: #fff;
    border: 1px solid #15130F;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brb-post-card:hover {
    box-shadow: 0 14px 30px rgba(51, 51, 51, 0.14);
    transform: translateY(-4px);
}

.brb-post-card__link,
.brb-post-card__link:hover,
.brb-post-card__link *:not(.brb-post-card__more) {
    color: #333 !important;
    font-weight: normal;
    text-decoration: none;
}

.brb-post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brb-post-card__media {
    aspect-ratio: 3 / 2;
    background: #F2E7CF;
    overflow: hidden;
}

.brb-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.brb-post-card:hover .brb-post-card__media img {
    transform: scale(1.04);
}

.brb-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.6rem 1.5rem 1.8rem;
}

.brb-post-card__date {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5E5546 !important;
}

.brb-post-card__title {
    margin: 0;
    font-family: "Bowlby One" !important;
    font-size: 2rem !important;
    line-height: 1.2;
    color: #333 !important;
}

.brb-post-card__excerpt {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.65;
}

.brb-post-card__more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: bold;
    color: #C4232E !important;
}

.brb-post-card:hover .brb-post-card__more {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .brb-post-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin: 2.5rem auto;
    }
}