/* Panneau Explorer Calendanse — modal desktop / bottom sheet + accordéons */

.chf-hub-panel {
	--chf-hub-cyan: #3db8c5;
	--chf-hub-violet: #8b6ccf;
	--chf-hub-rose: #d45a9a;
	--chf-hub-turquoise: #2eb8a0;
	--chf-hub-amber: #e0a84a;
	--chf-hub-orange: #f08a4b;
	--chf-hub-green: #5daf7a;
	--chf-hub-indigo: #6a7fd4;
	--chf-hub-accent: var(--chf-hub-orange);
	--chf-hub-surface: #121a33;
	--chf-hub-surface-2: #182240;
	position: fixed;
	inset: 0;
	z-index: 100300;
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.chf-hub-panel.is-open {
	display: flex;
}

.chf-hub-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 10, 24, 0.62);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.chf-hub-panel.is-visible .chf-hub-panel__backdrop {
	opacity: 1;
}

.chf-hub-panel__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(165deg, #152040 0%, var(--chf-hub-surface) 48%, #0e152c 100%);
	color: #f4f6fb;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(110%);
	transition: transform 0.22s ease;
	outline: none;
}

.chf-hub-panel.is-visible .chf-hub-panel__dialog {
	transform: translateY(0);
}

.chf-hub-panel__grab {
	width: 42px;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
	margin: 10px auto 0;
	flex: 0 0 auto;
}

.chf-hub-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex: 0 0 auto;
	position: sticky;
	top: 0;
	z-index: 2;
	background: #152040;
	background: linear-gradient(180deg, #1a2748 0%, #152040 100%);
	opacity: 1;
	color: #ffffff;
}

.chf-hub-panel__head-text {
	min-width: 0;
	flex: 1 1 auto;
	opacity: 1;
	color: #ffffff;
}

.chf-hub-panel__kicker {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 1;
	color: #b8c4dc !important;
	font-weight: 600;
}

#chf-hub-panel .chf-hub-panel__title,
.chf-hub-panel h2.chf-hub-panel__title,
.chf-hub-panel__title {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.25;
	font-weight: 750;
	opacity: 1;
	color: #ffffff !important;
}

#chf-hub-panel .chf-hub-panel__lead,
.chf-hub-panel__lead {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	opacity: 1;
	color: #d7e2f5 !important;
	line-height: 1.35;
}

.chf-hub-panel__close {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
	opacity: 1;
}

.chf-hub-panel__close:hover,
.chf-hub-panel__close:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	outline: 2px solid var(--chf-hub-orange);
	outline-offset: 2px;
	color: #ffffff !important;
}

.chf-hub-panel__body {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 14px 18px;
	flex: 1 1 auto;
	overscroll-behavior: contain;
}

@media (max-width: 720px) {
	.chf-hub-panel__body {
		padding-bottom: calc(18px + var(--cd-fab-dock-inset, 0px) + env(safe-area-inset-bottom, 0px) + 56px);
	}
	.chf-hub-panel__dialog {
		max-height: min(90vh, 100dvh);
	}
	.chf-hub-panel__head {
		padding-bottom: 8px;
	}
	.chf-hub-panel__lead {
		font-size: 0.82rem;
		margin-top: 0.25rem;
	}
	.chf-hub-panel__search-wrap {
		position: sticky;
		top: 0;
		z-index: 2;
		background: #152040;
		padding: 6px 2px 10px;
		margin: 0 0 8px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
	.chf-hub-panel__search {
		padding: 0.42rem 0.7rem;
		font-size: 0.86rem;
		min-height: 40px;
	}
}

.chf-hub-panel__search-wrap {
	display: block;
	margin: 0 0 10px;
	padding: 0 2px;
}

.chf-hub-panel__search {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 0.9rem;
}

.chf-hub-panel__search::placeholder {
	color: #a8b6d0;
	opacity: 1;
}

.chf-hub-panel__search:focus-visible {
	outline: 2px solid var(--chf-hub-orange);
	outline-offset: 2px;
	border-color: rgba(240, 138, 75, 0.55);
}

.chf-hub-panel__search-empty {
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.75rem;
	font-size: 0.85rem;
	opacity: 0.8;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
}

.chf-hub-panel__groups {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* —— Accordéons univers —— */
.chf-hub-panel__acc {
	--chf-hub-accent: var(--chf-hub-indigo);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	opacity: 1;
	color: #fff;
}

.chf-hub-panel__acc:not(.is-open) {
	opacity: 1;
	background: rgba(255, 255, 255, 0.07);
}

.chf-hub-panel__acc.is-open {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.14);
}

.chf-hub-panel__acc[data-chf-hub-color="cyan"] { --chf-hub-accent: var(--chf-hub-cyan); }
.chf-hub-panel__acc[data-chf-hub-color="violet"] { --chf-hub-accent: var(--chf-hub-violet); }
.chf-hub-panel__acc[data-chf-hub-color="rose"] { --chf-hub-accent: var(--chf-hub-rose); }
.chf-hub-panel__acc[data-chf-hub-color="turquoise"] { --chf-hub-accent: var(--chf-hub-turquoise); }
.chf-hub-panel__acc[data-chf-hub-color="amber"] { --chf-hub-accent: var(--chf-hub-amber); }
.chf-hub-panel__acc[data-chf-hub-color="orange"] { --chf-hub-accent: var(--chf-hub-orange); }
.chf-hub-panel__acc[data-chf-hub-color="green"] { --chf-hub-accent: var(--chf-hub-green); }
.chf-hub-panel__acc[data-chf-hub-color="indigo"] { --chf-hub-accent: var(--chf-hub-indigo); }

.chf-hub-panel__acc-heading {
	margin: 0;
}

.chf-hub-panel__acc-btn {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.85rem 0.9rem;
	border: 0;
	background: transparent;
	color: #fff;
	text-align: left;
	cursor: pointer;
	border-left: 3px solid var(--chf-hub-accent);
	font: inherit;
	opacity: 1;
}

.chf-hub-panel__acc-btn:hover,
.chf-hub-panel__acc-btn:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

.chf-hub-panel__acc-btn:focus-visible {
	box-shadow: inset 0 0 0 2px var(--chf-hub-accent);
}

.chf-hub-panel__acc-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	background: color-mix(in srgb, var(--chf-hub-accent) 28%, transparent);
	color: var(--chf-hub-accent);
	flex: 0 0 auto;
	margin-top: 1px;
	opacity: 1;
}

.chf-hub-panel__acc-copy {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	flex: 1 1 auto;
	opacity: 1;
}

.chf-hub-panel__acc-title {
	font-size: 0.98rem;
	font-weight: 750;
	letter-spacing: 0.01em;
	line-height: 1.25;
	color: #ffffff;
	opacity: 1;
}

.chf-hub-panel__acc-desc {
	font-size: 0.8rem;
	line-height: 1.4;
	font-weight: 450;
	color: #e4ecf8;
	opacity: 1;
}

.chf-hub-panel__acc-count {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--chf-hub-accent);
	opacity: 1;
	margin-top: 0.12rem;
}

.chf-hub-panel__acc-chev {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--chf-hub-accent);
	border-bottom: 2px solid var(--chf-hub-accent);
	transform: rotate(45deg);
	margin: 10px 4px 0 0;
	flex: 0 0 auto;
	transition: transform 0.18s ease;
	opacity: 1;
}

.chf-hub-panel__acc.is-open .chf-hub-panel__acc-chev {
	transform: rotate(225deg);
	margin-top: 14px;
}

.chf-hub-panel__acc-panel {
	padding: 0 0.75rem 0.85rem;
}

.chf-hub-panel__acc-panel[hidden] {
	display: none !important;
}

.chf-hub-panel.is-searching .chf-hub-panel__acc-btn {
	pointer-events: none;
}

.chf-hub-panel.is-searching .chf-hub-panel__acc-chev {
	opacity: 0.35;
}

.chf-hub-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.chf-hub-panel__list--compact {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.chf-hub-panel__link {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.42rem 0.5rem;
	border-radius: 10px;
	text-decoration: none !important;
	color: inherit !important;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.chf-hub-panel__link--chip {
	font-size: 0.78rem;
	line-height: 1.25;
}

.chf-hub-panel__link:hover,
.chf-hub-panel__link:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: color-mix(in srgb, var(--chf-hub-accent) 45%, transparent);
	outline: none;
}

.chf-hub-panel__link:focus-visible {
	box-shadow: 0 0 0 2px var(--chf-hub-accent);
}

.chf-hub-panel__icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--chf-hub-accent) 18%, transparent);
	color: var(--chf-hub-accent);
	flex: 0 0 auto;
}

.chf-hub-panel__icon--sm {
	width: 26px;
	height: 26px;
	border-radius: 7px;
}

.chf-hub-panel__link-text {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	min-width: 0;
	flex: 1 1 auto;
}

.chf-hub-panel__link-label {
	font-weight: 650;
	font-size: 0.8rem;
	line-height: 1.25;
	color: #ffffff;
}

.chf-hub-panel__link-desc {
	font-size: 0.7rem;
	opacity: 1;
	color: #c5d0e6;
	line-height: 1.28;
	font-weight: 450;
}

.chf-hub-panel__badge {
	flex: 0 0 auto;
	align-self: center;
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	padding: 0.15rem 0.4rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	opacity: 0.85;
	white-space: nowrap;
}

.chf-hub-panel__link--gated .chf-hub-panel__badge {
	color: #ffd166;
	border-color: rgba(255, 209, 102, 0.35);
	background: rgba(255, 209, 102, 0.1);
}

.chf-hub-panel__access {
	display: none;
}

.chf-hub-panel__foot {
	padding: 10px 18px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	flex: 0 0 auto;
	text-align: center;
}

.chf-hub-panel__landing {
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 0.82rem;
	text-decoration: underline !important;
}

html.chf-hub-panel-open,
body.chf-hub-panel-open {
	overflow: hidden !important;
}

/* Overlays home sous le Hub (ne pas supprimer — abaisser le stacking uniquement) */
body.chf-hub-panel-open .cd-tempo,
body.chf-hub-panel-open #cd-tempo,
body.chf-hub-panel-open .cd-tempo-dock,
body.chf-hub-panel-open .cd-tempo-fallback,
body.chf-hub-panel-open .cdl-global-live,
body.chf-hub-panel-open .cdl-global-live--float,
body.chf-hub-panel-open #cdl-global-live-toggle,
body.chf-hub-panel-open .cdl-global-live__fab,
body.chf-hub-panel-open .cd-fab-dock,
body.chf-hub-panel-open [class*="cd-fab"],
body.chf-hub-panel-open [data-cd-aide],
body.chf-hub-panel-open .cd-aide,
body.chf-hub-panel-open .cd-aide-fab,
body.chf-hub-panel-open .cda-assistant__toggle,
body.chf-hub-panel-open #ast-scroll-top,
body.chf-hub-panel-open .cmplz-manage-consent,
body.chf-hub-panel-open .cmplz-btn.cmplz-manage-consent {
	z-index: 100200 !important;
}

@media (min-width: 560px) {
	.chf-hub-panel__list--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 821px) {
	.chf-hub-panel {
		align-items: center;
		padding: clamp(20px, 3vw, 40px);
	}

	.chf-hub-panel__grab {
		display: none;
	}

	.chf-hub-panel__dialog {
		width: min(1180px, calc(100vw - 64px));
		max-width: min(1180px, calc(100vw - 64px));
		max-height: min(860px, 88vh);
		border-radius: 18px;
		transform: translateY(18px) scale(0.98);
		opacity: 0;
		transition: transform 0.2s ease, opacity 0.2s ease;
		box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	}

	.chf-hub-panel.is-visible .chf-hub-panel__dialog {
		transform: translateY(0) scale(1);
		opacity: 1;
	}

	.chf-hub-panel__head {
		padding: 16px 22px 12px;
	}

	.chf-hub-panel__body {
		padding: 12px 18px 20px;
	}

	.chf-hub-panel__groups {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 12px;
		align-items: start;
	}

	/* Univers ouvert : pleine largeur + outils en colonnes (évite le mur) */
	.chf-hub-panel__acc.is-open {
		grid-column: 1 / -1;
	}

	.chf-hub-panel__list--compact {
		grid-template-columns: 1fr;
	}

	.chf-hub-panel__acc.is-open .chf-hub-panel__list--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px 8px;
	}

	.chf-hub-panel.is-searching .chf-hub-panel__groups {
		grid-template-columns: 1fr;
	}

	.chf-hub-panel.is-searching .chf-hub-panel__acc {
		grid-column: auto;
	}

	.chf-hub-panel.is-searching .chf-hub-panel__list--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.chf-hub-panel__dialog {
		width: min(1200px, calc(100vw - 80px));
		max-width: min(1200px, calc(100vw - 80px));
	}

	.chf-hub-panel__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.chf-hub-panel__acc.is-open .chf-hub-panel__list--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.chf-hub-panel.is-searching .chf-hub-panel__list--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

	.chf-hub-panel__acc.is-open {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chf-hub-panel__backdrop,
	.chf-hub-panel__dialog,
	.chf-hub-panel__acc-chev {
		transition: none !important;
	}
}

.cdsn-home-hub__lead {
	margin: 0 0 0.65rem;
	font-size: 0.88rem;
	opacity: 0.85;
}

.cdsn-home-hub__open {
	margin: 0 0 0.75rem;
}

.cdsn-home-hub__trigger {
	display: inline-flex;
	align-items: center;
	font-weight: 650;
}

.cdsn-home-hub__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
}

.cdsn-home-hub__quick a {
	text-decoration: underline;
}
