/**
 * Travomi — calculators (inc/65-calculators.php). Loaded on /calculateurs/ and its tool pages, after the plugin's
 * base styles (travaux-calculateurs/assets/calculators.css, every colour a --tc-* variable).
 * Sections: plugin tokens · calculator card (head, steps, fields, pills, rows, actions) · result panel (dial on the
 * main result, dashboard tiles, detail, tools, devis CTA) · two-column card · article callouts · heroes (hub, tool)
 * with the « tableau de bord » panel · hub lists and tool tiles · related tools · breakpoints.
 * Mobile first; container queries follow the card width, media queries the viewport (design-system.md §7).
 */

/* ── Plugin tokens → site palette ─────────────────── */
.tc-calc {
	--tc-primary: var(--tv-contrast);
	--tc-primary-soft: var(--tv-on-dark-soft);
	--tc-secondary: var(--tv-a1);
	--tc-bg: #fff;
	--tc-surface: var(--tv-a2);
	--tc-surface-alt: var(--tv-a5);
	--tc-line: var(--tv-a6);
	--tc-field-border: #C9C6D6;
	--tc-link: var(--tv-pervenche-text);
	--tc-cta: var(--tv-a3);
	--tc-accent: var(--tv-a3);
	--tc-accent-text: var(--tv-vermillon-text);
	--tc-muted: var(--tv-a4);
	--tc-error: #B3261E;
	--tc-radius: var(--tv-radius-big);
	--tc-radius-control: var(--tv-radius);
	--tc-shadow: var(--tv-shadow-strong);
	--tc-font-head: var(--tv-head);
	--tc-font-text: var(--wp--preset--font-family--body, "Onest", Arial, sans-serif);
	--tc-head-pattern: radial-gradient(circle, rgba(174, 185, 255, .16) 1.2px, transparent 1.5px);
	--tc-head-pattern-size: 22px 22px;
	border: 0;
	scroll-margin-top: 16px;
}

/* ── Card head ────────────────────────────────────── */
.tc-calc__head { padding: 22px 20px 26px; }
.tc-calc__head::before { background: linear-gradient(90deg, var(--tv-contrast) 0%, rgba(23, 26, 61, .92) 55%, rgba(23, 26, 61, .6) 100%); }
.tc-calc__head::after { height: 6px; background: var(--tv-split); }
.tc-calc .tc-calc__badge { gap: 8px; color: var(--tv-a1); font-family: var(--tv-head); font-size: .85rem; letter-spacing: .01em; }
.tc-calc .tc-calc__badge .tv-icon { width: 18px; height: 18px; }
.tc-calc .tc-calc__title { margin: 8px 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.tc-calc .tc-calc__sub { color: var(--tv-on-dark-soft); }
.tc-calc .tc-calc__notice { border-radius: var(--tv-radius); background: var(--tv-braise); border: 0; box-shadow: inset 5px 0 0 var(--tv-a3); color: var(--tv-contrast); }
.tc-calc .tc-calc__notice::before { background: var(--tv-contrast); color: var(--tv-a3); }

/* ── Steps and fields ─────────────────────────────── */
.tc-calc__inputs { padding: 4px 18px 0; }
.tc-step { border-bottom: 1px solid var(--tv-a6); }
.tc-calc .tc-step__title { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.tc-step__num { width: 32px; height: 32px; background: var(--tv-a1); color: var(--tv-contrast); font-family: var(--tv-head); }
.tc-field > label, .tc-field > legend, .tc-rows__legend { font-family: var(--tv-head); font-weight: 600; }
.tc-field__opt { padding: 1px 8px; border-radius: 999px; background: var(--tv-a5); color: var(--tv-a4); font-family: var(--wp--preset--font-family--body); font-size: .76rem; font-weight: 600; vertical-align: 1px; }
.tc-field__control { border: 2px solid var(--tc-field-border); background: #fff; }
.tc-field__control:hover { border-color: var(--tv-a4); }
.tc-field__control:focus-within { border-color: var(--tv-contrast); box-shadow: 0 0 0 3px rgba(242, 84, 45, .35); }
.tc-field__unit { margin: 6px 6px 6px 0; padding: 0 10px; border-radius: 10px; background: var(--tv-a2); color: var(--tv-contrast); font-size: .88rem; }
.tc-calc .tc-field__control select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23171A3D' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tc-calc .tc-field__control input[type="date"] { min-width: 0; font-variant-numeric: tabular-nums; }
.tc-calc .tc-field__control input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.tc-field__help { color: var(--tv-a4); }
/* Controls of a row line up even when a label wraps on two lines. */
.tc-row__grid > .tc-field { display: flex; flex-direction: column; }
.tc-row__grid > .tc-field > label { flex: 1 0 auto; }
.tc-pills { border: 2px solid var(--tc-field-border); background: var(--tv-a5); }
.tc-pill input:checked + span { background: var(--tv-contrast); color: #fff; box-shadow: inset 0 -3px 0 var(--tv-a3); }
.tc-pill:hover span { background: var(--tv-a2); }
.tc-pill input:focus-visible + span { outline-color: var(--tv-a3); }
.tc-calc .tc-row { border: 0; border-radius: var(--tv-radius-card); background: var(--tv-a5); box-shadow: inset 0 0 0 1px var(--tv-a6); }
.tc-row__title::before { width: 10px; height: 10px; border-radius: 50%; background: var(--tv-a3); box-shadow: 8px 0 0 var(--tv-a1); margin-right: 8px; }
.tc-rows__add { border: 2px dashed var(--tv-a1); color: var(--tv-pervenche-text); font-family: var(--tv-head); }
.tc-rows__add:hover { background: var(--tv-a2); border-color: var(--tv-pervenche-text); }

/* ── Actions ──────────────────────────────────────── */
.tc-calc__btn { border-radius: var(--tv-radius); font-weight: 800; }
.tc-calc__btn--go { background: var(--tv-a3); color: var(--tv-contrast); box-shadow: 0 3px 0 #C23D1B; }
.tc-calc__btn--go:hover { background: var(--tv-on-dark-warm); }
.tc-calc__btn--go:active { box-shadow: 0 1px 0 #C23D1B; }
.tc-calc__btn--reset { border: 2px solid var(--tv-contrast); }
.tc-calc__btn--reset:hover { background: var(--tv-contrast); color: #fff; }
.tc-calc button:focus-visible, .tc-calc summary:focus-visible, .tc-calc select:focus-visible, .tc-calc a:focus-visible { outline: 3px solid var(--tv-a3); outline-offset: 2px; }
.tc-calc__errors { border: 0; border-radius: var(--tv-radius); background: var(--tv-braise); box-shadow: inset 5px 0 0 var(--tv-a3); color: #7A1C12; }

/* ── Result panel ─────────────────────────────────── */
.tc-calc__results { padding: 22px 18px 24px; border-top: 0; background: var(--tv-a2); }
.tc-calc__results::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 6px; background: var(--tv-split); }
.tc-calc .tc-calc__empty {
	display: flex; align-items: center; gap: 14px; min-height: 84px; margin: 0; padding: 14px 16px; border-radius: var(--tv-radius-card);
	background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(174, 185, 255, .6); color: var(--tv-a4); font-weight: 500;
}
.tc-calc .tc-calc__empty::before {
	content: ""; flex: none; width: 44px; height: 44px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='3' width='32' height='42' rx='7' fill='%23171A3D'/%3E%3Crect x='13' y='8' width='22' height='10' rx='3' fill='%23AEB9FF'/%3E%3Crect x='13' y='23' width='6' height='6' rx='1.5' fill='%23fff'/%3E%3Crect x='21' y='23' width='6' height='6' rx='1.5' fill='%23fff'/%3E%3Crect x='29' y='23' width='6' height='6' rx='1.5' fill='%23F2542D'/%3E%3Crect x='13' y='32' width='6' height='6' rx='1.5' fill='%23fff'/%3E%3Crect x='21' y='32' width='6' height='6' rx='1.5' fill='%23fff'/%3E%3Crect x='29' y='32' width='6' height='6' rx='1.5' fill='%23F2542D'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Main result: night card (« le résultat d’abord »). */
.tc-calc__key {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 14px; padding: 18px 20px 20px;
	border-radius: var(--tv-radius-card); background: var(--tv-contrast); color: #fff; box-shadow: var(--tv-shadow); overflow: hidden;
}
.tc-calc__key::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 5px; border-radius: 5px 5px 0 0; background: var(--tv-split); }
.tc-calc .tc-calc__key-label { color: var(--tv-on-dark-soft); font-family: var(--tv-head); font-weight: 600; font-size: .95rem; }
.tc-calc .tc-calc__key-value { color: #fff; font-family: var(--tv-head); font-weight: 800; letter-spacing: -0.03em; }
.tc-calc .tc-calc__key-value.is-long { font-size: clamp(1.3rem, 5.5cqi, 1.75rem); line-height: 1.2; }
.tc-calc__key-value::after { display: none; }
/* Other results: dashboard tiles. */
.tc-calc .tc-calc__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; background: none; box-shadow: none; }
.tc-calc__item { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 12px 14px; border: 0 !important; border-radius: var(--tv-radius); background: #fff; box-shadow: 0 2px 8px rgba(23, 26, 61, .05); }
.tc-calc .tc-calc__item dt { gap: 8px; font-size: .88rem; color: var(--tv-a4); font-weight: 500; }
.tc-calc .tc-calc__item dd { margin: 0; padding-left: 36px; text-align: left; font-family: var(--tv-head); font-size: 1.08rem; font-weight: 700; color: var(--tv-contrast); }
.tc-calc .tc-calc__item dd { box-sizing: border-box; max-width: 100%; flex-basis: auto; }
.tc-calc__item.is-wide dd { width: 100%; padding-left: 0; margin-left: 0; font-family: var(--wp--preset--font-family--body); font-size: .98rem; font-weight: 600; line-height: 1.45; }
.tc-calc__icon { width: 28px; height: 28px; padding: 5px; background: var(--tv-a2); color: var(--tv-pervenche-text); box-shadow: none; }
.tc-calc__detail { border: 0; border-radius: var(--tv-radius); box-shadow: 0 2px 8px rgba(23, 26, 61, .05); }
.tc-calc__detail summary { color: var(--tv-contrast); font-family: var(--tv-head); }
.tc-calc__detail summary::before { color: var(--tv-a3); }
.tc-calc .tc-calc__detail-list li { padding-left: 14px; position: relative; }
.tc-calc .tc-calc__detail-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--tv-a1); }
.tc-calc .tc-calc__note { color: var(--tv-a4); }
.tc-calc__tools { gap: 8px; }
.tc-calc__tool { border: 2px solid var(--tv-contrast); border-radius: var(--tv-radius); font-family: var(--tv-head); font-weight: 600; }
.tc-calc__tool:hover { background: #fff; border-color: var(--tv-pervenche-text); }
.tc-calc .tc-calc__devis { flex: 1 1 100%; order: -1; min-height: 52px; text-decoration: none; }
.tc-calc .tc-calc__devis .tv-icon { width: 20px; height: 20px; }
.tc-calc__results.is-stale .tc-step__title::after { color: var(--tv-vermillon-text); }

/* ── Wider card ───────────────────────────────────── */
@container (min-width: 560px) {
	.tc-calc__head { padding: 26px 30px 30px; }
	.tc-calc__inputs { padding: 6px 30px 0; }
	.tc-calc__results { padding: 26px 30px 28px; }
	.tc-calc .tc-calc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
	.tc-calc__item:nth-child(2) { border-top: 0; }
	.tc-calc .tc-calc__devis { flex: 0 0 auto; order: 0; }
	.tc-calc__key { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
}
/* Two columns: the form on the left, the result panel on the right. */
@container (min-width: 900px) {
	.tc-calc__form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
	.tc-calc__results { border-left: 1px solid var(--tv-a6); }
	.tc-calc__results::before { left: 0; top: 0; bottom: 0; right: auto; width: 6px; height: auto; }
	.tc-calc__results > * { position: relative; }
	.tc-calc .tc-calc__list { grid-template-columns: minmax(0, 1fr); }
	.tc-calc__key { grid-template-columns: minmax(0, 1fr); }
	.tc-calc .tc-calc__devis { flex: 1 1 100%; order: -1; }
}

/* ── Tool page layout ─────────────────────────────── */
.tv-article--calc { padding-top: 8px; }
.tv-calc-content > .tc-calc { max-width: 1080px; margin: -40px auto 3rem !important; }
.tv-calc-content > .tc-calc + * { margin-top: 0; }
/* Phones and tablets: the card uses the full width of the site gutter (the content's global padding is dropped for it). */
@media (max-width: 1023px) {
	.tv-calc-content.has-global-padding > .tc-calc { margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important; margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important; max-width: none; }
}
.tv-article--calc .tv-devis--card .tv-devis__inner { margin-top: 48px; }
/* Callouts of the calculator articles (class tv-callout, data/calculateurs/content/*.json). */
.tv-callout { position: relative; margin-block: 1.6em; padding: 18px 22px 18px 24px; border-radius: var(--tv-radius-card); }
.tv-callout > * { margin-block: 0; }
.tv-callout > * + * { margin-top: 8px; }
.tv-callout--info { background: var(--tv-a2); }
.tv-callout--warn { background: var(--tv-braise); box-shadow: inset 5px 0 0 var(--tv-a3); }
.tv-callout--tip { background: #fff; box-shadow: inset 5px 0 0 var(--tv-a1), var(--tv-shadow); }
.tv-callout ul, .tv-callout ol { padding-left: 1.2em; }

/* ── Heroes ───────────────────────────────────────── */
.tv-phero--calchub, .tv-phero--calc { position: relative; overflow: hidden; background: var(--tv-dots), linear-gradient(180deg, var(--tv-a2) 0%, var(--tv-a2) 50%, var(--tv-a5) 100%); padding-bottom: 56px; }
.tv-phero--calc { padding-bottom: 88px; }
.tv-phero--calchub .tv-phero__text > .tv-catchip { margin-bottom: 16px; }
.tv-phero--calchub .tv-catnav { margin-top: 24px; }
.tv-phero--calc .tv-phero__actions, .tv-phero--calchub .tv-phero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.tv-cpromises { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tv-cpromises li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.tv-cpromises .tv-icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tv-contrast); color: var(--tv-a1); flex: none; box-sizing: border-box; }
.tv-cfacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tv-cfacts li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--tv-a6); font-size: .9rem; font-weight: 600; }
.tv-cfacts .tv-icon { width: 18px; height: 18px; color: var(--tv-pervenche-text); }

/* « Le tableau de bord » panel (hub and tool heroes). */
.tv-cboard { position: relative; box-sizing: border-box; min-width: 0; padding: 22px 18px 20px; border-radius: var(--tv-radius-big); background: var(--tv-contrast); color: #fff; box-shadow: var(--tv-shadow-strong); overflow: hidden; }
.tv-cboard::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; border-radius: 0 0 5px 5px; background: var(--tv-split); }
.tv-cboard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(174, 185, 255, .1) 1.2px, transparent 1.5px) 0 0 / 22px 22px; pointer-events: none; }
.tv-cboard > * { position: relative; z-index: 1; }
.tv-cboard__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--tv-head); font-weight: 800; font-size: 1.05rem; }
.tv-cboard__mark { width: 30px; height: 30px; flex: none; }
.tv-cboard__result { display: grid; justify-items: center; padding: 14px 12px 16px; border-radius: 20px; background: var(--tv-panel); box-shadow: inset 0 0 0 1px var(--tv-panel-line); text-align: center; }
.tv-cboard__value { margin: 4px 0 0; font-family: var(--tv-head); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.tv-cboard__label { margin: 6px 0 0; color: var(--tv-on-dark-soft); font-weight: 600; }
.tv-cboard__key { margin: 8px 0 0; font-family: var(--tv-head); font-weight: 800; font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); line-height: 1.25; text-wrap: balance; }
.tv-cboard__unit { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--tv-a3); color: var(--tv-contrast); font-size: .85rem; vertical-align: 3px; letter-spacing: 0; }
.tv-cboard__fams, .tv-cboard__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tv-cboard__fam { display: grid; gap: 4px; align-content: start; height: 100%; box-sizing: border-box; min-height: 44px; padding: 12px; border-radius: 16px; background: var(--tv-panel); box-shadow: inset 0 0 0 1px var(--tv-panel-line); color: #fff; text-decoration: none; transition: box-shadow .15s ease, background-color .15s ease; }
.tv-cboard__fam:hover { background: #2B3070; box-shadow: inset 0 0 0 1px var(--tv-a1); color: #fff; }
.tv-cboard__famicon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(174, 185, 255, .16); color: var(--tv-a1); }
.tv-cboard__famicon .tv-icon { width: 20px; height: 20px; }
.tv-cboard__famname { font-family: var(--tv-head); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.tv-cboard__famcount { color: var(--tv-on-dark-warm); font-size: .82rem; font-weight: 700; }
.tv-cboard__tiles .tv-ctile { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--tv-panel); box-shadow: inset 0 0 0 1px var(--tv-panel-line); font-size: .86rem; line-height: 1.3; color: var(--tv-on-dark-soft); }
.tv-ctile__unit { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: rgba(174, 185, 255, .18); color: #fff; font-size: .78rem; font-weight: 700; }
.tv-cboard__steps { margin: 12px 0 0; font-size: .86rem; line-height: 1.45; color: var(--tv-on-dark-soft); }
.tv-cboard__steps strong { display: block; color: #fff; font-family: var(--tv-head); font-weight: 700; margin-bottom: 2px; }

/* ── Hub lists and tool tiles ─────────────────────── */
.tv-chubs { padding-block: 24px 8px; }
.tv-chub { margin: 0 0 44px; scroll-margin-top: 24px; }
.tv-chub__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.tv-chub__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tv-contrast); color: var(--tv-a1); flex: none; }
.tv-chub__icon .tv-icon { width: 24px; height: 24px; }
.tv-chub__title { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; }
.tv-chub__count { padding: 4px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--tv-a6); font-size: .85rem; font-weight: 600; color: var(--tv-a4); }
.tv-chub__link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-family: var(--tv-head); font-weight: 600; text-underline-offset: 3px; }
.tv-ctools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tv-ctools > li { display: flex; min-width: 0; margin: 0; }
.tv-ctool { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; width: 100%; box-sizing: border-box; padding: 18px 18px 18px 16px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); border-top: 4px solid var(--tv-a1); transition: box-shadow .2s ease, transform .2s ease; }
.tv-ctool:hover { box-shadow: var(--tv-shadow-strong); }
.tv-ctool:focus-within { outline: 3px solid var(--tv-a3); outline-offset: 2px; }
.tv-ctool__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tv-a2); color: var(--tv-pervenche-text); }
.tv-ctool__icon .tv-icon { width: 24px; height: 24px; }
.tv-ctool__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 36px; }
.tv-ctool__title { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.tv-ctool__title a { color: var(--tv-contrast); text-decoration: none; }
.tv-ctool__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tv-ctool__title a:focus-visible { outline: none; }
.tv-ctool__text { margin: 0; color: var(--tv-a4); font-size: .95rem; line-height: 1.5; }
.tv-ctool__out { margin: 0; font-size: .88rem; font-weight: 600; line-height: 1.4; }
.tv-ctool__out span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--tv-braise); color: var(--tv-vermillon-text); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tv-ctool__go { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--tv-contrast); color: #fff; font-family: var(--tv-head); font-weight: 700; font-size: .85rem; transition: background-color .15s ease, color .15s ease; }
.tv-ctool:hover .tv-ctool__go { background: var(--tv-a3); color: var(--tv-contrast); }
.tv-article--calchub { padding-top: 8px; }
.tv-article--calchub .tv-prose > h2:first-child { margin-top: .8em; }

/* ── Related tools ────────────────────────────────── */
.tv-crelated { padding-top: 8px; }

/* ── Breakpoints ──────────────────────────────────── */
@media (min-width: 600px) {
	.tv-ctools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-cboard { padding: 26px 24px 24px; }
	.tv-cboard__fams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tv-phero--calc .tv-cboard__fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.tv-phero--calchub, .tv-phero--calc { padding-bottom: 72px; }
	.tv-phero--calc { padding-bottom: 104px; }
	.tv-phero--calchub .tv-phero__grid, .tv-phero--calc .tv-phero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.tv-cboard { max-width: 520px; justify-self: end; width: 100%; }
	.tv-cboard__fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-ctools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
	.tv-chubs { padding-top: 40px; }
	.tv-calc-content > .tc-calc { margin-top: -64px !important; }
}
@media (min-width: 1440px) {
	.tv-cboard { max-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ── Hub « Exemple de calcul » card (tv_calc_preview): labels and units of real tools, empty fields ── */
.tv-cprev .tv-cboard__head .tv-icon { width: 22px; height: 22px; color: var(--tv-a1); }
.tv-cprev .tv-cboard__head .tv-pill { margin-left: auto; background: rgba(174, 185, 255, .2); color: #fff; }
.tv-cprev__slide { padding: 16px; border-radius: 18px; background: #fff; color: var(--tv-contrast); }
.tv-cprev__slide[hidden] { display: none; }
.tv-cprev__name { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--tv-head); font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.tv-cprev__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tv-a2); color: var(--tv-pervenche-text); }
.tv-cprev__icon .tv-icon { width: 22px; height: 22px; }
.tv-cprev__fields { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tv-cprev__field { display: grid; gap: 4px; }
.tv-cprev__label { font-size: .82rem; font-weight: 700; font-family: var(--tv-head); }
.tv-cprev__input { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--tv-a6); color: #7B7F98; font-size: .9rem; }
.tv-cprev__input b { color: var(--tv-contrast); font-size: .82rem; }
.tv-cprev__result { display: grid; gap: 2px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tv-braise); }
.tv-cprev__result span { font-size: .78rem; font-weight: 700; color: var(--tv-vermillon-text); }
.tv-cprev__result strong { font-family: var(--tv-head); font-size: 1rem; }
.tv-cprev__go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-family: var(--tv-head); font-weight: 700; color: var(--tv-pervenche-text); }
.tv-cprev__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tv-cprev__nav .tv-iconbtn { background: rgba(255, 255, 255, .1); color: #fff; }
.tv-cprev__nav .tv-iconbtn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.tv-cprev__dots { display: flex; gap: 4px; }
.tv-cprev__dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.tv-cprev__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.tv-cprev__dot[aria-current]::before { background: var(--tv-a3); width: 22px; margin-left: -11px; border-radius: 5px; }
