/*
 * Baron Mag — styles du module « recettes », chargés seulement sur les pages qui l'utilisent
 * (voir baronmag_css_modules() dans functions.php). Extraits de style.css le 15 nov. 2026.
 */

/* ===== /recettes-de-bieres/ façon magazine (29 oct. 2026, 0.9.107) ===== */
.bm-recm { --n: #141210; --c: #F4EFE6; --r: #E23D28; --g: #6E675C; --l: #D9D0C0; --or: #E0A526; --v: #2E7D32; }
.bm-recm-sur, .bm-recm-c-meta, .bm-recm-sec-sous, .bm-recm-badge, .bm-recm-champ > span, .bm-recm-t-txt small { font-family: var(--wp--preset--font-family--space-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; }
.bm-recm-sur { color: var(--bm-texte-rouge); margin: 0 0 4px; font-weight: 700; }
.bm-recm-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; border-bottom: 3px solid var(--n); padding-bottom: 12px; margin-bottom: 14px; }
.bm-recm-titre { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(40px, 6vw, 76px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 8px; }
.bm-recm-chiffres { margin: 0; color: var(--g); font-size: 14px; }
.bm-recm-chiffres b { color: var(--n); font-size: 19px; }
.bm-recm-tete-btns, .bm-recm-radar-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; align-items: center; }
.bm-recm-btn { display: inline-block; padding: 11px 18px; background: var(--n); color: var(--c) !important; text-decoration: none !important; font-family: var(--wp--preset--font-family--space-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--n); box-shadow: 3px 3px 0 var(--r); white-space: nowrap; }
.bm-recm-btn:hover { background: var(--wp--preset--color--rouge-texte); border-color: var(--r); }
.bm-recm-btn--or { background: var(--or); color: var(--n) !important; box-shadow: 3px 3px 0 var(--n); }
.bm-recm-btn--or:hover { background: var(--n); color: var(--or) !important; border-color: var(--n); }
.bm-recm-lien { color: inherit; font-size: 14px; }
/* Barre */
.bm-recm-barre { display: flex; border: 2px solid var(--n); background: #fff; margin-bottom: 10px; }
.bm-recm-champ { display: flex; flex-direction: column; justify-content: center; padding: 7px 14px; border-right: 1px solid var(--l); min-width: 0; margin: 0; }
.bm-recm-champ > span { color: var(--g); font-size: 9.5px; }
.bm-recm-champ input, .bm-recm-champ select { border: 0; background: transparent; padding: 3px 0; font: inherit; font-size: 15px; color: var(--n); min-width: 0; }
.bm-recm-champ select { cursor: pointer; max-width: 230px; }
.bm-recm-champ--q { flex: 1 1 260px; }
.bm-recm-barre > button { border: 0; background: var(--n); color: var(--c); padding: 0 24px; font-family: var(--wp--preset--font-family--space-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bm-recm-barre > button:hover { background: var(--r); }
/* Pilules */
.bm-recm-pilules { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; }
.bm-recm-pilules a { padding: 5px 11px; border: 1.5px solid var(--n); border-radius: 999px; background: #fff; color: var(--n); text-decoration: none; font-size: 13px; font-weight: 700; }
.bm-recm-pilules a b { color: var(--bm-texte-rouge); font-weight: 700; margin-left: 2px; }
.bm-recm-pilules a:hover, .bm-recm-pilules a.est-actif { background: var(--n); color: var(--c); }
.bm-recm-jetons { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.bm-recm-jetons a { padding: 4px 10px; background: var(--n); color: var(--c); text-decoration: none; font-size: 13px; }
.bm-recm-jetons a.bm-recm-jeton-tout { background: transparent; color: var(--bm-texte-rouge); text-decoration: underline; }
/* Badges */
.bm-recm-badge { display: inline-block; padding: 3px 8px; font-size: 9px; font-weight: 700; background: var(--n); color: #fff; white-space: nowrap; }
.bm-recm-badge--libre { background: var(--v); }
.bm-recm-badge--radar { background: var(--or); color: var(--n); }
/* Cartes */
.bm-recm-c { background: #fff; border: 1.5px solid var(--n); min-width: 0; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.bm-recm-c:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--n); }
.bm-recm-c-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--c); overflow: hidden; border-bottom: 1.5px solid var(--n); }
.bm-recm-c-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bm-recm-c:hover .bm-recm-c-img img { transform: scale(1.04); }
.bm-recm-c-img > span:not(.bm-recm-badge) { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--wp--preset--font-family--archivo); font-size: 64px; color: var(--l); text-transform: uppercase; }
.bm-recm-c-img .bm-recm-badge { position: absolute; top: 10px; left: 10px; }
.bm-recm-c-txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.bm-recm-c-meta { color: var(--bm-texte-rouge); font-size: 9.5px; margin: 0; }
.bm-recm-c-titre { font-family: var(--wp--preset--font-family--archivo); font-size: 19px; line-height: 1.08; text-transform: uppercase; margin: 0; }
.bm-recm-c-titre a { color: var(--n); text-decoration: none; }
.bm-recm-c-bras { margin: 0; font-size: 14px; color: #3A352F; }
.bm-recm-c-stats { margin: 4px 0 0; font-family: var(--wp--preset--font-family--space-mono); font-size: 11.5px; color: var(--g); }
.bm-recm-c--grand .bm-recm-c-img { aspect-ratio: 16 / 9; }
.bm-recm-c--grand .bm-recm-c-titre { font-size: clamp(28px, 3.4vw, 44px); line-height: .98; }
.bm-recm-c--grand .bm-recm-c-txt { padding: 16px 20px 20px; }
.bm-recm-c--ligne { flex-direction: row; }
.bm-recm-c--ligne .bm-recm-c-img { flex: 0 0 44%; aspect-ratio: auto; min-height: 150px; border-bottom: 0; border-right: 1.5px solid var(--n); }
.bm-recm-c--ligne .bm-recm-c-titre { font-size: 21px; }
/* Sections */
.bm-recm-sec { margin: 36px 0 44px; }
.bm-recm-sec-tete { display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; border-bottom: 1.5px solid var(--n); padding-bottom: 9px; margin-bottom: 18px; }
.bm-recm-sec-titre { font-family: var(--wp--preset--font-family--archivo); font-size: 26px; text-transform: uppercase; margin: 0; }
.bm-recm-sec-sous { color: var(--g); margin: 0; }
.bm-recm-sec-sous a { color: var(--bm-texte-rouge); }
.bm-recm-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bm-recm-grille > div:not(.bm-recm-c) { grid-column: 1 / -1; }
/* Une */
.bm-recm-une { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; margin: 8px 0 30px; }
.bm-recm-une-grand .bm-recm-c { box-shadow: 6px 6px 0 var(--r); }
.bm-recm-une-cote { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; }
/* Série Fermentis */
.bm-recm-fx { background: var(--n); color: var(--c); padding: 20px 22px 22px; margin: 30px 0 40px; box-shadow: 6px 6px 0 var(--v); }
.bm-recm-fx-tete { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.bm-recm-fx-tete > div { flex: 1 1 320px; }
.bm-recm-fx .bm-recm-sur { color: #8FD694; }
.bm-recm-fx-titre { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(28px, 3.6vw, 44px); text-transform: uppercase; line-height: 1; margin: 2px 0 6px; color: #fff; }
.bm-recm-fx-txt { margin: 0; color: #CFC6B6; font-size: 15px; }
.bm-recm-fx-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; background: #fff; border: 2px solid var(--v); overflow: hidden; color: var(--n); font-family: var(--wp--preset--font-family--archivo); font-size: 28px; }
.bm-recm-fx-logo img { width: 100%; height: 100%; object-fit: contain; }
.bm-recm-fx-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bm-recm-fx .bm-recm-c { border-color: var(--c); }
/* Plus consultées */
.bm-recm-duo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.bm-recm-pub { position: sticky; top: 90px; }
.bm-recm-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.bm-recm-top li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--l); color: var(--n); text-decoration: none; }
.bm-recm-top li a:hover b { color: var(--bm-texte-rouge); }
.bm-recm-rang { flex: 0 0 38px; font-family: var(--wp--preset--font-family--archivo); font-size: 34px; line-height: 1; color: var(--r); text-align: right; }
.bm-recm-top li:nth-child(-n+3) .bm-recm-rang { font-size: 42px; }
.bm-recm-top-img { flex: 0 0 56px; width: 56px; height: 56px; background: var(--c); border: 1px solid var(--n); overflow: hidden; }
.bm-recm-top-img img { width: 100%; height: 100%; object-fit: cover; }
.bm-recm-top-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bm-recm-top-txt b { font-size: 15.5px; line-height: 1.2; }
.bm-recm-top-txt small { color: var(--g); font-size: 13px; }
/* Trucs et astuces */
.bm-recm-trucs-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; }
.bm-recm-t { background: #fff; border: 1.5px solid var(--n); min-width: 0; }
.bm-recm-t a { display: flex; flex-direction: column; height: 100%; color: var(--n); text-decoration: none; }
.bm-recm-t-img { display: block; aspect-ratio: 16 / 9; background: var(--c); overflow: hidden; border-bottom: 1.5px solid var(--n); }
.bm-recm-t-img img { width: 100%; height: 100%; object-fit: cover; }
.bm-recm-t-txt { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.bm-recm-t-txt small { color: var(--bm-texte-rouge); font-size: 9.5px; }
.bm-recm-t-txt b { font-size: 16.5px; line-height: 1.25; }
.bm-recm-t:hover { box-shadow: 4px 4px 0 var(--or); }
.bm-recm-t.sans-img .bm-recm-t-txt { padding-top: 18px; border-top: 6px solid var(--or); flex: 1; }
.bm-recm-t--grand.sans-img .bm-recm-t-txt { justify-content: flex-end; border-top: 0; padding: 26px; }
.bm-recm-t--grand { grid-column: span 2; grid-row: span 2; background: var(--or); }
.bm-recm-t--grand .bm-recm-t-img { aspect-ratio: 16 / 8.4; }
.bm-recm-t--grand .bm-recm-t-txt b { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(22px, 2.6vw, 32px); text-transform: uppercase; line-height: 1.02; }
.bm-recm-t--grand .bm-recm-t-txt small { color: var(--n); }
/* Par style */
.bm-recm-styles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bm-recm-styles a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--n); background: #fff; color: var(--n); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.15; }
.bm-recm-styles b { font-family: var(--wp--preset--font-family--archivo); font-size: 26px; color: var(--r); line-height: 1; }
.bm-recm-styles a:hover { background: var(--n); color: var(--c); }
/* Radar */
.bm-recm-radar { display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; background: var(--or); border: 2px solid var(--n); box-shadow: 6px 6px 0 var(--n); padding: 20px 24px; margin: 34px 0; }
.bm-recm-radar > div { flex: 1 1 380px; }
.bm-recm-radar .bm-recm-sur { color: var(--n); }
.bm-recm-radar-titre { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; line-height: 1.02; margin: 2px 0 6px; }
.bm-recm-radar p { margin: 0; }
.bm-recm-radar .bm-recm-btn--or { background: var(--n); color: var(--or) !important; box-shadow: 3px 3px 0 #fff; }
.bm-recm-radar--compact { padding: 14px 18px; }
.bm-recm-vide { border: 2px dashed var(--n); padding: 22px; text-align: center; }
/* Page d'une recette Fermentis */
.bm-recm-fxnote { border-left: 4px solid #2E7D32; background: #EEF6EE; padding: 10px 14px; margin: 0 0 20px; font-size: 15px; }
.bm-recm-fxnote .bm-recm-badge { font-family: var(--wp--preset--font-family--space-mono); letter-spacing: .1em; text-transform: uppercase; font-size: 9px; padding: 3px 8px; background: #2E7D32; color: #fff; margin-right: 6px; }
@media (max-width: 1000px) {
.bm-recm-fx-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-recm-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bm-recm-duo { grid-template-columns: 1fr; }
.bm-recm-pub { position: static; }
}
@media (max-width: 760px) {
.bm-recm-une, .bm-recm-top { grid-template-columns: 1fr; }
.bm-recm-une-cote { padding-top: 0; }
.bm-recm-grille, .bm-recm-trucs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-recm-t--grand { grid-column: 1 / -1; grid-row: auto; }
.bm-recm-barre { flex-wrap: wrap; }
.bm-recm-champ { flex: 1 1 45%; border-bottom: 1px solid var(--l); }
.bm-recm-barre > button { flex: 1 1 100%; padding: 12px; }
.bm-recm-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
.bm-recm-grille, .bm-recm-trucs-grille, .bm-recm-fx-grille { grid-template-columns: 1fr; }
.bm-recm-c--ligne { flex-direction: column; }
.bm-recm-c--ligne .bm-recm-c-img { flex-basis: auto; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1.5px solid var(--n); }
.bm-recm-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
