/* Graphique Circulaire - Widget Elementor (dcw- = donut chart widget) */

.dcw-wrapper {
	box-sizing: border-box;
}

.dcw-wrapper * ,
.dcw-wrapper *::before,
.dcw-wrapper *::after {
	box-sizing: border-box;
}

.dcw-chart-row {
	display: grid;
	grid-template-columns: var(--dcw-label-col-width, 220px) var(--dcw-size, 260px) var(--dcw-label-col-width, 220px);
	grid-template-areas: "left chart right";
	column-gap: var(--dcw-h-gap, 24px);
	align-items: stretch;
	justify-content: center;
}

.dcw-labels-col {
	position: relative;
	min-height: 1px;
}

.dcw-labels-col--left {
	grid-area: left;
}

.dcw-labels-col--right {
	grid-area: right;
}

.dcw-labels-col__top,
.dcw-labels-col__bottom {
	position: absolute;
	left: 0;
	right: 0;
}

.dcw-labels-col__top {
	top: 0;
}

.dcw-labels-col__bottom {
	bottom: 0;
}

.dcw-labels-col--left .dcw-label {
	text-align: right;
	align-items: flex-end;
}

.dcw-labels-col--right .dcw-label {
	text-align: left;
	align-items: flex-start;
}

.dcw-label {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
	line-height: 1.4;
}

.dcw-labels-col__top .dcw-label:last-child,
.dcw-labels-col__bottom .dcw-label:last-child {
	margin-bottom: 0;
}

.dcw-label__puce {
	display: block;
	width: 10px;
	height: 10px;
	margin-bottom: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dcw-label__texte {
	display: block;
}

.dcw-donut {
	grid-area: chart;
	position: relative;
	width: var(--dcw-size, 260px);
	height: var(--dcw-size, 260px);
	margin: 0 auto;
}

.dcw-chart {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.dcw-donut__ring {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	transform: rotate(calc(-90deg + var(--dcw-start-angle, 0deg)));
}

.dcw-chart--ccw .dcw-donut__ring {
	transform: scaleX(-1) rotate(calc(-90deg + var(--dcw-start-angle, 0deg)));
}

.dcw-segment {
	stroke-dasharray: 0 100;
	stroke-linecap: butt;
}

.dcw-chart--no-anim .dcw-segment {
	stroke-dasharray: var(--dcw-final-dash);
}

.dcw-chart.dcw-in-view .dcw-segment {
	stroke-dasharray: var(--dcw-final-dash);
	transition: stroke-dasharray var(--dcw-anim-duration, 1200ms) var(--dcw-anim-easing, ease-out);
	transition-delay: calc(var(--dcw-anim-index, 0) * var(--dcw-anim-stagger, 150ms));
}

.dcw-donut__centre {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 15%;
	pointer-events: none;
}

/* Empilement en colonne unique sur petits écrans : anneau, puis étiquettes gauche, puis droite. */
@media (max-width: 767px) {
	.dcw-chart-row {
		grid-template-columns: 1fr;
		grid-template-areas:
			"chart"
			"left"
			"right";
		row-gap: var(--dcw-h-gap, 24px);
	}

	.dcw-labels-col__top,
	.dcw-labels-col__bottom {
		position: static;
	}

	.dcw-labels-col--left .dcw-label,
	.dcw-labels-col--right .dcw-label {
		text-align: center;
		align-items: center;
	}

	.dcw-labels-col__bottom {
		margin-top: 16px;
	}
}
