/**
 * Hero « À la une Calendanse » V2 + V3 hub spotlight
 * XL = accueil public ; compact = Navigation simple / App.
 * Charte : navy #0B1F4D · orange #F08A4B · violet · magenta · or.
 */

.chf-hero {
	--chf-night: #0b1f4d;
	--chf-cream: #f7fafc;
	--chf-accent: #f08a4b;
	--chf-accent-hover: #e07838;
	--chf-cta-ink: #0b1f4d;
	--chf-focal-d: center right;
	--chf-focal-m: center center;
	--chf-radius: 18px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
	margin: 0 0 1.35rem;
	border-radius: 0;
	box-shadow: 0 18px 40px rgba(11, 31, 77, 0.14);
}

/* Sortir de la largeur Astra (.entry-content > * { max-width: 1200px }). */
.entry-content[data-ast-blocks-layout] > .chf-hero--xl,
.entry-content > .chf-hero--xl,
.cd-home-v3 .chf-hero--xl {
	max-width: none !important;
}

.chf-hero--xl {
	height: clamp(320px, 36vh, 420px);
	min-height: 320px;
	max-height: 420px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	border-radius: 0;
	box-shadow: none;
}

.chf-hero--xl.chf-hero--v3 {
	height: auto;
	min-height: 0;
	max-height: min(420px, 58vh);
}

.chf-hero--compact {
	display: grid;
	grid-template-columns: minmax(112px, 38%) 1fr;
	align-items: stretch;
	min-height: 160px;
	max-height: none;
	border-radius: var(--chf-radius);
	margin: 0 0 1.1rem;
	box-shadow: 0 10px 28px rgba(11, 31, 77, 0.12);
}

.chf-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.chf-hero--compact .chf-hero__media {
	position: relative;
	inset: auto;
	min-height: 100%;
}

.chf-hero__media picture,
.chf-hero__media img,
.chf-hero__img {
	width: 100%;
	height: 100%;
	display: block;
}

.chf-hero__img {
	object-fit: cover;
	object-position: var(--chf-focal-d);
}

.chf-hero--v3 .chf-hero__media {
	min-height: 100%;
}

.chf-hero--v3 .chf-hero__img {
	min-height: 100%;
	position: absolute;
	inset: 0;
	height: 100%;
}

.chf-hero--v3 .chf-hero__media picture {
	position: absolute;
	inset: 0;
}

.chf-hero__img--fallback {
	min-height: inherit;
	background:
		radial-gradient(ellipse at 70% 40%, rgba(240, 138, 75, 0.35), transparent 55%),
		radial-gradient(ellipse at 20% 80%, rgba(106, 63, 181, 0.35), transparent 50%),
		linear-gradient(145deg, #0b1f4d 0%, #1e3a5f 48%, #162447 100%);
}

.chf-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			105deg,
			rgba(8, 16, 36, 0.82) 0%,
			rgba(8, 16, 36, 0.58) 34%,
			rgba(8, 16, 36, 0.22) 58%,
			rgba(8, 16, 36, 0.08) 100%
		),
		linear-gradient(to top, rgba(8, 16, 36, 0.42) 0%, transparent 42%);
}

.chf-hero--v3 .chf-hero__overlay {
	background:
		linear-gradient(
			115deg,
			rgba(8, 16, 36, 0.88) 0%,
			rgba(8, 16, 36, 0.62) 38%,
			rgba(8, 16, 36, 0.28) 62%,
			rgba(8, 16, 36, 0.14) 100%
		),
		linear-gradient(to top, rgba(8, 16, 36, 0.55) 0%, transparent 48%);
}

.chf-hero--compact .chf-hero__overlay {
	background:
		linear-gradient(
			90deg,
			rgba(8, 16, 36, 0.15) 0%,
			rgba(8, 16, 36, 0.55) 55%,
			rgba(8, 16, 36, 0.78) 100%
		);
}

.chf-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.65rem;
	padding: clamp(1.35rem, 3.5vw, 2.75rem);
	padding-bottom: max(1.4rem, env(safe-area-inset-bottom, 0px));
	max-width: min(36rem, 52%);
	min-height: inherit;
}

.chf-hero__inner--hub {
	justify-content: center;
	max-width: min(40rem, 56%);
	gap: 0.55rem;
	padding-top: clamp(0.85rem, 2vw, 1.35rem);
	padding-bottom: clamp(0.75rem, 1.8vw, 1.2rem);
	min-height: 0;
}

/* Gabarit — panneau Focus à GAUCHE (desktop ≥901 uniquement via media queries) */
.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub,
.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub.chf-hero__inner--panel-left,
.chf-hero--v3 .chf-hero__inner--panel-left {
	box-sizing: border-box;
	min-width: 0;
}

.chf-hero--compact .chf-hero__inner {
	justify-content: center;
	max-width: none;
	min-height: 0;
	gap: 0.4rem;
	padding: 0.95rem 1.1rem 1rem;
	background: linear-gradient(180deg, rgba(11, 31, 77, 0.92), rgba(11, 31, 77, 0.88));
}

.chf-hero--compact .chf-hero__text--compact {
	font-size: 0.86rem;
	line-height: 1.35;
	max-width: none;
	color: rgba(247, 250, 252, 0.9) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chf-hero--compact .chf-focus-tools--compact {
	margin-top: 0.15rem;
}

.chf-hero--compact .chf-focus-tools__list {
	gap: 0.3rem;
}

.chf-hero--compact a.chf-focus-tools__link {
	min-height: 30px;
	padding: 0.22rem 0.55rem !important;
	font-size: 0.72rem !important;
}

.chf-hero--compact .chf-hero__secondary--hub {
	margin: 0.1rem 0 0;
}

.chf-hero--compact .chf-hero__univers.chf-hero__univers--hub {
	font-size: 0.78rem !important;
	min-height: 36px;
	min-width: min(100%, 14rem);
	padding: 0.35rem 0.9rem !important;
	color: #ffffff !important;
}

.chf-hero__kicker {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9) !important;
}

.chf-hero--compact .chf-hero__kicker {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
}

.chf-hero__title {
	margin: 0;
	font-family: "Syne", "Avenir Next", "Segoe UI", sans-serif;
	font-size: clamp(2rem, 4.2vw, 3.15rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff !important;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
	max-width: 12ch;
}

.chf-hero--compact .chf-hero__title {
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	max-width: none;
	line-height: 1.15;
	text-shadow: none;
	color: #fff !important;
}

.chf-hero__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	max-width: 34ch;
	color: rgba(247, 250, 252, 0.95) !important;
	font-weight: 450;
}

.chf-hero__action-wrap {
	margin: 0.25rem 0 0;
}

body .chf-hero a.chf-hero__action,
body .entry-content a.chf-hero__action,
body.cd-home-v3 .entry-content a.chf-hero__action,
#page .chf-hero a.chf-hero__action,
#page .entry-content a.chf-hero__action,
#page main a.chf-hero__action {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 52px;
	padding: 0.7rem 1.45rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--chf-accent, #f08a4b) !important;
	background-color: var(--chf-accent, #f08a4b) !important;
	background-image: none !important;
	color: var(--chf-cta-ink, #0b1f4d) !important;
	font-weight: 750 !important;
	font-size: 1.02rem !important;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.chf-hero--compact a.chf-hero__action {
	min-height: 40px;
	padding: 0.45rem 1rem !important;
	font-size: 0.92rem !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.chf-hero__action-arrow {
	font-size: 1.05em;
	line-height: 1;
	transition: transform 0.2s ease;
	color: inherit !important;
}

.chf-hero__action-label {
	color: inherit !important;
}

body .chf-hero a.chf-hero__action:hover,
body .chf-hero a.chf-hero__action:focus-visible,
body .entry-content a.chf-hero__action:hover,
body .entry-content a.chf-hero__action:focus-visible,
#page .chf-hero a.chf-hero__action:hover,
#page .chf-hero a.chf-hero__action:focus-visible,
#page .entry-content a.chf-hero__action:hover,
#page .entry-content a.chf-hero__action:focus-visible {
	background: var(--chf-accent-hover, #e07838) !important;
	background-color: var(--chf-accent-hover, #e07838) !important;
	color: var(--chf-cta-ink, #0b1f4d) !important;
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.chf-hero__action:hover .chf-hero__action-arrow,
.chf-hero__action:focus-visible .chf-hero__action-arrow {
	transform: translateX(3px);
}

.chf-hero__shortcuts {
	margin-top: 0.55rem;
}

.chf-hero__shortcuts-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chf-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 36px;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.88rem;
	font-weight: 600;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chf-hero__chip:hover,
.chf-hero__chip:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.42);
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 2px;
}

.chf-hero__chip-icon {
	display: inline-flex;
	opacity: 0.92;
}

.chf-hero__secondary {
	margin: 0.15rem 0 0;
}

.chf-hero__univers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: rgba(255, 255, 255, 0.72) !important;
	text-decoration: none !important;
	font-size: 0.82rem;
	font-weight: 540;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.chf-hero__univers:hover,
.chf-hero__univers:focus-visible {
	color: #fff !important;
	border-bottom-color: rgba(255, 255, 255, 0.55);
	outline: none;
}

.chf-hero__univers:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Bouton secondaire Hub — violet/magenta Calendanse (distinct du CTA orange) */
#page body .chf-hero a.chf-hero__univers--hub,
#page .chf-hero a.chf-hero__univers.chf-hero__univers--hub,
#page .entry-content a.chf-hero__univers--hub,
body .chf-hero a.chf-hero__univers--hub,
body .entry-content a.chf-hero__univers--hub,
a.chf-hero__univers.chf-hero__univers--hub,
a.cdsn-home-hub__trigger.chf-hero__univers--hub {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: auto;
	min-width: min(100%, 17.5rem);
	max-width: 100%;
	min-height: 40px;
	padding: 0.45rem 1.15rem !important;
	border-radius: 12px;
	background-color: #6a3fb5 !important;
	background-image: linear-gradient(135deg, #6a3fb5 0%, #9843b8 48%, #c04ba5 100%) !important;
	background: linear-gradient(135deg, #6a3fb5 0%, #9843b8 48%, #c04ba5 100%) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
	font-size: 0.86rem !important;
	font-weight: 650 !important;
	letter-spacing: 0.01em;
	line-height: 1.2;
	box-shadow: 0 8px 18px rgba(106, 63, 181, 0.3);
}

body .chf-hero a.chf-hero__univers--hub:hover,
body .chf-hero a.chf-hero__univers--hub:focus-visible,
body .entry-content a.chf-hero__univers--hub:hover,
body .entry-content a.chf-hero__univers--hub:focus-visible,
a.chf-hero__univers.chf-hero__univers--hub:hover,
a.chf-hero__univers.chf-hero__univers--hub:focus-visible {
	color: #ffffff !important;
	background: linear-gradient(135deg, #5a32a0 0%, #953aa3 48%, #a83d8c 100%) !important;
	border-bottom-color: rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 10px 22px rgba(106, 63, 181, 0.38);
	outline: none;
}

body .chf-hero a.chf-hero__univers--hub:focus-visible,
a.chf-hero__univers.chf-hero__univers--hub:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 3px;
}

.chf-hero__univers-icon {
	flex: 0 0 auto;
	display: block;
	opacity: 0.95;
}

.chf-hero__univers-label {
	min-width: 0;
}

/* —— V3 Spotlight + Hub ——
 * MOBILE-FIRST (P0 REAL_DEVICE): default = 1 colonne, image 16:9 pleine largeur.
 * L’ancien grid 2 colonnes (minmax 96px / 132px) ne doit plus être le défaut —
 * sinon un CSS WPFC/HTTP stale sans media-query mobile réaffiche le layout cassé.
 */
.chf-spotlight {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	grid-template-columns: none;
	grid-template-rows: none;
	grid-template-areas: none;
	gap: 0;
	align-items: stretch;
	padding: 0 0 0.55rem;
	border-radius: 16px;
	background: rgba(8, 16, 36, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.chf-spotlight__media {
	position: relative;
	order: -1;
	border-radius: 0;
	overflow: hidden;
	min-width: 0;
	min-height: 140px;
	width: 100%;
	max-width: none;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: none;
	background: rgba(11, 31, 77, 0.4);
	margin: 0;
}

.chf-spotlight__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	min-height: 0;
	object-fit: cover;
	object-position: var(--chf-spot-focal-m, var(--chf-spot-focal-d, center center));
	display: block;
	transform: scale(var(--chf-spot-zoom-m, var(--chf-spot-zoom-d, 1)));
	transform-origin: var(--chf-spot-focal-m, var(--chf-spot-focal-d, center center));
}

.chf-spotlight__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.28rem;
	min-width: 0;
	width: 100%;
	max-width: none;
	padding: 0.65rem 0.85rem 0.45rem;
	box-sizing: border-box;
}

.chf-spotlight__badge {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88) !important;
}

.chf-spotlight__title {
	margin: 0;
	font-family: "Syne", "Avenir Next", "Segoe UI", sans-serif;
	font-size: clamp(1.35rem, 2.6vw, 1.95rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #fff !important;
	text-wrap: balance;
	max-width: 22ch;
}

.chf-spotlight--theme-local .chf-spotlight__title {
	max-width: none;
}

.chf-spotlight--theme-local .chf-spotlight__text {
	max-width: 48ch;
}

.chf-spotlight--theme-local .chf-spotlight__body {
	gap: 0.45rem;
}

body .chf-hero.chf-hero--theme-local a.chf-hero__action--spotlight {
	white-space: nowrap !important;
	max-width: min(100%, 22rem);
	text-align: center;
}

/* Ancien dual-label (full/short) — ne jamais afficher les deux */
.chf-hero__action-label--short {
	display: none !important;
}

.chf-spotlight__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	color: rgba(247, 250, 252, 0.92) !important;
	max-width: 36ch;
}

.chf-spotlight__action-wrap {
	margin: 0.35rem 0 0;
}

.chf-spotlight__aside {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.35;
	color: rgba(247, 250, 252, 0.82) !important;
	max-width: 40ch;
}

.chf-spotlight__img {
	object-position: var(--chf-spot-focal-m, var(--chf-spot-focal-d, center center));
}

/* Ancien plafond 140px retiré de la base : il écrasait le Focus mobile (bandeau « pauvre »).
 * Desktop panel-left gère sa propre hauteur via @media (min-width: 901px). */

.chf-hero__inner--safe {
	padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

/* Outils de proximité sous le CTA */
.chf-local-tools {
	margin: 0.45rem 0 0;
	min-width: 0;
}

.chf-local-tools__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

body .chf-hero a.chf-local-tools__link,
body .entry-content a.chf-local-tools__link,
#page .chf-hero a.chf-local-tools__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0.3rem 0.7rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.8rem !important;
	font-weight: 650 !important;
	line-height: 1.2;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

body .chf-hero a.chf-local-tools__link--emphasis,
body .entry-content a.chf-local-tools__link--emphasis {
	border-color: rgba(255, 209, 102, 0.55) !important;
	background: rgba(255, 209, 102, 0.18) !important;
}

body .chf-hero a.chf-local-tools__link:hover,
body .chf-hero a.chf-local-tools__link:focus-visible {
	background: rgba(255, 255, 255, 0.22) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
}

.chf-hub {
	margin: 0;
}

.chf-hub__label {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.72) !important;
}

.chf-hub__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

body .chf-hero a.chf-hub__link,
body .entry-content a.chf-hub__link,
#page .chf-hero a.chf-hub__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.35rem 0.78rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.84rem !important;
	font-weight: 650 !important;
	line-height: 1.2;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background 0.18s ease, border-color 0.18s ease;
}

body .chf-hero a.chf-hub__link:hover,
body .chf-hero a.chf-hub__link:focus-visible,
body .entry-content a.chf-hub__link:hover,
body .entry-content a.chf-hub__link:focus-visible {
	background: rgba(255, 255, 255, 0.2) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

.chf-hub__link-label {
	color: inherit !important;
}

/* Vignette distincte (pas de photo = marque hub) */
.chf-spotlight__mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	height: 100%;
	min-height: 132px;
	padding: 0.85rem;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(240, 138, 75, 0.45), transparent 55%),
		linear-gradient(160deg, #0b1f4d 0%, #1e3a5f 48%, #3d2a55 100%);
	color: #fff;
}

.chf-spotlight__mark-glyph {
	display: inline-flex;
	opacity: 0.95;
}

.chf-spotlight__mark-label {
	font-family: "Syne", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

body .chf-hero a.chf-hero__action--spotlight {
	max-width: 100%;
}

/* Landing hub */
.chf-hub-landing,
.chf-local-landing {
	max-width: 920px;
	margin: 0 auto 2.5rem;
	padding: 0.5rem 0 1rem;
	font-family: inherit;
}

.chf-hub-landing__kicker,
.chf-local-landing__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: #0b1f4d;
	font-family: inherit;
}

.chf-hub-landing__title,
.chf-local-landing__title {
	margin: 0 0 0.65rem;
	font-family: inherit;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.1;
	color: #0b1f4d;
}

.chf-hub-landing__lead,
.chf-local-landing__lead {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #31415f;
	max-width: 42ch;
	font-family: inherit;
}
.chf-hub-landing__group {
	margin: 1.35rem 0 0;
}
.chf-hub-landing__group-title {
	margin: 0 0 0.55rem;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: #5a6a84;
}
.chf-hub-landing__card-desc {
	display: block;
	font-size: 0.82rem;
	opacity: 0.75;
	margin-top: 0.2rem;
	font-weight: 400;
	line-height: 1.35;
}

.chf-local-landing__cta-wrap {
	margin: 0 0 1.35rem;
}

body .entry-content a.chf-local-landing__cta,
.chf-local-landing__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	background: #f08a4b;
	color: #0b1f4d !important;
	font-weight: 700;
	text-decoration: none !important;
	font-family: inherit;
}

body .entry-content a.chf-local-landing__cta:hover,
.chf-local-landing__cta:hover {
	background: #e07838;
}

.chf-hub-landing__grid,
.chf-local-landing__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

@media (min-width: 720px) {
	.chf-hub-landing__grid,
	.chf-local-landing__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.chf-hub-landing__card,
.chf-local-landing__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 64px;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(11, 31, 77, 0.12);
	background: linear-gradient(145deg, #f7fafc 0%, #eef3f8 100%);
	color: #0b1f4d !important;
	text-decoration: none !important;
	font-weight: 700;
	font-family: inherit;
	box-shadow: 0 8px 20px rgba(11, 31, 77, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chf-local-landing__card--emphasis {
	border-color: rgba(240, 138, 75, 0.45);
	background: linear-gradient(145deg, #fff8f2 0%, #ffefe3 100%);
}

.chf-hub-landing__card:hover,
.chf-hub-landing__card:focus-visible,
.chf-local-landing__card:hover,
.chf-local-landing__card:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(240, 138, 75, 0.55);
	box-shadow: 0 12px 28px rgba(11, 31, 77, 0.1);
	outline: 2px solid #f08a4b;
	outline-offset: 2px;
}

.chf-hub-landing__card-go,
.chf-local-landing__card-go {
	color: #f08a4b;
	font-size: 1.1rem;
}

.chf-local-landing__note {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #31415f;
	font-family: inherit;
	max-width: 48ch;
}

.chf-hub-landing__back a,
.chf-local-landing__back a {
	color: #0b1f4d !important;
	font-weight: 600;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(11, 31, 77, 0.25);
}

.chf-hub-landing__back a:hover {
	border-bottom-color: #f08a4b;
}

@media (prefers-reduced-motion: no-preference) {
	.chf-hero--xl:not(.chf-hero--v3) .chf-hero__img {
		transition: transform 8s ease;
	}
	.chf-hero--xl:not(.chf-hero--v3):hover .chf-hero__img {
		transform: scale(1.035);
	}
	.chf-hero__action:hover {
		transform: translateY(-1px);
	}
	.chf-hero__inner > *,
	.chf-spotlight,
	.chf-hub {
		animation: chf-rise 0.55s ease both;
	}
	.chf-hero__kicker { animation-delay: 0.02s; }
	.chf-hero__title { animation-delay: 0.08s; }
	.chf-hero__text { animation-delay: 0.14s; }
	.chf-hero__action-wrap { animation-delay: 0.2s; }
	.chf-hero__shortcuts { animation-delay: 0.26s; }
	.chf-hero__secondary { animation-delay: 0.32s; }
	.chf-spotlight { animation-delay: 0.06s; }
	.chf-hub { animation-delay: 0.18s; }
}

@keyframes chf-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) and (min-width: 901px) {
	.chf-hero__inner--hub:not(.chf-hero__inner--panel-left) {
		max-width: min(38rem, 68%);
	}
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--panel-left,
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub,
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub.chf-hero__inner--panel-left {
		width: 40%;
		max-width: 42%;
		min-width: 0;
	}
}

@media (max-width: 900px) {
	/* Ne jamais laisser un panneau 70% sur V3 (cause « colonne » mobile). */
	.chf-hero--v3 .chf-hero__inner,
	.chf-hero--v3 .chf-hero__inner--hub,
	.chf-hero--v3 .chf-hero__inner--panel-left {
		max-width: none !important;
		width: 100% !important;
		min-width: 0 !important;
	}
	.chf-hero__inner--hub:not(.chf-hero__inner--panel-left) {
		max-width: min(36rem, 78%);
	}
}

@media (max-width: 720px) {
	.chf-hero--xl {
		height: auto;
		min-height: 0;
		max-height: none;
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
		border-radius: 0 0 16px 16px;
		margin-bottom: 1.1rem;
	}

	.chf-hero--xl.chf-hero--v3 {
		min-height: 0;
		height: auto;
		max-height: none;
	}

	.chf-hero__img {
		object-position: var(--chf-focal-m);
	}

	.chf-hero__overlay {
		background:
			linear-gradient(
				to top,
				rgba(8, 16, 36, 0.88) 0%,
				rgba(8, 16, 36, 0.55) 42%,
				rgba(8, 16, 36, 0.22) 72%,
				rgba(8, 16, 36, 0.12) 100%
			);
	}

	.chf-hero--v3 .chf-hero__overlay {
		background:
			linear-gradient(
				160deg,
				rgba(8, 16, 36, 0.55) 0%,
				rgba(8, 16, 36, 0.28) 45%,
				rgba(8, 16, 36, 0.42) 100%
			);
	}

	/* Mobile ≤720 : ne plus masquer le fond Hub — ambiance conservée (override 1.7.22 en fin de fichier aussi). */
	.chf-hero--v3.chf-hero--xl {
		background: #0b1f4d;
	}

	.chf-hero--v3.chf-hero--global-bg-fallback,
	.chf-hero--v3.chf-hero--global-bg-media {
		background: #0b1f4d;
	}

	.chf-hero__inner {
		justify-content: flex-start;
		max-width: none;
		padding: 0.55rem 0.7rem 0.65rem;
		gap: 0.35rem;
	}

	.chf-hero__inner--hub,
	.chf-hero--theme-local .chf-hero__inner--hub {
		min-height: 0;
		padding-top: 0.45rem;
		padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
		gap: 0.35rem;
		background: transparent;
		border-radius: 0 0 14px 14px;
	}

	.chf-hero__title {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
		max-width: 14ch;
	}

	.chf-hero__text {
		font-size: 0.98rem;
		max-width: none;
	}

	.chf-hero__shortcuts-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.45rem;
		width: 100%;
	}

	.chf-hero__chip {
		justify-content: center;
		width: 100%;
		min-height: 40px;
		font-size: 0.84rem;
	}

	/*
	 * Focus V3 mobile — IMAGE pleine largeur en haut, puis contenu.
	 * Pas de colonne image gauche / pas de mini-desktop.
	 * !important + grid:none pour gagner contre thèmes / cache CSS partiel.
	 */
	.chf-hero--v3 .chf-spotlight,
	.chf-hero--v3 .chf-spotlight--theme-local,
	.chf-hero--v3 article.chf-spotlight {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		grid-template-columns: none !important;
		grid-template-rows: none !important;
		grid-template-areas: none !important;
		align-items: stretch !important;
		gap: 0 !important;
		padding: 0 !important;
		min-height: 0;
		max-height: none;
		overflow: hidden;
		border-radius: 14px;
		background: rgba(8, 16, 36, 0.9);
		border: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	}

	.chf-hero--v3 .chf-spotlight__media,
	.chf-hero--v3 .chf-spotlight--theme-local .chf-spotlight__media,
	.chf-hero--v3 article.chf-spotlight > .chf-spotlight__media {
		position: relative !important;
		inset: auto !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		float: none !important;
		z-index: 0;
		order: -1 !important;
		width: 100% !important;
		max-width: none !important;
		flex: 0 0 auto !important;
		/* Vrai 16:9 — pas de bande écrasée / pas de colonne grise */
		aspect-ratio: 16 / 9 !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		border-radius: 0;
		overflow: hidden;
		background: #0b1f4d;
		margin: 0 !important;
	}

	.chf-hero--v3 .chf-spotlight__media picture,
	.chf-hero--v3 .chf-spotlight__media .chf-spotlight__img,
	.chf-hero--v3 .chf-spotlight__media .chf-spotlight__mark {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		min-height: 0 !important;
		max-height: none !important;
		display: block;
		object-fit: cover;
		object-position: var(--chf-spot-focal-m, center center);
	}

	.chf-hero--v3 .chf-spotlight__body {
		position: relative;
		z-index: 1;
		padding: 0.5rem 0.75rem 0.55rem;
		gap: 0.2rem;
		background: linear-gradient(180deg, rgba(11, 31, 77, 0.72) 0%, rgba(8, 16, 36, 0.92) 100%);
	}

	.chf-hero--v3 .chf-spotlight__badge {
		font-size: 0.65rem;
		letter-spacing: 0.12em;
	}

	.chf-hero--v3 .chf-spotlight__title {
		font-size: clamp(1.12rem, 5vw, 1.38rem);
		max-width: none;
		line-height: 1.15;
	}

	.chf-hero--v3 .chf-spotlight__text {
		font-size: 0.84rem;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		max-width: none;
	}

	.chf-hero--v3 .chf-spotlight__action-wrap {
		margin: 0.28rem 0 0.05rem;
	}

	.chf-hero--v3 .chf-spotlight__more {
		display: none;
	}

	.chf-spotlight__aside {
		font-size: 0.8rem;
	}

	.chf-local-tools {
		margin-top: 0.55rem;
		margin-right: 0;
	}

	.chf-local-tools__list,
	.chf-focus-tools__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		flex-wrap: unset;
		overflow-x: visible;
		gap: 0.4rem;
		width: 100%;
		padding-bottom: 0;
		padding-right: 0;
	}

	.chf-focus-tools__list li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.chf-focus-tools {
		margin-top: 0.15rem;
	}

	.chf-focus-tools__item--deferred {
		display: none !important;
	}

	/* 3e outil → Hub uniquement (pas de « Autres raccourcis » mobile) */
	.chf-focus-tools--has-deferred .chf-focus-tools__more {
		display: none !important;
	}

	body .chf-hero a.chf-local-tools__link,
	body .entry-content a.chf-local-tools__link,
	body .chf-hero a.chf-focus-tools__link,
	body .entry-content a.chf-focus-tools__link {
		flex: unset;
		width: 100%;
		justify-content: center;
		min-height: 36px;
		font-size: 0.76rem !important;
		white-space: nowrap;
		padding: 0.4rem 0.55rem !important;
	}

	/* CTA principal : un libellé, une ligne, taille adaptée */
	body .chf-hero a.chf-hero__action,
	body .chf-hero a.chf-hero__action--spotlight,
	body .chf-hero.chf-hero--theme-local a.chf-hero__action--spotlight {
		display: inline-flex !important;
		min-height: 44px !important;
		width: auto !important;
		max-width: 100%;
		padding: 0.48rem 0.95rem !important;
		font-size: 0.86rem !important;
		white-space: nowrap !important;
		text-align: center;
		box-shadow:
			0 10px 24px rgba(0, 0, 0, 0.3),
			0 0 0 1px rgba(255, 255, 255, 0.14) inset;
	}

	.chf-hero__action-label {
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.chf-hero__action-label--full {
		display: inline !important;
	}

	.chf-hero__action-label--short {
		display: none !important;
	}

	.chf-hero__secondary--hub {
		margin: 0.2rem 0 0;
		text-align: stretch;
		width: 100%;
	}

	body .chf-hero a.chf-hero__univers--hub,
	body .entry-content a.chf-hero__univers--hub {
		width: 100% !important;
		min-width: 0;
		min-height: 38px !important;
		padding: 0.4rem 0.95rem !important;
		font-size: 0.84rem !important;
		justify-content: center;
	}

	.chf-spotlight__more {
		font-size: 0.75rem;
		margin-top: 0.2rem;
		max-width: none;
		opacity: 0.88;
	}

	.chf-spotlight__more-text {
		max-height: 5.2em;
		max-width: none;
	}

	.chf-hero--compact {
		grid-template-columns: 96px 1fr;
		min-height: 132px;
		max-height: none;
	}

	.chf-hero--compact .chf-hero__title {
		font-size: 1.05rem;
	}
}

@media (min-width: 1600px) {
	.chf-hero--xl:not(.chf-hero--v3) {
		height: 400px;
		min-height: 360px;
		max-height: 420px;
	}
	.chf-hero__inner:not(.chf-hero__inner--panel-left) {
		padding-left: max(2.5rem, calc((100vw - 1200px) / 2));
	}
}

@media (min-width: 901px) {
	/* Desktop V3 = toujours stack vertical dans le panneau (pas de 2 colonnes Focus). */
	.chf-spotlight--theme-local {
		grid-template-columns: none;
		gap: 0.55rem;
		padding: 0.9rem 0.9rem 1.15rem;
	}

	.chf-spotlight--theme-local .chf-spotlight__media,
	.chf-spotlight--theme-local .chf-spotlight__mark {
		min-height: 0;
		max-height: min(220px, 34%);
		border-radius: 14px;
	}

	.chf-spotlight__img {
		object-position: var(--chf-spot-focal-d, center center);
	}

	.chf-local-tools__list {
		gap: 0.5rem;
	}
}


/* —— V3.1 Focus tools (contextuels) —— */
.chf-focus-tools {
	margin: 0.15rem 0 0;
	min-width: 0;
}
.chf-focus-tools__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
/* Mobile-first : outils deferred (3e+) masqués — Hub uniquement. Desktop ≥901 les réaffiche via details. */
.chf-focus-tools__item--deferred {
	display: none !important;
}
.chf-focus-tools--has-deferred .chf-focus-tools__more {
	display: none !important;
}
@media (min-width: 901px) {
	.chf-focus-tools__list {
		display: flex;
		flex-wrap: wrap;
		grid-template-columns: none;
	}
	/* Desktop : tous les outils dans la rangée ; le <details> reste masqué. */
	.chf-focus-tools__item--deferred {
		display: list-item !important;
	}
	.chf-focus-tools--has-deferred .chf-focus-tools__more {
		display: none !important;
	}
}
body .chf-hero a.chf-focus-tools__link,
body .entry-content a.chf-focus-tools__link,
#page .chf-hero a.chf-focus-tools__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0.28rem 0.65rem !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	line-height: 1.2;
	white-space: nowrap;
	font-family: inherit !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
body .chf-hero a.chf-focus-tools__link--emphasis {
	border-color: rgba(255, 209, 102, 0.55) !important;
	background: rgba(255, 209, 102, 0.18) !important;
}
.chf-focus-tools__more {
	display: none;
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.88);
}
.chf-focus-tools__more summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	opacity: 0.9;
}
.chf-focus-tools__more summary::-webkit-details-marker {
	display: none;
}
.chf-focus-tools__list--extra {
	margin-top: 0.4rem;
}
.chf-spotlight__img {
	object-fit: cover;
}
@media (max-width: 720px) {
	.chf-spotlight__img {
		object-position: var(--chf-spot-focal-m, center center) !important;
	}
}
.chf-spotlight__mark--slot .chf-spotlight__mark-hint {
	font-size: 0.65rem;
	letter-spacing: 0.04em;
	opacity: 0.72;
	text-transform: none;
	font-weight: 500;
	font-family: inherit;
}
.chf-spotlight__mark--silent .chf-spotlight__mark-hint {
	display: none;
}
.chf-spotlight__more {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	font-family: inherit;
	max-width: 36ch;
}
.chf-spotlight__more summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}
.chf-spotlight__more summary::-webkit-details-marker {
	display: none;
}
.chf-spotlight__more-text {
	margin: 0.35rem 0 0;
	opacity: 0.9;
	max-width: 36ch;
	max-height: 4.8em;
	overflow: auto;
	white-space: pre-line;
}
.chf-hero__action--secondary {
	margin-left: 0.5rem;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	box-shadow: none !important;
}
.chf-spotlight__badge,
.chf-spotlight__text,
.chf-focus-tools,
.chf-hero__action--spotlight {
	font-family: inherit;
}

.chf-spotlight__action-wrap {
	margin: 0.4rem 0 0.1rem;
}

@media (min-width: 901px) {
	.chf-focus-tools__more {
		display: none !important;
	}
	.chf-focus-tools__item--deferred {
		display: list-item !important;
	}
	.chf-focus-tools {
		margin-top: 0.45rem;
		gap: 0.35rem;
	}
	.chf-hero__secondary--hub {
		margin-top: 0.45rem;
	}
	body .chf-hero a.chf-hero__univers--hub,
	body .entry-content a.chf-hero__univers--hub {
		min-width: min(100%, 16.5rem);
		min-height: 40px;
		max-width: 22rem;
	}
	body .chf-hero a.chf-hero__action--spotlight {
		min-height: 50px;
		padding: 0.65rem 1.4rem !important;
		font-size: 1rem !important;
	}
}

@media (max-width: 767px) {
	body.cd-tempo-active .chf-hero--xl.chf-hero--v3 {
		margin-bottom: 1.25rem;
	}
	body.cd-tempo-active .cd-home-v3-today,
	body.cd-tempo-active [data-cd-home-today],
	body.cd-tempo-active .cd-home-v3__today {
		scroll-margin-bottom: calc(var(--cd-mobile-ui-stack-h, 120px) + 0.5rem);
	}
}

/* Galaxy Fold / très étroit : paddings resserrés, ratio 16:9 conservé. */
@media (max-width: 320px) {
	.chf-hero__inner,
	.chf-hero__inner--hub,
	.chf-hero--theme-local .chf-hero__inner--hub {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		gap: 0.22rem;
	}
}


/* ============================================================
 * LAYOUT FINAL — panel LEFT (≥901) + stacked ≤900 + guides admin
 * TABLET_BREAKPOINT = 900
 * 1.7.22 : aération panneau, fond Hub plus lisible, mobile avec ambiance Hub
 * ============================================================ */

/* Desktop ≥901 : panneau gauche aéré + fond Hub à droite */
@media (min-width: 901px) {
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub,
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub.chf-hero__inner--panel-left,
	.chf-hero--v3 .chf-hero__inner--panel-left {
		margin-right: auto;
		margin-left: clamp(0.85rem, 2.2vw, 2rem);
		width: clamp(21rem, 38%, 28rem);
		max-width: 40%;
		justify-content: flex-start;
		align-self: stretch;
		padding-top: clamp(0.9rem, 1.7vw, 1.35rem);
		padding-bottom: clamp(1.15rem, 2vw, 1.65rem);
		padding-left: clamp(0.35rem, 0.8vw, 0.55rem);
		padding-right: clamp(0.35rem, 0.8vw, 0.55rem);
	}

	.chf-hero--v3.chf-hero--panel-left {
		display: flex;
		align-items: stretch;
		/* Hauteur pilotée par le panneau — ne plus clipper le bouton Hub */
		min-height: clamp(440px, 54vh, 620px);
		max-height: none !important;
		height: auto !important;
		overflow: visible !important;
		padding-bottom: 0.55rem;
		box-sizing: border-box;
	}

	/* Overlay : panneau à gauche → assombrir gauche, laisser respirer la droite (cathédrale / sphères) */
	.chf-hero--v3.chf-hero--panel-left .chf-hero__overlay {
		background:
			linear-gradient(
				90deg,
				rgba(8, 16, 36, 0.74) 0%,
				rgba(8, 16, 36, 0.4) 32%,
				rgba(8, 16, 36, 0.1) 50%,
				rgba(8, 16, 36, 0.04) 68%,
				rgba(8, 16, 36, 0.08) 100%
			),
			linear-gradient(to top, rgba(8, 16, 36, 0.18) 0%, transparent 38%);
	}

	/* Hub media wrapper : navy fallback ; seul le média est clipé (pas le panneau) */
	.chf-hero--v3.chf-hero--panel-left .chf-hero__media--global {
		overflow: hidden;
		background: #0b1f4d;
	}

	/*
	 * Hub desktop cover — focale BO (--chf-focal-d).
	 * Les hacks dézoom #412208 sont scopés sous .chf-hero--hub-provisional uniquement.
	 */
	.chf-hero--v3.chf-hero--panel-left .chf-hero__media--global picture {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		display: block;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-hero__img--global {
		object-fit: cover;
		object-position: var(--chf-focal-d, center center);
		transform: none;
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
	}

	/* Provisoire #412208 only — ne pas réutiliser pour le nouveau Hub */
	.chf-hero--v3.chf-hero--panel-left.chf-hero--hub-provisional .chf-hero__media--global picture {
		inset: 0% -28% -32% -14%;
		width: auto;
		height: auto;
	}

	.chf-hero--v3.chf-hero--panel-left.chf-hero--hub-provisional .chf-hero__img--global {
		object-position: var(--chf-hub-dezoom-pos, 72% 6%) !important;
		transform-origin: 72% 10%;
	}

	/* Audit only (?chf_audit=1&chf_hub_fit=contain) — ne pas livrer en prod */
	.chf-hero--v3.chf-hero--hub-fit-contain .chf-hero__media--global {
		background: #0b1f4d;
	}
	.chf-hero--v3.chf-hero--hub-fit-contain .chf-hero__media--global picture {
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}
	.chf-hero--v3.chf-hero--hub-fit-contain .chf-hero__img--global {
		object-fit: contain !important;
		object-position: center center !important;
		min-width: 0 !important;
		min-height: 0 !important;
		width: 100% !important;
		height: 100% !important;
		transform: none !important;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight,
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight--theme-local,
	.chf-hero--v3.chf-hero--panel-left article.chf-spotlight {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		gap: 0.4rem;
		padding: 0.75rem 0.85rem 1.05rem;
		width: 100%;
		height: auto;
		max-height: none;
		box-sizing: border-box;
		overflow: visible;
		justify-content: flex-start;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__media,
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight--theme-local .chf-spotlight__media {
		order: -1;
		width: 100%;
		max-width: none;
		aspect-ratio: 16 / 9;
		height: auto;
		min-height: 0;
		max-height: min(168px, 30%);
		border-radius: 14px;
		flex: 0 1 auto;
		overflow: hidden;
		background: rgba(11, 31, 77, 0.35);
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__media picture,
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__media .chf-spotlight__img,
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__media .chf-spotlight__mark {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: var(--chf-spot-focal-d, center center);
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__body {
		gap: 0.32rem;
		flex: 0 0 auto;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__title {
		font-size: clamp(1.15rem, 1.4vw, 1.45rem);
		max-width: none;
		line-height: 1.16;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__text {
		font-size: 0.86rem;
		line-height: 1.35;
		max-width: none;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__badge {
		font-size: 0.66rem;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight__action-wrap {
		margin: 0.28rem 0 0.1rem;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight > .chf-focus-tools {
		margin: 0.28rem 0 0.1rem;
		padding: 0;
		flex: 0 0 auto;
	}

	/* Safe area basse : bouton Hub jamais collé / coupé */
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight > .chf-hero__secondary--hub {
		margin: 0.55rem 0 0.2rem;
		padding: 0 0 0.15rem;
		flex: 0 0 auto;
	}

	/* « En savoir plus » sous le Hub → source de coupe visuelle */
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight > .chf-spotlight__more {
		display: none !important;
	}

	.chf-hero--v3.chf-hero--panel-left .chf-spotlight--theme-local {
		grid-template-columns: none;
	}
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight--theme-local .chf-spotlight__media,
	.chf-hero--v3.chf-hero--panel-left .chf-spotlight--theme-local .chf-spotlight__mark {
		max-height: min(168px, 30%);
		min-height: 0;
	}
}

/* Stacked layout : tablette + mobile (≤900) — Hub ambiance + Focus stack */
@media (max-width: 900px) {
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub,
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--hub.chf-hero__inner--panel-left,
	.chf-hero--v3.chf-hero--panel-left .chf-hero__inner--panel-left,
	.chf-hero--v3 .chf-hero__inner--panel-left {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		/* Full-bleed Focus card — image ≥95% du viewport / panneau */
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-top: 0.2rem !important;
		padding-bottom: calc(0.28rem + env(safe-area-inset-bottom, 0px)) !important;
		background: transparent !important;
	}

	/* Ambiance Hub mobile : afficher le fond global (taille WP large / srcset) */
	.chf-hero--v3 .chf-hero__media--global {
		display: block !important;
		position: absolute !important;
		inset: 0 !important;
		z-index: 0 !important;
	}

	.chf-hero--v3 .chf-hero__overlay {
		display: block !important;
		background:
			linear-gradient(
				180deg,
				rgba(8, 16, 36, 0.35) 0%,
				rgba(8, 16, 36, 0.55) 42%,
				rgba(8, 16, 36, 0.88) 100%
			) !important;
	}

	.chf-hero--v3.chf-hero--xl {
		background: #0b1f4d;
		max-height: none !important;
		height: auto !important;
		min-height: 0;
		position: relative;
		isolation: isolate;
	}

	.chf-hero--v3 .chf-hero__img--global {
		object-fit: cover !important;
		object-position: var(--chf-focal-m, 62% 40%) !important;
		min-height: 100%;
	}

	.chf-hero--v3 .chf-spotlight,
	.chf-hero--v3 .chf-spotlight--theme-local,
	.chf-hero--v3 article.chf-spotlight {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		grid-template-columns: none !important;
		grid-template-rows: none !important;
		grid-template-areas: none !important;
		align-items: stretch !important;
		gap: 0 !important;
		padding: 0 0 0.12rem !important;
		width: 100% !important;
		max-width: none !important;
		background: rgba(8, 16, 36, 0.72) !important;
		border: 1px solid rgba(255, 255, 255, 0.16);
		border-radius: 12px;
		overflow: hidden;
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
	}

	.chf-hero--v3 .chf-spotlight__media,
	.chf-hero--v3 .chf-spotlight--theme-local .chf-spotlight__media,
	.chf-hero--v3 article.chf-spotlight > .chf-spotlight__media {
		order: -1 !important;
		width: 100% !important;
		max-width: none !important;
		/* Focus = encart secondaire (image plus basse que le Hub peek) */
		aspect-ratio: 2.4 / 1 !important;
		height: auto !important;
		min-height: 112px !important;
		max-height: min(132px, 34vw) !important;
		border-radius: 0;
		overflow: hidden;
		background: rgba(11, 31, 77, 0.4);
	}

	.chf-hero--v3 .chf-spotlight__media picture,
	.chf-hero--v3 .chf-spotlight__media .chf-spotlight__img,
	.chf-hero--v3 .chf-spotlight__media .chf-spotlight__mark {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		visibility: visible !important;
	}

	.chf-hero--v3 .chf-spotlight__body {
		padding: 0.28rem 0.7rem 0.08rem !important;
		gap: 0.08rem !important;
		background: transparent !important;
	}

	.chf-hero--v3 .chf-spotlight__badge {
		font-size: 0.58rem !important;
		margin: 0 !important;
		letter-spacing: 0.06em;
		opacity: 0.9;
	}

	.chf-hero--v3 .chf-spotlight__title {
		font-size: clamp(0.95rem, 4.4vw, 1.12rem) !important;
		line-height: 1.1 !important;
		margin: 0 !important;
	}

	.chf-hero--v3 .chf-spotlight__text {
		font-size: 0.74rem !important;
		line-height: 1.22 !important;
		margin: 0 !important;
		max-width: none !important;
		opacity: 0.92;
	}

	.chf-hero--v3 .chf-spotlight__action-wrap {
		margin: 0.14rem 0 0.02rem !important;
	}

	body .chf-hero--v3 .chf-spotlight__action-wrap a.chf-hero__action,
	body .chf-hero--v3 a.chf-hero__action {
		min-height: 42px !important;
		padding: 0.42rem 0.8rem !important;
		font-size: clamp(0.84rem, 3.4vw, 0.92rem) !important;
		box-sizing: border-box !important;
	}

	.chf-hero--v3 .chf-spotlight > .chf-focus-tools {
		margin: 0.12rem 0.55rem 0.08rem !important;
		padding: 0 !important;
		visibility: visible !important;
	}

	.chf-hero--v3 .chf-focus-tools__list {
		gap: 0.3rem !important;
	}

	body .chf-hero--v3 a.chf-focus-tools__link,
	body .entry-content .chf-hero--v3 a.chf-focus-tools__link {
		min-height: 38px !important;
		padding: 0.32rem 0.5rem !important;
		font-size: 0.74rem !important;
		box-sizing: border-box !important;
	}

	/*
	 * Hub peek : vrai aperçu univers Calendanse (pas une fente décorative).
	 * Plus de surface image / sphères ; bouton violet prioritaire.
	 */
	.chf-hero--v3 .chf-spotlight > .chf-hero__secondary--hub {
		position: relative !important;
		display: flex !important;
		align-items: flex-end !important;
		justify-content: stretch !important;
		min-height: 128px !important;
		max-height: 136px !important;
		margin: 0.18rem 0.55rem 0.38rem !important;
		padding: 0.7rem 0.55rem 0.55rem !important;
		overflow: hidden !important;
		border-radius: 14px !important;
		border: 1px solid rgba(255, 255, 255, 0.22);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
		box-sizing: border-box;
	}

	.chf-hub-peek {
		display: block !important;
		position: absolute !important;
		inset: 0 !important;
		z-index: 0 !important;
		pointer-events: none !important;
	}

	.chf-hub-peek > picture {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
	}

	.chf-hub-peek__img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		/* Focal mobile Hub (--chf-focal-m) ; fallback cadre provisoire #412208 */
		object-position: var(--chf-focal-m, 74% 8%) !important;
	}

	.chf-hub-peek__veil {
		position: absolute !important;
		inset: 0 !important;
		/* Voile plus léger : l’image Hub doit se lire clairement */
		background:
			linear-gradient(
				180deg,
				rgba(8, 16, 36, 0.05) 0%,
				rgba(8, 16, 36, 0.18) 42%,
				rgba(8, 16, 36, 0.62) 100%
			),
			linear-gradient(
				90deg,
				rgba(8, 16, 36, 0.12) 0%,
				transparent 60%
			) !important;
	}

	.chf-hero--v3 .chf-spotlight > .chf-hero__secondary--hub > .chf-hero__univers,
	.chf-hero--v3 .chf-spotlight > .chf-hero__secondary--hub > a.chf-hero__univers--hub,
	.chf-hero--v3 .chf-spotlight > .chf-hero__secondary--hub > .chf-hub-panel-trigger,
	.chf-hero--v3 .chf-spotlight > .chf-hero__secondary--hub > a {
		position: relative !important;
		z-index: 1 !important;
	}

	body .chf-hero--v3 a.chf-hero__univers--hub,
	body .chf-hero--v3 a.chf-hero__univers.chf-hero__univers--hub,
	body .entry-content .chf-hero--v3 a.chf-hero__univers--hub,
	#page .chf-hero--v3 a.chf-hero__univers--hub,
	#page body .chf-hero--v3 a.chf-hero__univers--hub {
		display: flex !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		white-space: normal !important;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 0.35rem;
		padding: 0.38rem 0.48rem !important;
		font-size: clamp(0.74rem, 3.1vw, 0.86rem) !important;
		line-height: 1.15 !important;
		min-height: 44px !important;
		box-sizing: border-box;
	}

	.chf-hero--v3 .chf-hero__univers-label {
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: unset !important;
		flex: 1 1 auto;
		min-width: 0;
	}

	.chf-hero--v3 .chf-spotlight__more {
		display: none !important;
	}

	.chf-hero--v3 .chf-focus-tools__item,
	.chf-hero--v3 .chf-focus-tools__link {
		visibility: visible !important;
	}

	/* 3e outil → Hub uniquement (logique --deferred, ≤900) */
	.chf-focus-tools__item--deferred {
		display: none !important;
	}

	.chf-focus-tools--has-deferred .chf-focus-tools__more {
		display: none !important;
	}
}

/* Hub peek : desktop = masqué (le Hub global plein cadre suffit) */
@media (min-width: 901px) {
	.chf-hub-peek {
		display: none !important;
	}
}

/* Guides admin ONLY — jamais générés en public sans .chf-hero--guides */
.chf-layout-guides {
	display: none;
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 5;
}

.chf-hero--guides .chf-layout-guides,
.chf-structure-preview__stage--guides .chf-hero--guides .chf-layout-guides {
	display: block;
}

.chf-layout-guides__zone {
	position: absolute;
	box-sizing: border-box;
	border: 1.5px dashed rgba(255, 255, 255, 0.55);
	border-radius: 6px;
}

.chf-layout-guides__label {
	position: absolute;
	top: 4px;
	left: 6px;
	font: 600 10px/1.2 ui-sans-serif, system-ui, sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	padding: 2px 5px;
	border-radius: 3px;
	max-width: calc(100% - 12px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chf-layout-guides__zone--focus-panel-safe-area {
	background: rgba(240, 138, 75, 0.18);
	border-color: #f08a4b;
	z-index: 3;
}

.chf-layout-guides__zone--spheres-safe-area {
	background: rgba(106, 63, 181, 0.2);
	border-color: #6a3fb5;
	z-index: 2;
}

.chf-layout-guides__zone--global-visual-free-area {
	background: rgba(56, 189, 248, 0.12);
	border-color: #38bdf8;
	z-index: 1;
}

.chf-layout-guides__zone--global-visual-critical-area {
	background: rgba(34, 197, 94, 0.16);
	border-color: #22c55e;
	z-index: 2;
}

@media (max-width: 900px) {
	.chf-layout-guides {
		display: none !important;
	}
}

/* Compat : anciennes classes panel-right → LEFT */
.chf-hero--v3.chf-hero--panel-right .chf-hero__inner--hub,
.chf-hero--v3 .chf-hero__inner--panel-right {
	margin-right: auto;
	margin-left: clamp(0.75rem, 2.5vw, 2.25rem);
}
@media (min-width: 901px) {
	.chf-hero--v3.chf-hero--panel-right .chf-hero__inner--hub,
	.chf-hero--v3 .chf-hero__inner--panel-right {
		width: clamp(20rem, 36%, 26rem);
		max-width: 38%;
		min-width: 0;
	}
	.chf-hero--v3.chf-hero--panel-right {
		display: flex;
		align-items: stretch;
		min-height: clamp(460px, 58vh, 640px);
		max-height: min(680px, 86vh);
	}
}
@media (max-width: 900px) {
	.chf-hero--v3.chf-hero--panel-right .chf-hero__inner--hub,
	.chf-hero--v3.chf-hero--panel-right .chf-hero__inner--panel-right {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
	}
}

/* —— Zoom / cadrage non destructif (cover) —— */
@media (min-width: 901px) {
	.chf-spotlight__img {
		object-position: var(--chf-spot-focal-d, center center);
		transform: scale(var(--chf-spot-zoom-d, 1));
		transform-origin: var(--chf-spot-focal-d, center center);
	}
}
@media (max-width: 900px) {
	.chf-spotlight__img {
		object-position: var(--chf-spot-focal-m, var(--chf-spot-focal-d, center center));
		transform: scale(var(--chf-spot-zoom-m, var(--chf-spot-zoom-d, 1)));
		transform-origin: var(--chf-spot-focal-m, var(--chf-spot-focal-d, center center));
	}
}

/* —— Tool explain modal / bottom-sheet —— */
.chf-tool-explain {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.chf-tool-explain[hidden] { display: none !important; }
.chf-tool-explain__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 16, 36, 0.55);
}
.chf-tool-explain__panel {
	position: relative;
	z-index: 1;
	width: min(420px, calc(100vw - 2rem));
	max-height: min(80vh, 520px);
	overflow: auto;
	padding: 1.25rem 1.25rem 1rem;
	border-radius: 16px;
	background: #fff;
	color: #0b1f4d;
	box-shadow: 0 18px 48px rgba(8, 16, 36, 0.28);
	outline: none;
}
.chf-tool-explain.is-sheet {
	align-items: flex-end;
}
.chf-tool-explain.is-sheet .chf-tool-explain__panel {
	width: 100%;
	max-width: none;
	border-radius: 18px 18px 0 0;
	padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.chf-tool-explain__x {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #334155;
}
.chf-tool-explain__title {
	margin: 0 2rem 0.55rem 0;
	font-family: "Syne", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	color: #0b1f4d;
}
.chf-tool-explain__desc {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #334155;
}
.chf-tool-explain__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}
.chf-tool-explain__open,
.chf-tool-explain__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	cursor: pointer;
}
.chf-tool-explain__open {
	background: #f08a4b;
	color: #0b1f4d;
	border: 0;
}
.chf-tool-explain__close {
	background: #f1f5f9;
	color: #0b1f4d;
	border: 1px solid #cbd5e1;
}
.chf-tool-explain__preview-note {
	margin: 0.75rem 0 0;
	font-size: 0.78rem;
	color: #64748b;
}
html.chf-tool-explain-open {
	overflow: hidden;
}
