/**
 * Travomi — site stylesheet (child of Twenty Twenty-Five).
 * Tokens mirror theme.json (preset vars are the source of truth); class prefix « tv- ».
 * Breakpoints (docs/design/design-system.md §7): mobile < 600 · tablet 600–1023 · laptop 1024–1439 · desktop ≥ 1440.
 * Mobile first: base rules are for phones, media queries add up.
 * Sections: tokens · base · layout · buttons · chips, category nav, tabs · search · cards · heroes · article
 * & prose · block styles · dial · devis · listing & pagination · empty · 404 · footer · breakpoints · motion.
 * The menu « Le tableau de bord » is in menu.css, the homepage in home.css.
 */

/* ── Tokens ───────────────────────────────────────── */
:root {
	--tv-base: #FFFFFF;
	--tv-contrast: #171A3D;
	--tv-a1: #AEB9FF;
	--tv-a2: #ECEFFF;
	--tv-a3: #F2542D;
	--tv-a4: #565A77;
	--tv-a5: #FBF8F4;
	--tv-a6: #E6E3EE;
	--tv-vermillon-text: #BD3412;
	--tv-pervenche-text: #3F4FCB;
	--tv-braise: #FFE6DD;
	--tv-on-dark-warm: #FF8A66;
	--tv-on-dark-soft: #CDD2F5;
	--tv-radius: 14px;
	--tv-radius-card: 18px;
	--tv-radius-big: 28px;
	--tv-shadow: 0 10px 30px rgba(23, 26, 61, .08);
	--tv-shadow-strong: 0 24px 60px rgba(23, 26, 61, .14);
	--tv-split: linear-gradient(90deg, var(--tv-a3), var(--tv-a1));
	--tv-gutter: 16px;
	--tv-focus: var(--tv-a3);
	--tv-head: var(--wp--preset--font-family--heading, "Parkinsans", Arial, sans-serif);
	--tv-panel: #22265A;
	--tv-panel-line: rgba(174, 185, 255, .16);
	--tv-dots: radial-gradient(circle, rgba(23, 26, 61, .09) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
	--tv-bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 .75H44M0 11.75H44M.75 0v11M22.75 11v11' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") 0 0 / 44px 22px;
}

/* ── Base ─────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; background: var(--tv-a5); }
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
table, .wp-block-table, .tv-num { font-variant-numeric: tabular-nums; }
img { height: auto; max-width: 100%; }
:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--tv-focus);
	outline-offset: 2px;
	border-radius: 4px;
}
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tv-icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
html:not(.tv-js) .tv-js-only, html.tv-js .tv-nojs-only { display: none !important; }

/* ── Layout ───────────────────────────────────────── */
.tv-wrap { box-sizing: border-box; width: 100%; max-width: calc(1240px + 2 * var(--tv-gutter)); margin-inline: auto; padding-inline: var(--tv-gutter); }
.tv-main { min-height: 50vh; }
.tv-main > *, .tv-main .tv-wrap > *:first-child { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.tv-section { padding-block: 56px; }
.tv-section__head { max-width: 680px; margin-bottom: 28px; }
.tv-section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tv-section__title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.tv-section__lead { margin: 12px 0 0; color: var(--tv-a4); font-size: 1.05rem; }
.tv-section__link { margin: 0; }
.tv-section__link a { font-family: var(--tv-head); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* ── Buttons ──────────────────────────────────────── */
.tv-btn, .is-style-tv-cta .wp-block-button__link, .is-style-tv-ghost .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: var(--tv-radius); border: 2px solid transparent;
	font-family: var(--tv-head); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
	cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tv-btn--primary { background: var(--tv-contrast); color: #fff; }
.tv-btn--primary:hover { background: var(--tv-a3); color: var(--tv-contrast); }
.tv-btn--cta, .is-style-tv-cta .wp-block-button__link { background: var(--tv-a3); color: var(--tv-contrast); }
.tv-btn--cta:hover, .is-style-tv-cta .wp-block-button__link:hover { background: var(--tv-on-dark-warm); color: var(--tv-contrast); }
.tv-btn--cool { background: var(--tv-a1); color: var(--tv-contrast); }
.tv-btn--cool:hover { background: var(--tv-a2); color: var(--tv-contrast); }
.tv-btn--ghost, .is-style-tv-ghost .wp-block-button__link { background: transparent; color: var(--tv-contrast); border-color: var(--tv-contrast); }
.tv-btn--ghost:hover, .is-style-tv-ghost .wp-block-button__link:hover { background: var(--tv-contrast); color: #fff; }
.tv-btn--light { background: #fff; color: var(--tv-contrast); }

/* ── Chips, category nav, tabs ─────────────── */
.tv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.tv-catchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--tv-a6); color: var(--tv-contrast); font-family: var(--tv-head); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease; }
.tv-catchip .tv-icon { width: 20px; height: 20px; color: var(--tv-pervenche-text); }
a.tv-catchip:hover { background: var(--tv-a2); box-shadow: inset 0 0 0 1px var(--tv-a1); color: var(--tv-contrast); }
.tv-catchip[aria-current] { background: var(--tv-contrast); color: #fff; box-shadow: none; }
.tv-catchip[aria-current] .tv-icon { color: var(--tv-a1); }
.tv-catchip--solid { margin: 0; background: var(--tv-contrast); color: #fff; box-shadow: none; min-height: 36px; font-weight: 700; font-size: .9rem; }
.tv-catchip--solid .tv-icon { color: var(--tv-a1); }
a.tv-catchip--solid:hover { background: var(--tv-pervenche-text); color: #fff; box-shadow: none; }
a.tv-catchip--solid:hover .tv-icon { color: #fff; }
.tv-catchip__count { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--tv-a5); color: var(--tv-a4); font-family: var(--wp--preset--font-family--body); font-size: .78rem; font-weight: 600; }
.tv-catchip[aria-current] .tv-catchip__count { background: rgba(255, 255, 255, .14); color: #fff; }
.tv-catnav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
[data-inactive] { display: none; }
html:not(.tv-js) [data-inactive] { display: block; }

/* ── Search form ──────────────────────────────────── */
.tv-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.tv-search__label { flex: 1 0 100%; font-family: var(--tv-head); font-weight: 600; font-size: .95rem; }
.tv-search__field { position: relative; flex: 1 1 200px; min-width: 0; }
.tv-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--tv-a4); pointer-events: none; }
.tv-search input[type="search"] {
	box-sizing: border-box; width: 100%; height: 52px; padding: 0 14px 0 46px; border: 2px solid var(--tv-a6); border-radius: var(--tv-radius);
	background: #fff; color: var(--tv-contrast); font: 400 1.0625rem/1 var(--wp--preset--font-family--body, "Onest", Arial, sans-serif);
	-webkit-appearance: none; appearance: none;
}
.tv-search input[type="search"]::placeholder { color: #7B7F98; }
.tv-search input[type="search"]:focus { border-color: var(--tv-contrast); outline: none; box-shadow: 0 0 0 3px rgba(242, 84, 45, .35); }
.tv-search__btn { height: 52px; flex: none; }

/* ── Cards ────────────────────────────────────────── */
.tv-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tv-cards > li { margin: 0; display: flex; min-width: 0; }
.tv-card { position: relative; display: flex; flex-direction: column; width: 100%; margin: 0; background: #fff; border-radius: var(--tv-radius-card); box-shadow: var(--tv-shadow); overflow: hidden; border-top: 4px solid var(--tv-a1); transition: box-shadow .2s ease; }
.tv-card:hover { box-shadow: var(--tv-shadow-strong); }
.tv-card__media { margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tv-a2); }
.tv-card__media img, .tv-card__img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.tv-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 22px 22px; }
.tv-card__body > * { margin: 0 !important; }
.tv-card__cat { display: flex; align-items: center; gap: 6px; font-family: var(--tv-head); font-weight: 700; font-size: .85rem; color: var(--tv-pervenche-text); position: relative; z-index: 2; }
.tv-card__cat .tv-icon { width: 18px; height: 18px; }
.tv-card__cat a { color: var(--tv-pervenche-text); text-decoration: none; display: inline-block; padding: 2px 0; }
.tv-card__cat a:hover { text-decoration: underline; }
.tv-card__cat .wp-block-post-terms__separator { display: none; }
.tv-card__cat a + a, .tv-card__cat a + .wp-block-post-terms__separator + a { display: none; }
.tv-card__title { font-size: 1.2rem !important; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.tv-card__title a { color: var(--tv-contrast); text-decoration: none; }
.tv-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tv-card:hover .tv-card__title a { text-decoration: underline; text-decoration-color: var(--tv-a3); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tv-card__excerpt, .tv-card__excerpt p { color: var(--tv-a4); font-size: .97rem; line-height: 1.55; margin: 0; }
.tv-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tv-card__time, .tv-card__time .tv-readtime { margin: auto 0 0 !important; padding-top: 4px; font-size: .85rem; color: var(--tv-a4); }
.tv-card .tv-readtime { margin: 0; }

/* ── Heroes (post, page, blog, search) ────────────── */
.tv-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .875rem; color: var(--tv-a4); }
.tv-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.tv-crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--tv-a4); opacity: .6; }
.tv-crumbs a { color: var(--tv-a4); min-height: 44px; display: inline-flex; align-items: center; }
.tv-crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.tv-phero { padding: 24px 0 48px; background: var(--tv-a5); }
.tv-phero__text h1, .tv-phero__title { margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; font-weight: 800; }
.tv-lead { margin: 16px 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--tv-a4); max-width: 680px; }
.tv-phero .tv-chero__count, .tv-paged { margin: 16px 0 0; }
.tv-phero .tv-catnav, .tv-phero .tv-search { margin-top: 24px; }
.tv-phero--search .tv-search, .tv-404 .tv-search { max-width: 640px; }
.tv-readtime { margin: 16px 0 0; font-size: .95rem; color: var(--tv-a4); display: flex; align-items: center; gap: 8px; }
.tv-phero--post .tv-readtime::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--tv-split); }
.tv-phero--post { background: var(--tv-dots), linear-gradient(180deg, var(--tv-a2) 0%, var(--tv-a2) 55%, var(--tv-a5) 100%); padding-bottom: 72px; }
.tv-phero__grid { display: grid; gap: 28px; align-items: center; }
.tv-phero__media { margin: 0 !important; border-radius: var(--tv-radius-card); overflow: hidden; box-shadow: var(--tv-shadow); }
.tv-phero__media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.tv-phero--page { padding-bottom: 40px; background: linear-gradient(180deg, #fff, var(--tv-a5)); }
.tv-phero--blog, .tv-phero--search { position: relative; overflow: hidden; }
.tv-phero--blog::after, .tv-phero--search::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 360px; height: 300px; background: var(--tv-bricks), var(--tv-a2); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); opacity: .7; pointer-events: none; }
.tv-phero--blog .tv-wrap, .tv-phero--search .tv-wrap { position: relative; z-index: 1; }

/* Category hero */
.tv-chero { padding: 24px 0 48px; background: var(--tv-dots), linear-gradient(180deg, var(--tv-a2), var(--tv-a5)); position: relative; overflow: hidden; }
.tv-chero__grid { display: grid; gap: 28px; align-items: center; }
.tv-chero__title { margin: 16px 0 0; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
.tv-chero__desc { margin: 14px 0 0; max-width: 640px; font-size: 1.1rem; color: var(--tv-contrast); }
.tv-chero__count { margin: 14px 0 0; font-family: var(--tv-head); font-weight: 700; color: var(--tv-contrast); }
.tv-chero__visual { position: relative; }
.tv-chero__photo { position: relative; margin: 0 0 24px 0; }
.tv-chero__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tv-radius-big); box-shadow: var(--tv-shadow-strong); }
.tv-chero__count { display: grid; justify-items: center; gap: 2px; box-sizing: border-box; width: 150px; padding: 14px 14px 12px; border-radius: 20px; background: var(--tv-contrast); color: #fff; box-shadow: var(--tv-shadow-strong); text-align: center; }
.tv-chero__photo .tv-chero__count { position: absolute; left: 14px; bottom: -24px; }
.tv-chero__count-value { margin: 4px 0 0; font-family: var(--tv-head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.tv-chero__count-label { margin: 0; font-size: .82rem; color: var(--tv-on-dark-soft); }
.tv-chero__solo { display: flex; align-items: center; gap: 16px; }
.tv-chero__badge { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; background: #fff; color: var(--tv-pervenche-text); box-shadow: var(--tv-shadow); }
.tv-chero__badge .tv-icon { width: 44px; height: 44px; }
.tv-chero__sub { margin: 0 0 14px; font-family: var(--tv-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.tv-chero__topics-wrap { margin-top: 40px; }
.tv-chero__topics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tv-ctopic { padding: 20px 20px 16px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); border-top: 4px solid var(--tv-a1); }
.tv-ctopic__label { margin: 0; font-family: var(--tv-head); font-weight: 800; font-size: 1.12rem; }
.tv-ctopic__theme { margin: 6px 0 0; font-size: .92rem; line-height: 1.5; color: var(--tv-a4); }
.tv-ctopic__guides, .tv-pillars { display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px dashed var(--tv-a6); font-size: .9rem; line-height: 1.4; }
.tv-ctopic__guides li, .tv-pillars li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tv-ctopic__guides a, .tv-pillars a { color: var(--tv-contrast); font-weight: 500; }
.tv-ctopic__guides .is-soon span, .tv-pillars .is-soon span { color: var(--tv-a4); }
.tv-ctopic__guides em, .tv-pillars em, .tv-footer__soon em { flex: none; font-style: normal; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--tv-a5); color: var(--tv-a4); box-shadow: inset 0 0 0 1px var(--tv-a6); }
.tv-chero__nav { margin-top: 40px; }

/* ── Article and prose ────────────────────────────── */
.tv-article { padding-bottom: 72px; }
.tv-brief { position: relative; z-index: 2; box-sizing: border-box; max-width: 740px; margin: -40px auto 40px; padding: 22px 24px 22px; border-radius: var(--tv-radius-card); background: var(--tv-a2); box-shadow: var(--tv-shadow); overflow: hidden; }
.tv-brief::before, .is-style-tv-brief::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tv-split); }
.tv-brief__label, .is-style-tv-brief > .tv-brief__label { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px !important; font-family: var(--tv-head); font-weight: 800; font-size: .95rem; color: var(--tv-contrast); }
.tv-brief__label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, var(--tv-a3) 50%, var(--tv-a1) 50%); }
.tv-brief__text { margin: 0; font-size: 1.1rem; line-height: 1.6; font-weight: 500; }
.tv-article__main > .tv-prose:first-child { padding-top: 40px; }
.tv-prose { font-size: 1.0625rem; }
.tv-prose > * { max-width: 740px; }
.tv-prose h2 { margin-top: 2.2em; margin-bottom: .6em; position: relative; padding-top: 18px; }
.tv-prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 5px; border-radius: 3px; background: var(--tv-split); }
.tv-prose h3 { margin-top: 1.8em; margin-bottom: .5em; }
.tv-prose a:not(.wp-element-button):not(.tv-btn) { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tv-prose a:not(.wp-element-button):not(.tv-btn):hover { text-decoration-thickness: 2px; }
.tv-prose ul:not([class*="is-style"]) li::marker { color: var(--tv-a3); }
.tv-prose ol:not([class*="is-style"]) li::marker { color: var(--tv-pervenche-text); font-family: var(--tv-head); font-weight: 700; }
.tv-prose img { border-radius: var(--tv-radius-card); }
.tv-prose figcaption, .tv-prose .wp-element-caption, .wp-block-table figcaption { margin-top: 14px; padding-inline: 4px; font-size: .88rem; line-height: 1.5; color: var(--tv-a4); text-align: left; }
.tv-prose strong { font-weight: 650; }
.tv-prose blockquote, .is-style-tv-quote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--tv-a1); font-size: 1.15rem; }
.tv-prose hr, .wp-block-separator.is-style-tv-dial-line { border: 0; height: 5px; border-radius: 3px; background: var(--tv-split); opacity: 1; max-width: 120px; margin: 2.4em 0; }

/* Tables: every table in a post, and the explicit style */
.tv-prose .wp-block-table, .tv-prose figure:has(table), .is-style-tv-table { margin-block: 1.8em; }
.tv-prose .wp-block-table table, .tv-prose table, .is-style-tv-table table, .tv-table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--tv-a6); border-top-color: var(--tv-contrast); border-radius: var(--tv-radius); overflow: hidden; box-shadow: var(--tv-shadow); font-size: .95rem; }
.tv-prose .wp-block-table th, .tv-prose table th, .is-style-tv-table th, .tv-table th { background: var(--tv-contrast); color: #fff; font-family: var(--tv-head); font-weight: 700; text-align: left; padding: 13px 16px; border: 0; }
.tv-prose .wp-block-table th + th, .tv-prose table th + th, .is-style-tv-table th + th, .tv-table th + th { border-left: 1px solid rgba(255, 255, 255, .15); }
.tv-prose .wp-block-table td, .tv-prose table td, .is-style-tv-table td, .tv-table td { padding: 12px 16px; border: 0; border-top: 1px solid var(--tv-a6); vertical-align: top; }
.tv-prose .wp-block-table td + td, .tv-prose table td + td, .is-style-tv-table td + td, .tv-table td + td { border-left: 1px solid var(--tv-a6); }
.tv-prose .wp-block-table tbody tr:nth-child(even) td, .tv-prose table tbody tr:nth-child(even) td, .is-style-tv-table tbody tr:nth-child(even) td, .tv-table tbody tr:nth-child(even) td { background: var(--tv-a5); }
.tv-prose .wp-block-table td:not(:first-child), .tv-prose table td:not(:first-child), .is-style-tv-table td:not(:first-child), .tv-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.tv-prose .wp-block-table thead, .tv-prose table thead, .is-style-tv-table thead, .tv-table thead { border: 0; }

/* ── Block styles (inc/60-block-styles.php) ───────── */
.is-style-tv-brief { position: relative; overflow: hidden; padding: 22px 24px !important; border-radius: var(--tv-radius-card); background: var(--tv-a2); }
.is-style-tv-brief > * { margin-block: 0 !important; }
.is-style-tv-brief > * + * { margin-top: 6px !important; }
.is-style-tv-note, .is-style-tv-warning, .is-style-tv-tip { position: relative; padding: 18px 22px 18px 24px !important; border-radius: var(--tv-radius-card); margin-block: 1.6em; }
.is-style-tv-note > *, .is-style-tv-warning > *, .is-style-tv-tip > * { margin-block: 0 !important; }
.is-style-tv-note > * + *, .is-style-tv-warning > * + *, .is-style-tv-tip > * + * { margin-top: 6px !important; }
.is-style-tv-note { background: var(--tv-a2); }
.is-style-tv-warning { background: var(--tv-braise); box-shadow: inset 5px 0 0 var(--tv-a3); }
.is-style-tv-tip { background: #fff; box-shadow: inset 5px 0 0 var(--tv-a1), var(--tv-shadow); }
.tv-callout__title { font-family: var(--tv-head); font-weight: 800; font-size: 1rem; }
.is-style-tv-warning .tv-callout__title { color: var(--tv-vermillon-text); }
.is-style-tv-tip .tv-callout__title, .is-style-tv-note .tv-callout__title { color: var(--tv-pervenche-text); }
.is-style-tv-card { padding: 24px !important; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); }
ul.is-style-tv-checks, .tv-checks { list-style: none; padding-left: 0; }
ul.is-style-tv-checks li { position: relative; padding-left: 32px; margin-block: .4em; }
ul.is-style-tv-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--tv-a2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F4FCB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tv-checks { margin: 20px 0 0; display: grid; gap: 10px; }
.tv-checks li { display: flex; gap: 10px; align-items: flex-start; }
.tv-checks .tv-icon { color: var(--tv-pervenche-text); width: 22px; height: 22px; margin-top: 2px; }
ol.is-style-tv-steps { list-style: none; counter-reset: tvstep; padding-left: 0; }
ol.is-style-tv-steps > li { counter-increment: tvstep; position: relative; padding-left: 52px; min-height: 36px; margin-block: 1em; }
ol.is-style-tv-steps > li::before { content: counter(tvstep); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tv-contrast); color: #fff; font-family: var(--tv-head); font-weight: 800; font-size: .95rem; }
.wp-block-columns.is-style-tv-compare { gap: 16px; }
.is-style-tv-compare > .wp-block-column { padding: 22px 22px 18px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); border-top: 6px solid var(--tv-a3); }
.is-style-tv-compare > .wp-block-column + .wp-block-column { border-top-color: var(--tv-a1); }
.is-style-tv-compare > .wp-block-column > :first-child { margin-top: 0; }
details.is-style-tv-faq, .tv-faq details { background: #fff; border-radius: 16px; box-shadow: var(--tv-shadow); margin: 0 0 12px; padding: 0; }
details.is-style-tv-faq summary { position: relative; list-style: none; cursor: pointer; min-height: 56px; box-sizing: border-box; display: flex; align-items: center; padding: 14px 56px 14px 22px; font-family: var(--tv-head); font-weight: 700; font-size: 1.08rem; line-height: 1.35; border-radius: 16px; }
details.is-style-tv-faq summary::-webkit-details-marker { display: none; }
details.is-style-tv-faq summary::before, details.is-style-tv-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 3px; border-radius: 2px; background: var(--tv-a3); transition: transform .2s ease; }
details.is-style-tv-faq summary::after { transform: rotate(90deg); background: var(--tv-a1); }
details.is-style-tv-faq[open] summary::after { transform: rotate(0deg); opacity: 0; }
details.is-style-tv-faq > :not(summary) { margin: 0; padding: 0 22px 20px; color: var(--tv-contrast); }

/* ── Dial ─────────────────────────────────────────── */

/* ── Devis ────────────────────────────────────────── */
.tv-devis__title { margin: 0; font-family: var(--tv-head); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.025em; }
.tv-devis__text > p:not(.tv-devis__title) { margin: 10px 0 0; }
.tv-devis--card .tv-devis__inner { box-sizing: border-box; max-width: 740px; margin: 56px auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 24px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); border-top: 6px solid var(--tv-a3); }
.tv-devis--card .tv-devis__text > p:not(.tv-devis__title) { color: var(--tv-a4); }
.tv-devis--band { padding: 24px 0 56px; }
.tv-devis--band .tv-devis__inner { box-sizing: border-box; width: calc(100% - 2 * var(--tv-gutter)); max-width: 1240px; margin: 0 auto; display: grid; gap: 20px; padding: 32px 24px; border-radius: var(--tv-radius-big); background: var(--tv-contrast); color: #fff; position: relative; overflow: hidden; }
.tv-devis--band .tv-devis__title { color: #fff; }
.tv-devis--band .tv-devis__text > p:not(.tv-devis__title) { color: var(--tv-on-dark-soft); }
.tv-devis__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tv-devis__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .92rem; }
.tv-devis__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tv-a1); color: var(--tv-contrast); font-family: var(--tv-head); font-weight: 800; font-size: .85rem; }
.tv-devis__btn { justify-self: start; }

/* ── Listing, pagination, related ─────────────────── */
.tv-listing { padding-top: 32px; padding-bottom: 72px; }
.tv-listing .wp-block-query > * + * { margin-top: 0; }
.tv-pagination { margin-top: 40px !important; gap: 8px; flex-wrap: wrap; font-family: var(--tv-head); font-weight: 700; }
.tv-pagination a, .tv-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; box-sizing: border-box; border-radius: 12px; background: #fff; color: var(--tv-contrast); text-decoration: none; box-shadow: var(--tv-shadow); }
.tv-pagination .page-numbers.current { background: var(--tv-contrast); color: #fff; }
.tv-pagination .page-numbers.dots { background: transparent; box-shadow: none; }
.tv-pagination .wp-block-query-pagination-numbers { display: flex; gap: 8px; flex-wrap: wrap; }
.tv-related { max-width: 1240px; margin: 72px auto 0; }
.tv-related .tv-section__title { margin-bottom: 24px; }

/* ── Empty state ──────────────────────────────────── */
.tv-empty { padding: 28px 24px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); }
.tv-empty__title { margin: 0; font-family: var(--tv-head); font-weight: 800; font-size: 1.35rem; }
.tv-empty > p:not(.tv-empty__title) { margin: 8px 0 18px; color: var(--tv-a4); }

/* ── 404 ──────────────────────────────────────────── */
.tv-404 { padding: 40px 0 80px; background: var(--tv-dots), linear-gradient(180deg, var(--tv-a2), var(--tv-a5) 70%); }
.tv-404__nav { margin-top: 48px; }
.tv-404__grid { display: grid; gap: 32px; align-items: center; }
.tv-404 h1 { margin: 16px 0 0; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
.tv-404 .tv-search { margin-top: 28px; }
.tv-404__sides { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tv-404__dial { margin: 0 auto; width: min(100%, 420px); padding: 28px 28px 20px; background: #fff; border-radius: var(--tv-radius-big); box-shadow: var(--tv-shadow-strong); box-sizing: border-box; }
.tv-404__dial figcaption { margin-top: 10px; text-align: center; font-family: var(--tv-head); font-weight: 700; color: var(--tv-a4); }

/* ── Footer ───────────────────────────────────────── */
.tv-footer-wrap { margin-top: 0; background: var(--tv-contrast); color: #fff; }
.tv-footer { padding-bottom: 28px; position: relative; }
.tv-footer::before { content: ""; display: block; height: 6px; background: var(--tv-split); }
.tv-footer a { color: #fff; text-decoration: none; }
.tv-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tv-on-dark-warm); text-underline-offset: 4px; }
.tv-devis--footer .tv-devis__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0 36px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tv-devis--footer .tv-devis__title { color: #fff; }
.tv-devis--footer .tv-devis__text > p:not(.tv-devis__title) { color: var(--tv-on-dark-soft); max-width: 620px; }
.tv-devis--footer .tv-devis__btn:hover { background: #fff; }
.tv-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
.tv-footer__logo { display: inline-block; }
.tv-footer__logo img { display: block; width: 150px; height: auto; }
.tv-footer__tagline { margin: 14px 0 0; color: var(--tv-on-dark-soft); font-family: var(--tv-head); font-weight: 600; }
.tv-footer__head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--tv-head); font-weight: 800; font-size: 1.05rem; }
.tv-footer__head .tv-icon { color: var(--tv-a1); width: 22px; height: 22px; }
.tv-footer__about { margin: 10px 0 0; max-width: 320px; font-size: .92rem; color: var(--tv-on-dark-soft); }
.tv-footer__col--rubs ul { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
a.tv-footer__rub { gap: 10px; }
.tv-footer__rub .tv-icon { width: 20px; height: 20px; color: var(--tv-a1); }
.tv-footer__rub span { flex: 1; }
.tv-footer__rub em, .tv-footer__soon em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--tv-on-dark-soft); box-shadow: none; }
.tv-footer__soon { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--tv-on-dark-soft); }
a.tv-footer__all { color: #fff; font-weight: 600; }
.tv-footer__col ul { margin: 0; padding: 0; list-style: none; }
.tv-footer__col a { display: flex; align-items: center; min-height: 44px; color: var(--tv-on-dark-soft); }
.tv-footer__col a.tv-footer__cat { color: #fff; font-weight: 600; }
.tv-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.tv-footer__disclaimer { margin: 0; font-size: .9rem; color: var(--tv-on-dark-soft); max-width: 720px; }
.tv-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.tv-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tv-on-dark-soft); }

/* ── Tablet ≥ 600 ─────────────────────────────────── */
@media (min-width: 600px) {
	:root { --tv-gutter: 24px; }
	.tv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-chero__topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.tv-chero__photo { margin-left: 24px; }
	.tv-chero__photo .tv-chero__count { left: -24px; }
	.tv-devis--card .tv-devis__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 30px; }
	.tv-devis--band .tv-devis__inner { padding: 40px; }
	.tv-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-footer__brand { grid-column: 1 / -1; }
	.tv-devis--footer .tv-devis__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
	.tv-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
	.tv-crumbs [aria-current] { max-width: 420px; }
}

/* ── Laptop ≥ 1024 ────────────────────────────────── */
@media (min-width: 1024px) {
	:root { --tv-gutter: 32px; }
	.tv-section { padding-block: 88px; }
	.tv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.tv-phero { padding: 32px 0 64px; }
	.tv-phero--post { padding-bottom: 96px; }
	.tv-phero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
	.tv-phero__grid:not(:has(.tv-phero__media)) { grid-template-columns: minmax(0, 860px); }
	/* Blog: text on top, the 8 category chips below at full width (an auto-sized chip column crushed the text to 0 px). */
	.tv-phero--blog .tv-phero__text { max-width: 760px; }
	.tv-phero--search .tv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
	.tv-phero--search .tv-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
	.tv-phero--blog::after, .tv-phero--search::after { right: 2%; width: 420px; height: 340px; }
	.tv-chero { padding: 32px 0 64px; }
	.tv-chero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
	.tv-chero__visual { justify-self: end; width: 100%; max-width: 520px; }
	.tv-chero__topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tv-brief { margin-top: -56px; padding: 26px 30px; }
	.tv-devis--band .tv-devis__inner { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 44px 48px; }
	.tv-404 { padding: 64px 0 104px; }
	.tv-404__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
	.tv-footer__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; padding: 56px 0 48px; }
	.tv-footer__col--rubs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-footer__brand { grid-column: auto; }
	.tv-footer__logo img { width: 170px; }
}

/* ── Desktop ≥ 1440 ───────────────────────────────── */
@media (min-width: 1440px) {
	.tv-phero__grid { gap: 72px; }
}

/* ── Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.tv-card > * + *, .tv-card__body { margin-block-start: 0 !important; }


/* ── Tap targets ≥ 44 px ─────────────────────────── */
.tv-logo a, .custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.tv-catchip--solid { min-height: 44px; }

/* Card without a featured image: category icon on a light brick texture (inc/36-card-fallback.php). */
.tv-card__media--ph { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 16 / 10; background: var(--tv-bricks), var(--tv-a2); }
.tv-card__ph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tv-contrast); box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(23, 26, 61, .18); }
.tv-card__ph .tv-icon { width: 30px; height: 30px; color: #fff; }
.tv-card__ph-label { font-family: var(--tv-head); font-weight: 700; font-size: .85rem; color: var(--tv-contrast); }

/* ── Special cards (inc/63-cards.php): devis CTA, calculator, page ── */
.tv-card--devis { background: var(--tv-contrast); color: #fff; border-top: 0; box-shadow: var(--tv-shadow-strong); }
.tv-card--devis::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tv-split); }
.tv-card__devis-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; aspect-ratio: 16 / 10; box-sizing: border-box; padding: 20px 22px 0; background: radial-gradient(circle at 70% 40%, #2B3070 0, var(--tv-contrast) 70%); overflow: hidden; }
.tv-card__devis-dial { position: absolute; right: -18px; top: 18px; width: 62%; max-width: 260px; height: auto; opacity: .95; }
.tv-card__devis-kicker { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-family: var(--tv-head); font-weight: 700; font-size: .82rem; color: #fff; }
.tv-card__devis-kicker .tv-icon { width: 26px; height: 26px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: var(--tv-a3); color: var(--tv-contrast); }
.tv-card--devis .tv-card__title a { color: #fff; }
.tv-card--devis:hover .tv-card__title a { text-decoration-color: var(--tv-a3); }
.tv-card--devis .tv-card__excerpt { color: var(--tv-on-dark-soft); }
.tv-card__promises { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0 !important; padding: 0; list-style: none; font-size: .84rem; color: #fff; }
.tv-card__promises li { display: inline-flex; align-items: center; gap: 6px; }
.tv-card__promises .tv-icon { width: 16px; height: 16px; color: var(--tv-a1); }
.tv-card__cta { margin-top: auto !important; padding-top: 6px; }
.tv-card__cta .tv-btn { pointer-events: none; }
.tv-card--calc .tv-card__calc-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--tv-dots), var(--tv-a2); }
.tv-card__calc-icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--tv-contrast); color: var(--tv-a1); box-shadow: var(--tv-shadow-strong); }
.tv-card__calc-icon .tv-icon { width: 42px; height: 42px; }
.tv-card--page { border-top-color: var(--tv-a6); }
.tv-card--page .tv-card__body { padding-top: 22px; }
.tv-card--page .tv-card__cat { color: var(--tv-a4); }


/* ── Icon tile, count pill, scale (no gauge, no dial, no house drawing: owner decision) ── */
.tv-devis__house { width: 120px; flex: none; }
.tv-devis--card .tv-devis__house { display: none; }
.tv-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--tv-a5); color: var(--tv-a4); font-size: .76rem; font-weight: 700; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--tv-a6); }
.tv-pill.is-on { background: var(--tv-a2); color: var(--tv-pervenche-text); box-shadow: none; }
.tv-chero__count-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: rgba(174, 185, 255, .16); color: var(--tv-a1); }
.tv-chero__count-icon .tv-icon { width: 24px; height: 24px; }
.tv-card--calc .tv-card__calc-media { background: var(--tv-bricks), var(--tv-a2); }
.tv-scale { margin: 1.8em 0; padding: 20px 22px; border-radius: var(--tv-radius-card); background: #fff; box-shadow: var(--tv-shadow); }
.tv-scale__label { margin: 0; font-family: var(--tv-head); font-weight: 800; }
.tv-scale__value { margin: 4px 0 10px; font-family: var(--tv-head); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.tv-scale__value span { font-size: 1rem; color: var(--tv-a4); }
.tv-scale__bar { position: relative; height: 12px; border-radius: 6px; background: var(--tv-a2); }
.tv-scale__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--tv-a1); }
.tv-scale__mark { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--tv-a3); box-shadow: 0 0 0 3px #fff; }
.tv-scale__ends { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: .85rem; color: var(--tv-a4); }
.tv-scale figcaption { margin-top: 8px; font-size: .85rem; color: var(--tv-a4); }


/* ── Post hero « fiche réponse » (no big photo: owner decision) ── */
.tv-fiche.tv-phero--post { padding: 20px 0 40px; background: var(--tv-dots), linear-gradient(180deg, var(--tv-a2) 0%, var(--tv-a2) 70%, var(--tv-a5) 100%); }
.tv-fiche__head { display: grid; gap: 20px; align-items: center; }
.tv-fiche__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.tv-fiche__meta > * { margin: 0 !important; }
.tv-fiche__meta .tv-readtime { margin: 0; }
.tv-fiche .tv-phero__title { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.tv-fiche .tv-lead { margin-top: 12px; }
.tv-fiche .tv-brief { max-width: none; margin: 24px 0 0; padding: 22px 20px 20px; background: #fff; box-shadow: var(--tv-shadow-strong); }
.tv-fiche .tv-brief__label { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--tv-contrast); color: #fff; font-size: .9rem; }
.tv-fiche .tv-brief__label::before { display: none; }
.tv-fiche .tv-brief__label .tv-icon { width: 24px; height: 24px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: var(--tv-a3); color: var(--tv-contrast); }
.tv-fiche .tv-brief__text { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }
.tv-article--post { padding-top: 40px; }
.tv-article--post .tv-article__main { max-width: 740px; margin: 0 auto; }
.tv-article--post .tv-prose { padding-top: 0 !important; }
.tv-prose h2[id] { scroll-margin-top: 24px; }
@media (min-width: 600px) {
	.tv-fiche__head { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
		.tv-fiche .tv-brief { padding: 26px 28px 24px; }
}
@media (min-width: 1024px) {
	.tv-fiche.tv-phero--post { padding: 28px 0 48px; }
	.tv-fiche__head { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; }
}
@media (min-width: 1440px) {
	.tv-fiche__head { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; }
}
.tv-readtime__parts { display: inline-flex; align-items: center; gap: 8px; }
.tv-readtime__parts::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tv-a4); opacity: .6; }

.tv-itile { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: var(--tv-a3); color: var(--tv-contrast); box-shadow: 0 16px 34px rgba(242, 84, 45, .28); flex: none; }
.tv-itile .tv-icon { width: 46px; height: 46px; }
.tv-devis__tile { width: 88px; height: 88px; }
.tv-devis--card .tv-devis__tile { display: none; }
.tv-card__devis-top { background: var(--tv-bricks), #23285E !important; }
.tv-card__devis-tile { position: absolute; right: 22px; top: 22px; width: 72px; height: 72px; border-radius: 22px; }
.tv-card__devis-tile .tv-icon { width: 34px; height: 34px; }
.tv-404__dial { display: grid; justify-items: center; gap: 12px; padding: 36px 28px 28px; background: var(--tv-bricks), var(--tv-a2); }
.tv-404__tile { background: var(--tv-contrast); color: #fff; box-shadow: var(--tv-shadow-strong); }
.tv-cboard__tile { width: 64px; height: 64px; border-radius: 18px; }
.tv-cboard__tile .tv-icon { width: 30px; height: 30px; }

/* Post photo: one column wide, rounded (about 400 × 300 at 1440), full-width 16:10 under the title on phones. */
.tv-fiche__photo { margin: 0 !important; width: 100%; border-radius: 22px; overflow: hidden; box-shadow: var(--tv-shadow-strong); aspect-ratio: 16 / 10; }
.tv-fiche__photo img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
@media (min-width: 600px) {
	.tv-fiche__photo { aspect-ratio: 4 / 3; justify-self: end; }
}

/* « Sommaire »: one closed bar in the article; compact numbered list when open. */
.tv-toc, .tv-prose .tv-toc, .entry-content > .tv-toc { margin: 2em 0 2.4em; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--tv-a6), 0 6px 18px rgba(23, 26, 61, .06); max-width: 740px; }
.tv-toc__bar { display: flex; align-items: center; gap: 10px; min-height: 60px; box-sizing: border-box; padding: 8px 16px; cursor: pointer; list-style: none; border-radius: 16px; }
.tv-toc__bar::-webkit-details-marker { display: none; }
.tv-toc__bar > .tv-icon { flex: none; width: 22px; height: 22px; color: var(--tv-pervenche-text); }
.tv-toc__title { flex: none; font-family: var(--tv-head); font-weight: 800; }
.tv-toc__bar .tv-pill { flex: none; }
.tv-toc__first { display: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--tv-a4); }
.tv-toc__toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; font-family: var(--tv-head); font-weight: 700; font-size: .9rem; color: var(--tv-pervenche-text); }
.tv-toc__toggle .tv-icon { width: 18px; height: 18px; transition: transform .2s ease; }
.tv-toc[open] .tv-toc__toggle .tv-icon { transform: rotate(180deg); }
.tv-toc__hide, .tv-toc[open] .tv-toc__show { display: none; }
.tv-toc[open] .tv-toc__hide { display: inline; }
.tv-toc[open] .tv-toc__bar { border-bottom: 1px solid var(--tv-a6); border-radius: 16px 16px 0 0; }
.tv-toc__list { margin: 0; padding: 6px 12px 12px; list-style: none; max-height: 60vh; overflow-y: auto; }
.tv-toc__list li { border-bottom: 1px solid var(--tv-a6); break-inside: avoid; }
.tv-toc__list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; min-height: 44px; box-sizing: border-box; padding: 9px 6px; color: var(--tv-contrast); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.tv-toc__list a:hover { color: var(--tv-pervenche-text); }
.tv-toc__n { font-family: var(--tv-head); font-weight: 800; font-size: .82rem; color: var(--tv-pervenche-text); }
.tv-readtime__toc { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; color: var(--tv-pervenche-text); }
.tv-readtime__toc .tv-icon { width: 16px; height: 16px; }
@media (min-width: 600px) {
	.tv-toc__first { display: block; }
}
@media (min-width: 1024px) {
	.tv-toc__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--tv-toc-rows), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; padding: 6px 18px 14px; }
}

/* ── Category: hero aligned to the top, subjects band (inc/45-views.php) ── */
.tv-chero__grid { align-items: start; }
.tv-chero .tv-chero__nav { margin-top: 24px; }
.tv-chero .tv-catnav ul { gap: 6px; }
.tv-chero .tv-catnav .tv-catchip { min-height: 44px; font-size: .88rem; }
.tv-subjects { padding: 40px 0 8px; background: #fff; border-top: 1px solid var(--tv-a6); }
.tv-subjects__head { margin-bottom: 20px; }
.tv-subjects__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tv-subject { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--tv-radius-card); background: var(--tv-a5); box-shadow: inset 0 0 0 1px var(--tv-a6); }
.tv-subject__head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.tv-subject__intro .tv-pill { margin-top: 8px; }
.tv-subject__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tv-contrast); color: var(--tv-a1); font-family: var(--tv-head); font-weight: 800; }
.tv-subject__name { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.tv-subject__theme { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; color: var(--tv-a4); }
.tv-subject__guides { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(23, 26, 61, .05); }
.tv-subject__guides li + li { border-top: 1px solid var(--tv-a6); }
.tv-subject__guide { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 52px; box-sizing: border-box; padding: 10px 14px; color: var(--tv-contrast); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.tv-subject__guide:hover { color: var(--tv-pervenche-text); }
.tv-subject__guide:hover .tv-subject__arrow { transform: translateX(3px); color: var(--tv-a3); }
.tv-subject__arrow { color: var(--tv-pervenche-text); transition: transform .15s ease; }
@media (min-width: 768px) {
	.tv-subjects__grid--two, .tv-subjects__grid--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-subjects__grid--one .tv-subject { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; padding: 24px; }
}
@media (min-width: 1024px) {
	.tv-subjects { padding: 56px 0 16px; }
}
@media (min-width: 1180px) {
	.tv-subjects__grid--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tv-subjects__grid--two .tv-subject { display: grid; grid-template-columns: minmax(0, 1fr); }
}
