/* Visite guidée — première arrivée (accueil) */

.cftc-tour {
	position: fixed;
	inset: 0;
	z-index: 100200;
	pointer-events: none;
}
.cftc-tour.is-on {
	pointer-events: auto;
}
.cftc-tour-spot {
	position: fixed;
	z-index: 1;
	box-sizing: border-box;
	border-radius: 10px;
	box-shadow: 0 0 0 9999px rgba(15, 35, 80, .58);
	outline: 2px solid #fff;
	outline-offset: -1px;
	pointer-events: none;
	transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease, border-radius .2s ease;
}
.cftc-tour.is-welcome .cftc-tour-spot {
	display: none !important;
}
.cftc-tour.is-welcome {
	background: rgba(15, 35, 80, .58);
}

/* Centré dès le 1er frame — évite le flash en haut à gauche */
.cftc-tour-card {
	position: fixed;
	z-index: 2;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(380px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 22px 22px 18px;
	background: var(--surface, #fff);
	color: var(--text, #1A2340);
	border: 1.5px solid var(--border, #C8DAF0);
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(15, 63, 147, .22);
	opacity: 0;
	visibility: hidden;
}
.cftc-tour.is-ready .cftc-tour-card {
	opacity: 1;
	visibility: visible;
}
.cftc-tour.is-welcome .cftc-tour-card {
	width: min(440px, calc(100vw - 32px));
}
.cftc-tour-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 6px;
}
.cftc-tour-kicker {
	margin: 0;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--b3, #0F3F93);
	padding-top: 2px;
}
.cftc-tour-count {
	flex-shrink: 0;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--light, #8896A8);
	white-space: nowrap;
	line-height: 1.2;
}
.cftc-tour-title {
	margin: 0 0 8px;
	font-family: var(--global-heading-font-family, Georgia, serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--b1, #212E81);
}
.cftc-tour-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--mid, #4A5568);
}
.cftc-tour-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.cftc-tour-links[hidden] { display: none !important; }
.cftc-tour-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.25;
}
.cftc-tour-links a.is-primary {
	background: #0F3F93;
	color: #fff;
}
.cftc-tour-links a.is-primary:hover {
	background: #212E81;
	color: #fff;
}
.cftc-tour-links a.is-ghost {
	border: 1px solid var(--border, #C8DAF0);
	background: #fff;
	color: var(--text, #1A2340);
}
.cftc-tour-links a.is-ghost:hover {
	border-color: #0F3F93;
	color: #0F3F93;
}
.cftc-tour-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}
button.cftc-tour-skip {
	appearance: none !important;
	-webkit-appearance: none !important;
	margin-right: auto;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 6px 0 !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: var(--mid, #4A5568) !important;
	cursor: pointer;
	text-decoration: none !important;
	border-radius: 0 !important;
}
button.cftc-tour-skip:hover,
button.cftc-tour-skip:focus,
button.cftc-tour-skip:focus-visible,
button.cftc-tour-skip:active {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	color: #0F3F93 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	outline: none;
}
.cftc-tour-prev,
.cftc-tour-next {
	appearance: none;
	-webkit-appearance: none;
	border-radius: 8px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.25;
	box-shadow: none;
}
.cftc-tour-prev {
	border: 1px solid var(--border, #C8DAF0);
	background: #fff;
	color: var(--text, #1A2340);
}
.cftc-tour-prev:hover,
.cftc-tour-prev:focus,
.cftc-tour-prev:focus-visible {
	border-color: #0F3F93;
	background: #fff;
	color: #0F3F93;
	box-shadow: none;
	outline: none;
}
.cftc-tour-prev[hidden] { display: none !important; }
.cftc-tour-next {
	border: 0;
	background: #0F3F93;
	color: #fff;
}
.cftc-tour-next:hover,
.cftc-tour-next:focus-visible {
	background: #212E81;
	color: #fff;
	outline: none;
}
.cftc-tour-next:focus-visible,
.cftc-tour-prev:focus-visible,
.cftc-tour-links a:focus-visible {
	outline: 2px solid #0F3F93;
	outline-offset: 2px;
}

body.dark .cftc-tour-card {
	background: var(--surface, #161d2e);
	border-color: var(--border, #2d3d5c);
	color: var(--text, #E8EDF5);
}
body.dark .cftc-tour-title { color: #E8EDF5; }
body.dark .cftc-tour-body { color: var(--mid, #a8b4cc); }
body.dark .cftc-tour-prev,
body.dark .cftc-tour-links a.is-ghost {
	background: var(--surface-alt, #1a2438);
	border-color: var(--border, #2d3d5c);
	color: var(--text, #E8EDF5);
}
body.dark button.cftc-tour-skip:hover,
body.dark button.cftc-tour-skip:focus,
body.dark button.cftc-tour-skip:focus-visible {
	color: #9ec5ff !important;
	background: transparent !important;
}

@media (max-width: 900px) {
	.cftc-tour { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.cftc-tour-spot { transition: none; }
}
