.cd-wayfind {
	--cd-wayfind-night: #0b1f4d;
	--cd-wayfind-ink: #14233f;
	--cd-wayfind-muted: #5b6b86;
	--cd-wayfind-line: rgba(11, 31, 77, 0.12);
	--cd-wayfind-fill: #ffffff;
	--cd-wayfind-icon-bg: rgba(11, 31, 77, 0.08);
	width: 100%;
	max-width: 1020px;
	margin: 0 auto 20px;
	padding: 0;
	box-sizing: border-box;
}

.cdm-wrap .cd-wayfind {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--cd-wayfind-line);
}

.cd-wayfind__head {
	margin: 0 0 12px;
}

.cd-wayfind__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cd-wayfind-muted);
}

.cd-wayfind__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--cd-wayfind-night);
	font-weight: 800;
}

.cd-wayfind__lead {
	margin: 4px 0 0;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--cd-wayfind-muted);
	max-width: 62ch;
}

.cd-wayfind__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.cd-wayfind__intents {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.cd-wayfind__card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 76px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--cd-wayfind-fill);
	border: 1px solid var(--cd-wayfind-line);
	box-shadow: 0 3px 10px rgba(11, 31, 77, 0.04);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
	margin: 0;
	position: relative;
	transition:
		transform 0.14s ease,
		box-shadow 0.14s ease,
		border-color 0.14s ease,
		background-color 0.14s ease;
}

.cd-wayfind__card:hover {
	transform: translateY(-1px);
	border-color: rgba(11, 31, 77, 0.2);
	box-shadow: 0 8px 18px rgba(11, 31, 77, 0.09);
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.cd-wayfind__card:active,
.cd-wayfind__card.is-pressed {
	transform: translateY(0) scale(0.985);
	box-shadow: 0 2px 8px rgba(11, 31, 77, 0.06);
}

.cd-wayfind__card:focus {
	outline: none;
}

.cd-wayfind__card:focus-visible {
	outline: 2px solid var(--cd-wayfind-night);
	outline-offset: 2px;
}

.cd-wayfind__card[aria-expanded="true"] {
	border-color: rgba(11, 31, 77, 0.22);
	background: #f3f5fa;
	box-shadow: 0 2px 8px rgba(11, 31, 77, 0.05);
}

.cd-wayfind__card[aria-expanded="true"]:hover,
.cd-wayfind__card[aria-expanded="true"]:focus-visible {
	transform: none;
	border-color: rgba(11, 31, 77, 0.28);
	background: #f3f5fa;
	box-shadow: 0 2px 8px rgba(11, 31, 77, 0.05);
	text-decoration: none;
	color: inherit;
}

.cd-wayfind__card[aria-expanded="true"] .cd-wayfind__icon {
	box-shadow: 0 0 0 2px currentColor;
}

.cd-wayfind__icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: var(--cd-wayfind-icon-bg);
	color: var(--cd-wayfind-night);
}

.cd-wayfind__card[data-cd-wayfind-id="dance-now"] .cd-wayfind__icon {
	background: rgba(106, 63, 181, 0.12);
	color: #5a35a0;
}

.cd-wayfind__card[data-cd-wayfind-id="learn"] .cd-wayfind__icon {
	background: rgba(30, 58, 95, 0.1);
	color: #1e3a5f;
}

.cd-wayfind__card[data-cd-wayfind-id="culture"] .cd-wayfind__icon {
	background: rgba(192, 75, 165, 0.12);
	color: #8a2e76;
}

.cd-wayfind__card[data-cd-wayfind-id="community"] .cd-wayfind__icon {
	background: rgba(240, 138, 75, 0.16);
	color: #b65a20;
}

.cd-wayfind__card[data-cd-wayfind-id="inspire"] .cd-wayfind__icon,
.cd-wayfind__card[data-cd-wayfind-id="exchange"] .cd-wayfind__icon {
	background: rgba(255, 209, 102, 0.28);
	color: #8a6208;
}

.cd-wayfind__svg {
	display: block;
	fill: currentColor;
}

.cd-wayfind__label {
	font-size: 0.98rem;
	font-weight: 750;
	line-height: 1.2;
	color: var(--cd-wayfind-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.cd-wayfind-journey {
	margin: 12px 0 0;
}

/* Smartphone : 2 + 2 + 1 pleine largeur */
.cd-wayfind__card:nth-child(5) {
	grid-column: 1 / -1;
}

/* Fold / tablette : 6 pistes, 3+2 100 % largeur — pas de 3 colonnes concurrentes */
@media (min-width: 600px) and (max-width: 959px) {
	.cd-wayfind__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 12px;
	}

	.cd-wayfind__card {
		min-height: 84px;
		padding: 16px 18px;
	}

	.cd-wayfind__card:nth-child(1),
	.cd-wayfind__card:nth-child(2),
	.cd-wayfind__card:nth-child(3) {
		grid-column: span 2;
	}

	.cd-wayfind__card:nth-child(4),
	.cd-wayfind__card:nth-child(5) {
		grid-column: span 3;
	}
}

/* Desktop : 5 cartes, une rangée */
@media (min-width: 960px) {
	.cd-wayfind {
		margin-bottom: 28px;
	}

	.cd-wayfind__head {
		margin-bottom: 14px;
	}

	.cd-wayfind__title {
		font-size: 1.35rem;
	}

	.cd-wayfind__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 12px;
	}

	.cd-wayfind__card,
	.cd-wayfind__card:nth-child(1),
	.cd-wayfind__card:nth-child(2),
	.cd-wayfind__card:nth-child(3),
	.cd-wayfind__card:nth-child(4),
	.cd-wayfind__card:nth-child(5) {
		grid-column: auto;
		min-height: 88px;
		padding: 16px 14px;
	}
}

/* App : occuper 100 % du dashboard (y compris la grille 2 col dès 720 px) */
body.cdsn-simple-mode .cd-wayfind,
.cdsn-home-dashboard > .cd-wayfind {
	max-width: none;
	width: 100%;
	margin: 0;
	grid-column: 1 / -1;
}

body.cdsn-simple-mode .cd-wayfind__eyebrow,
.cdsn-home-dashboard > .cd-wayfind .cd-wayfind__eyebrow,
body.cdsn-simple-mode .cd-wayfind__lead,
.cdsn-home-dashboard > .cd-wayfind .cd-wayfind__lead {
	display: none;
}

body.cdsn-simple-mode .cd-wayfind__head,
.cdsn-home-dashboard > .cd-wayfind .cd-wayfind__head {
	margin-bottom: 10px;
}

body.cdsn-simple-mode .cd-wayfind__title,
.cdsn-home-dashboard > .cd-wayfind .cd-wayfind__title {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--cdsn-muted, var(--cd-wayfind-muted));
	font-weight: 750;
}

@media (max-width: 360px) {
	.cd-wayfind__card {
		gap: 10px;
		padding: 12px 14px;
		min-height: 72px;
		border-radius: 14px;
	}

	.cd-wayfind__icon {
		width: 36px;
		height: 36px;
		border-radius: 11px;
	}

	.cd-wayfind__label {
		font-size: 0.92rem;
	}
}

.cd-wayfind__panels {
	width: 100%;
	max-width: none;
	margin: 8px 0 0;
	grid-column: 1 / -1;
	box-sizing: border-box;
}

.cd-wayfind__panel {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 12px;
	border-radius: 14px;
	background: #f6f7fb;
	border: 1px solid var(--cd-wayfind-line);
}

.cd-wayfind__panel[hidden],
.cd-wayfind__gate[hidden] {
	display: none !important;
}

.cd-wayfind__panel-kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cd-wayfind-night);
}

.cd-wayfind__opts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
}

.cd-wayfind__opt-item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.cd-wayfind__opt {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--cd-wayfind-line);
	box-shadow: none;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
	margin: 0;
}

.cd-wayfind__opt:hover,
.cd-wayfind__opt:focus-visible {
	border-color: rgba(11, 31, 77, 0.22);
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.cd-wayfind__opt:focus {
	outline: none;
}

.cd-wayfind__opt:focus-visible {
	outline: 2px solid var(--cd-wayfind-night);
	outline-offset: 2px;
}

.cd-wayfind__opt.is-locked[aria-expanded="true"] {
	border-color: var(--cd-wayfind-night);
	background: #f4f6fb;
}

.cd-wayfind__opt-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: var(--cd-wayfind-icon-bg);
	color: var(--cd-wayfind-night);
}

.cd-wayfind__opt-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.cd-wayfind__opt-label {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--cd-wayfind-ink);
	white-space: normal;
}

.cd-wayfind__opt-sub {
	font-size: 0.75rem;
	line-height: 1.25;
	color: var(--cd-wayfind-muted);
}

.cd-wayfind__badge {
	margin-left: auto;
	flex: 0 0 auto;
	font-size: 0.65rem;
	font-weight: 750;
	letter-spacing: 0.02em;
	padding: 3px 7px;
	border-radius: 999px;
	white-space: nowrap;
}

.cd-wayfind__badge--account {
	background: rgba(11, 31, 77, 0.08);
	color: #1e3a5f;
}

.cd-wayfind__badge--premium {
	background: rgba(255, 209, 102, 0.42);
	color: #5a35a0;
	border: 1px solid rgba(106, 63, 181, 0.22);
}

.cd-wayfind__gate {
	margin: 6px 0 4px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(11, 31, 77, 0.04);
	border: 1px solid var(--cd-wayfind-line);
}

.cd-wayfind__gate-msg {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--cd-wayfind-ink);
}

.cd-wayfind__gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.cd-wayfind__gate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid var(--cd-wayfind-line);
	background: #fff;
	color: var(--cd-wayfind-night);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 700;
	box-sizing: border-box;
}

.cd-wayfind__gate-btn:hover,
.cd-wayfind__gate-btn:focus-visible {
	text-decoration: none;
	color: var(--cd-wayfind-night);
}

.cd-wayfind__gate-btn:focus-visible {
	outline: 2px solid var(--cd-wayfind-night);
	outline-offset: 2px;
}

.cd-wayfind__gate-btn--primary {
	background: var(--cd-wayfind-night);
	border-color: var(--cd-wayfind-night);
	color: #fff;
}

.cd-wayfind__gate-btn--primary:hover,
.cd-wayfind__gate-btn--primary:focus-visible {
	color: #fff;
}

.cd-wayfind__gate-btn--premium {
	background: rgba(255, 209, 102, 0.45);
	border-color: rgba(106, 63, 181, 0.28);
	color: #5a35a0;
}

/* Fold / tablette / desktop : second niveau 2 colonnes ; impair = dernière pleine largeur */
@media (min-width: 600px) {
	.cd-wayfind__opts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.cd-wayfind__opt-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.cd-wayfind__opt-item:has(.cd-wayfind__opt.is-locked[aria-expanded="true"]) {
		grid-column: 1 / -1;
	}

	.cd-wayfind__panel {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd-wayfind__card,
	.cd-wayfind__card:hover,
	.cd-wayfind__card:focus-visible,
	.cd-wayfind__card:active,
	.cd-wayfind__card.is-pressed,
	.cd-wayfind__opt {
		transition: none;
		transform: none;
	}
}
