/**
 * Ferme des Vallons — Blog (préfixe .fdv-b). Mêmes principes que fdv_recipes : boutons, champs, titres et pagination
 * du thème ; seules la mise en page et les cartes sont définies ici. Couleur d'accent = couleur primaire du thème.
 */
.fdv-b { --fdv-b-accent: var(--bs-primary, #2d5335); --fdv-b-muted: var(--bs-secondary-color, #5c636a); --fdv-b-soft: #f6f6f4; }
.fdv-b img { max-width: 100%; height: auto; display: block; }
.fdv-b-list, .fdv-b-post { padding-bottom: 2.5rem; }

/* Liste */
.fdv-b-list__head { margin-bottom: 1.25rem; }
.fdv-b-list__intro { max-width: 70ch; margin-bottom: 1rem; }
.fdv-b-list__intro p:last-child { margin-bottom: 0; }
.fdv-b-search { display: flex; gap: .5rem; max-width: 560px; }
.fdv-b-search .form-control { flex: 1 1 auto; min-width: 0; }
.fdv-b-filters ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.fdv-b-count { font-weight: 400; opacity: .8; }
.fdv-b-status { color: var(--fdv-b-muted); }
.fdv-b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.75rem 1.5rem; }
.fdv-b-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fdv-b-pagination { margin-top: 2rem; }
.fdv-b-pagination .pagination { justify-content: center; flex-wrap: wrap; }
.fdv-b-empty { padding: 3rem 1rem; text-align: center; background: var(--fdv-b-soft); border-radius: var(--bs-border-radius-lg, .5rem); }

/* Carte */
.fdv-b-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.fdv-b-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fdv-b-soft); border-radius: var(--bs-border-radius-lg, .5rem); }
.fdv-b-card__media picture { display: block; height: 100%; }
.fdv-b .fdv-b-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fdv-b-card:hover .fdv-b-card__media img { transform: scale(1.03); }
.fdv-b-card__cat { position: absolute; top: .75rem; left: .75rem; padding: .2rem .55rem; border-radius: var(--bs-border-radius, .375rem); background: var(--fdv-b-accent); color: #fff; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.fdv-b-card__cat--inline { position: static; align-self: flex-start; }
.fdv-b-card__body { display: flex; flex-direction: column; gap: .4rem; padding: .875rem .125rem 0; flex: 1; }
.fdv-b-card__title { margin: 0; font-weight: 700; line-height: 1.25; }
.fdv-b-card:hover .fdv-b-card__title { color: var(--fdv-b-accent); }
.fdv-b-card__excerpt { margin: 0; color: var(--bs-body-color); font-size: .9375rem; }
.fdv-b-card__meta { margin: auto 0 0; padding-top: .25rem; color: var(--fdv-b-muted); font-size: .8125rem; }
@media (min-width: 992px) {
  .fdv-b-card--wide { grid-column: 1 / -1; }
  .fdv-b-card--wide .fdv-b-card__link { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
  .fdv-b-card--wide .fdv-b-card__media { aspect-ratio: 16 / 9; }
  .fdv-b-card--wide .fdv-b-card__title { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .fdv-b-card__media img { transition: none; } }

/* Article */
.fdv-b-post__head, .fdv-b-post__content, .fdv-b-post__foot { max-width: 46rem; margin-inline: auto; }
.fdv-b-post__cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.fdv-b-post__title { margin: 0 0 .5rem; }
.fdv-b-post__meta { color: var(--fdv-b-muted); font-size: .9375rem; }
.fdv-b-post__excerpt { font-size: 1.125rem; line-height: 1.55; }
.fdv-b-post__cover { max-width: 60rem; margin: 1.5rem auto 2rem; }
.fdv-b-post__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--bs-border-radius-lg, .5rem); }
.fdv-b-post__content { font-size: 1.0625rem; line-height: 1.7; }
.fdv-b-post__content h2 { margin: 2rem 0 .75rem; }
.fdv-b-post__content h3 { margin: 1.5rem 0 .5rem; }
.fdv-b-post__content img { margin: 1.25rem auto; border-radius: var(--bs-border-radius, .375rem); }
.fdv-b-post__content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--bs-border-radius-lg, .5rem); background: var(--fdv-b-soft); font-size: 1.125rem; font-style: italic; }
.fdv-b-post__products { max-width: 60rem; margin: 2.5rem auto 0; }
.fdv-b-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--bs-border-color, #dee2e6); }
.fdv-b-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fdv-b-back { font-weight: 600; }
.fdv-b-related { margin-top: 3rem; }
.fdv-b-notice { padding: .6rem 1rem; background: #fff4d6; border: 1px solid #e8c25a; border-radius: var(--bs-border-radius, .375rem); }

/* Bloc fiche produit */
.fdv-b-product-block { margin: 2rem 0; }
.fdv-b-product-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.fdv-b-product-block__head .h2 { margin: 0; }

/* Blocs de mise en forme du contenu (classes posées dans l'éditeur, voir README « Blocs visuels ») */
.fdv-b-post__content > :first-child { margin-top: 0; }
.fdv-b-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .75rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.fdv-b-keys > * { display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: 1rem .9rem; border-radius: var(--bs-border-radius-lg, .5rem); background: var(--fdv-b-soft); text-align: center; line-height: 1.3; font-size: .9rem; }
.fdv-b-keys strong { display: block; color: var(--fdv-b-accent); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
/* encadrés : aplat plein, coins identiques (comme le bandeau de réassurance du thème), jamais de bordure sur un seul côté */
.fdv-b-tip { margin: 1.75rem 0; padding: 1.1rem 1.25rem; border-radius: var(--bs-border-radius-lg, .5rem); background: var(--fdv-green-subtle, #e6efe3); }
.fdv-b-tip > :last-child { margin-bottom: 0; }
.fdv-b-tip__title { margin: 0 0 .35rem; color: var(--fdv-b-accent); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fdv-b-tip--warn { background: #fbf0e8; }
.fdv-b-tip--warn .fdv-b-tip__title { color: #9a4521; }
.fdv-b-dodont { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fdv-b-dodont > div { padding: 1rem 1.15rem; border-radius: var(--bs-border-radius-lg, .5rem); }
.fdv-b-dodont .fdv-b-do { background: #eef4ec; }
.fdv-b-dodont .fdv-b-dont { background: #fbf0e8; }
.fdv-b-dodont__title { margin: 0 0 .5rem; font-weight: 800; }
.fdv-b-do .fdv-b-dodont__title { color: var(--fdv-b-accent); }
.fdv-b-dont .fdv-b-dodont__title { color: #9a4521; }
.fdv-b-dodont ul { margin: 0; padding: 0; list-style: none; }
.fdv-b-dodont li { position: relative; margin: .35rem 0; padding-left: 1.6rem; line-height: 1.45; }
.fdv-b-dodont li::before { position: absolute; left: 0; top: .05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1.15rem; text-align: center; }
.fdv-b-do li::before { content: "✓"; background: var(--fdv-b-accent); }
.fdv-b-dont li::before { content: "✕"; background: #b4572e; }
.fdv-b-steps { counter-reset: fdvstep; display: grid; gap: 0; margin: 1.75rem 0; padding: 0; list-style: none; }
.fdv-b-steps > li { counter-increment: fdvstep; position: relative; margin: 0; padding: 0 0 1.1rem 3.1rem; line-height: 1.45; }
.fdv-b-steps > li::before { content: counter(fdvstep); position: absolute; left: 0; top: 0; z-index: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--fdv-b-accent); color: #fff; font-weight: 800; line-height: 2.2rem; text-align: center; }
.fdv-b-steps > li::after { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0; width: 2px; background: #cfdccb; }
.fdv-b-steps > li:last-child { padding-bottom: 0; }
.fdv-b-steps > li:last-child::after { display: none; }
.fdv-b-steps strong { display: block; }
@media (min-width: 768px) {
  .fdv-b-steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1rem; }
  .fdv-b-steps > li { padding: 3rem 0 0; font-size: .9375rem; text-align: center; }
  .fdv-b-steps > li::before { left: 50%; transform: translateX(-50%); }
  .fdv-b-steps > li::after { left: calc(50% + 1.1rem); right: calc(-50% - 1rem + 1.1rem); top: 1.05rem; bottom: auto; width: auto; height: 2px; }
}
.fdv-b-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 1rem; margin: 1.75rem 0; }
.fdv-b-methods > * { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: 1.1rem 1.15rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: var(--bs-border-radius-lg, .5rem); background: #fff; line-height: 1.4; }
.fdv-b-methods .fdv-b-method__name { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fdv-b-muted); }
.fdv-b-methods .fdv-b-method__value { margin: 0; color: var(--fdv-b-accent); font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.fdv-b-methods p { margin: 0; font-size: .9375rem; }
.fdv-b-heat { display: inline-flex; align-items: center; gap: 3px; margin-top: auto; padding-top: .4rem; font-size: .8rem; color: var(--fdv-b-muted); }
.fdv-b-heat::before { content: ""; width: 3.1rem; height: .5rem; margin-right: .4rem; border-radius: 1rem; background: linear-gradient(90deg, #e9a23b 0 var(--fdv-heat, 50%), #e7e5df var(--fdv-heat, 50%)); }
.fdv-b-heat--low { --fdv-heat: 34%; }
.fdv-b-heat--mid { --fdv-heat: 62%; }
.fdv-b-heat--high { --fdv-heat: 90%; }
.fdv-b-figure { margin: 1.75rem 0; }
.fdv-b-post__content .fdv-b-figure img { width: 100%; margin: 0; object-fit: cover; border-radius: var(--bs-border-radius-lg, .5rem); }
.fdv-b-figure figcaption { margin-top: .5rem; color: var(--fdv-b-muted); font-size: .875rem; text-align: center; }
.fdv-b-figure--side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 640px) { .fdv-b-figure--side { grid-template-columns: 14rem minmax(0, 1fr); } .fdv-b-figure--side figcaption { margin: 0; font-size: 1rem; color: inherit; text-align: left; } }
.fdv-b-post__content table.fdv-b-table { width: 100%; margin: 1.5rem 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: var(--bs-border-radius-lg, .5rem); font-size: .9375rem; }
.fdv-b-table th, .fdv-b-table td { padding: .6rem .85rem; border-bottom: 1px solid var(--bs-border-color, #dee2e6); text-align: left; }
.fdv-b-table thead th { background: var(--fdv-b-accent); color: #fff; font-weight: 700; }
.fdv-b-table tbody tr:nth-child(even) td { background: var(--fdv-b-soft); }
.fdv-b-table tbody tr:last-child td { border-bottom: 0; }
.fdv-b-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.fdv-b-pairs > li { margin: 0; padding: .85rem 1rem; border-radius: var(--bs-border-radius-lg, .5rem); background: var(--fdv-b-soft); font-size: .9375rem; line-height: 1.45; }
.fdv-b-pairs strong { display: block; margin-bottom: .15rem; color: var(--fdv-b-accent); font-size: 1rem; }
.fdv-b-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding: 1.25rem 1.4rem; border-radius: var(--bs-border-radius-lg, .5rem); background: var(--fdv-b-accent); color: #fff; }
.fdv-b-cta p { margin: 0; flex: 1 1 18rem; }
.fdv-b-cta strong { display: block; font-size: 1.15rem; }
.fdv-b-post__content .fdv-b-cta a { flex: 0 0 auto; padding: .6rem 1.1rem; border-radius: var(--bs-border-radius, .375rem); background: #fff; color: var(--fdv-b-accent); font-weight: 700; text-decoration: none; }
.fdv-b-post__content .fdv-b-cta a:hover { background: #eef4ec; }

/* Cartes recettes (code court [recettes:...]) */
.fdv-b-recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1.75rem 0; }
.fdv-b-post__content .fdv-b-recipe { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: var(--bs-border-radius-lg, .5rem); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.fdv-b-recipe:hover { border-color: var(--fdv-b-accent); }
.fdv-b-recipe__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--fdv-b-soft); }
.fdv-b-recipe__media picture { display: block; height: 100%; }
.fdv-b-post__content .fdv-b-recipe__media img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.fdv-b-recipe__tag { position: absolute; top: .65rem; left: .65rem; padding: .15rem .5rem; border-radius: var(--bs-border-radius, .375rem); background: #e9a23b; color: #2b2b2b; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fdv-b-recipe__body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem 1rem 1rem; flex: 1; }
.fdv-b-recipe__title { font-weight: 700; line-height: 1.3; }
.fdv-b-recipe:hover .fdv-b-recipe__title { color: var(--fdv-b-accent); }
.fdv-b-recipe__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--fdv-b-muted); font-size: .8125rem; }
.fdv-b-recipe__cta { margin-top: auto; padding-top: .25rem; color: var(--fdv-b-accent); font-size: .875rem; font-weight: 700; }
@media (min-width: 640px) {
  .fdv-b-recipes--single .fdv-b-recipe { flex-direction: row; }
  .fdv-b-recipes--single .fdv-b-recipe__media { flex: 0 0 45%; aspect-ratio: auto; min-height: 12rem; }
  .fdv-b-recipes--single .fdv-b-recipe__body { justify-content: center; padding: 1.25rem 1.4rem; }
  .fdv-b-recipes--single .fdv-b-recipe__title { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .fdv-b-recipe { transition: none; } }
