/**
 * Calculators hub hero « Photo + outils phares » (inc/67-tools-hub.php). Mobile first: the photo at 16:10 with the
 * card under it; from 1024 px the photo fills the right column and the card floats over its lower-left part.
 */
.bm-hubhero { background: var(--bm-craie); border-bottom: 1px solid var(--bm-trait); }
.bm-hubhero__inner { box-sizing: border-box; display: grid; gap: 2rem; width: 100%; max-width: calc(var(--bm-wide) + 2 * var(--bm-gutter)); margin: 0 auto; padding: 24px var(--bm-gutter) 40px; align-items: start; }
.bm-hubhero__text > * { margin: 0; }
.bm-hubhero__text > * + * { margin-top: 1rem; }
.bm-hubhero .bm-tools-crumbs { margin-bottom: 1.25rem; }
.bm-hubhero__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; }
.bm-hubhero__lead { max-width: 56ch; color: var(--bm-meta); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; }
.bm-hubhero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 0; padding: 0; list-style: none; }
.bm-hubhero__facts li { display: flex; flex-direction: column; gap: 0.15rem; padding-right: 1.1rem; }
.bm-hubhero__facts li + li { padding-left: 1.1rem; border-left: 2px solid var(--bm-trait); }
.bm-hubhero__facts b { font: 900 1.8rem/1 var(--bm-heading); }
.bm-hubhero__facts li:last-child b { font-size: 1.2rem; line-height: 1.5; color: var(--bm-brique-text); }
.bm-hubhero__facts span { color: var(--bm-meta); font-size: 0.9rem; }
.bm-hubfind { margin-top: 1.5rem !important; max-width: 560px; }
.bm-hubfind.bm-search label { display: block; margin-bottom: 0.4rem; font: 800 1.05rem/1.3 var(--bm-heading); }
.bm-hubfind__status { min-height: 1.4em; margin: 0.4rem 0 0; color: var(--bm-meta); font-size: 0.9rem; }
.bm-tools-card[hidden], .bm-tools-floor[hidden] { display: none !important; }

/* Photo and the floating card of four calculators */
.bm-hubphoto { position: relative; min-width: 0; }
.bm-hubphoto__frame { margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 10; background: var(--bm-sable); box-shadow: 0 26px 44px -32px rgb(31 42 51 / 0.65); }
.bm-hubphoto__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-hubcard { box-sizing: border-box; position: relative; margin-top: 14px; padding: 0.9rem 1rem 0.4rem; border: 1px solid var(--bm-trait); border-top: 5px solid var(--bm-brique); border-radius: 14px; background: var(--bm-base); box-shadow: 0 24px 44px -26px rgb(31 42 51 / 0.6); }
.bm-hubcard__title { margin: 0 0 0.3rem; color: var(--bm-meta); font: 700 0.85rem/1.2 var(--bm-heading); }
.bm-hubcard__list { margin: 0; padding: 0; list-style: none; }
.bm-hubcard__list li + li { border-top: 1px solid var(--bm-trait); }
.bm-hubcard__list a { display: flex; align-items: center; gap: 0.75rem; min-height: 58px; padding: 0.45rem 0.4rem; margin: 0 -0.4rem; border-radius: 10px; color: var(--bm-ardoise); text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.bm-hubcard__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--bm-sable); color: var(--bm-brique-text); transition: background-color 0.15s, color 0.15s; }
.bm-hubcard__icon .bm-ticon { width: 22px; height: 22px; }
.bm-hubcard__text { display: flex; flex-direction: column; gap: 0.12rem; flex: 1 1 auto; min-width: 0; }
.bm-hubcard__text b { font: 800 0.98rem/1.2 var(--bm-heading); }
.bm-hubcard__text span { color: var(--bm-meta); font-size: 0.85rem; line-height: 1.3; }
.bm-hubcard__go { flex: none; width: 20px; height: 20px; color: var(--bm-brique-text); transition: transform 0.15s; }
.bm-hubcard__list a:hover { background: var(--bm-craie); color: var(--bm-brique-text); }
.bm-hubcard__list a:hover .bm-hubcard__icon { background: var(--bm-brique-text); color: var(--bm-base); }
.bm-hubcard__list a:hover .bm-hubcard__go { transform: translateX(3px); }
.bm-hubcard__list a:focus-visible { outline: 3px solid var(--bm-focus); outline-offset: 0; }
.bm-hubcard__all { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 46px; margin: 0.2rem -1rem 0; border-top: 1px solid var(--bm-trait); color: var(--bm-brique-text); font: 800 0.95rem/1 var(--bm-heading); text-decoration: none; }
.bm-hubcard__all svg { width: 18px; height: 18px; }
.bm-hubcard__all:hover { text-decoration: underline; }
@media (min-width: 1024px) {
	.bm-hubhero__inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: 3rem; padding-block: 28px 56px; }
	.bm-hubphoto { padding-bottom: 150px; }
	.bm-hubphoto__frame { aspect-ratio: auto; height: 440px; }
	.bm-hubcard { position: absolute; left: -28px; bottom: 0; width: min(390px, 80%); margin: 0; animation: bm-hubcard-in 0.5s ease-out both; }
	.bm-hubphoto.is-nophoto { padding-bottom: 0; }
	.bm-hubphoto.is-nophoto .bm-hubcard { position: relative; left: 0; width: auto; }
}
@keyframes bm-hubcard-in { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .bm-hubcard { animation: none; } .bm-hubcard__list a, .bm-hubcard__go, .bm-hubcard__icon { transition: none; } }
