/* === wheel.css — version éditoriale modernisée ======================== */

.wheel {
	display: grid;
	gap: clamp(var(--s-5), 4vw, var(--s-7));
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 960px) {
	.wheel { grid-template-columns: 1.05fr 1fr; }
}

.wheel__svg-wrap {
	width: 100%;
	max-width: 540px;
	margin-inline: auto;
	position: relative;
}
.wheel__svg-wrap::before {
	/* halo doux derrière la roue */
	content: '';
	position: absolute;
	inset: -20px;
	background: radial-gradient(circle at 50% 50%, rgba(180,120,220,0.22) 0%, transparent 65%);
	z-index: 0;
	pointer-events: none;
	filter: blur(20px);
}
.wheel__svg-wrap svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }

/* Segments interactifs */
.wheel__segment {
	cursor: pointer;
	transition: transform var(--t-base) cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: 260px 260px;
}
.wheel__segment path { transition: opacity var(--t-base), filter var(--t-base); }
.wheel__segment text { transition: font-size var(--t-base); pointer-events: none; user-select: none; }

.wheel__segment:hover,
.wheel__segment.is-active,
.wheel__segment:focus-visible { outline: none; }
.wheel__segment:hover,
.wheel__segment.is-active,
.wheel__segment:focus-visible {
	transform: scale(1.035);
}
.wheel__segment:hover path,
.wheel__segment.is-active path,
.wheel__segment:focus-visible path {
	filter: brightness(1.08) drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}
.wheel.has-active .wheel__segment:not(.is-active) path {
	opacity: 0.42;
	filter: saturate(0.7);
}

/* Panel détail (style éditorial) */
.wheel__detail {
	min-height: 320px;
	padding: clamp(var(--s-5), 3vw, var(--s-7));
	background: #fff;
	border: 1px solid var(--c-gris-bord);
	border-radius: 28px;
	box-shadow: 0 12px 36px rgba(53,53,53,0.06), 0 2px 8px rgba(53,53,53,0.03);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}

.wheel__detail-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 1.5vw + 0.7rem, 1.75rem);
	line-height: 1.2;
	margin: var(--s-2) 0 var(--s-2);
	color: var(--c-text);
	text-wrap: balance;
}
.wheel__detail-title em { color: var(--c-accent); font-style: italic; font-weight: 400; }
.wheel__detail p { color: var(--c-text-muted); margin: 0; }

.wheel__detail-hint {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 99px;
	background: #FFF9FE;
	border: 1px dashed #F4DCEE;
	color: var(--c-accent);
	font-size: 0.85rem;
	font-weight: 500;
	align-self: flex-start;
}
.wheel__detail-hint svg { width: 16px; height: 16px; }

.wheel__detail-bullets {
	list-style: none;
	padding: 0;
	margin: var(--s-3) 0;
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}
.wheel__detail-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.95rem;
	color: var(--c-text);
	line-height: 1.45;
}
.wheel__detail-bullets svg {
	width: 20px; height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.wheel__detail-card {
	animation: wheelFade 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}
.wheel__detail-card[hidden] { display: none !important; }
.wheel__detail-empty[hidden] { display: none !important; }

/* Bouton CTA dans le panel détail : couleur du segment + hover inversé */
.wheel__detail .btn-pill--seg {
	align-self: flex-start;
	background: var(--seg-color);
	color: #fff;
	border: 1px solid var(--seg-color);
	transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast);
}
.wheel__detail .btn-pill--seg .btn-pill__arrow {
	background: #fff;
	color: var(--seg-color);
	transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.wheel__detail .btn-pill--seg:hover {
	background: transparent;
	color: var(--seg-color);
	border-color: var(--seg-color);
}
.wheel__detail .btn-pill--seg:hover .btn-pill__arrow {
	background: var(--seg-color);
	color: #fff;
	transform: rotate(-45deg);
}
@keyframes wheelFade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Override pour l'eyebrow-pill colorée dans le détail (pastille couleur du segment) */
.wheel__detail-card .eyebrow-pill {
	background: #fff;
	align-self: flex-start;
}
.wheel__detail-card .eyebrow-pill::before { display: none; }
.wheel__detail-card .eyebrow-pill > span:first-child {
	width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
