/* Danfer – avancement du prochain livre */
.dse-pg {
	--dse-pg-bar: currentColor;
	display: flex;
	gap: 1.5em;
	align-items: center;
	padding: 1.5em;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
	box-sizing: border-box;
}
.dse-pg--centered {
	flex-direction: column;
	text-align: center;
	gap: .5em;
}
.dse-pg--centered .dse-pg__body {
	width: 100%;
}
.dse-pg.aligncenter {
	width: fit-content;
	min-width: min(22em, 100%);
	max-width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
}
.dse-pg__cover {
	flex: 0 0 auto;
	width: 120px;
	max-width: 35%;
}
.dse-pg--centered .dse-pg__cover {
	max-width: 50%;
}
.dse-pg__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.dse-pg__body {
	flex: 1 1 auto;
	min-width: 0;
}
.dse-pg p {
	margin: 0 0 .4em;
}
.dse-pg__heading {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .8em;
	opacity: .75;
}
.dse-pg__title {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.25;
}
.dse-pg__status {
	font-size: .95em;
	opacity: .85;
}
.dse-pg__bar {
	position: relative;
	height: .7em;
	margin: .7em 0 .5em;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.dse-pg__bar span {
	display: block;
	height: 100%;
	min-width: .7em;
	border-radius: inherit;
	background: var(--dse-pg-bar);
	transition: width .6s ease;
}
.dse-pg__detail {
	font-size: .95em;
	font-variant-numeric: tabular-nums;
}
.dse-pg__pct {
	font-size: 1.3em;
}
.dse-pg__date {
	font-size: .9em;
	opacity: .75;
}
.dse-pg__summary {
	margin-top: .8em !important;
	font-size: .95em;
	opacity: .9;
}
.dse-pg__empty {
	margin: 0;
	opacity: .8;
}
@media (max-width: 480px) {
	.dse-pg--with-cover {
		flex-direction: column;
		text-align: center;
	}
	.dse-pg__cover {
		width: 110px;
		max-width: 50%;
	}
}
/* Fil des étapes */
.dse-pg__steps {
	list-style: none;
	margin: 1em 0 .6em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--dse-pg-n, 6), minmax(0, 1fr));
	text-align: center;
	font-size: .78em;
	line-height: 1.25;
}
.dse-pg__steps li {
	position: relative;
	margin: 0;
	padding: 0 .2em;
	opacity: .55;
}
.dse-pg__steps li.is-done,
.dse-pg__steps li.is-current {
	opacity: 1;
}
/* Trait reliant les points */
.dse-pg__steps li::before {
	content: "";
	position: absolute;
	top: .5em;
	left: calc(-50% + .75em);
	width: calc(100% - 1.5em);
	height: 2px;
	background: color-mix(in srgb, currentColor 20%, transparent);
}
.dse-pg__steps li:first-child::before {
	display: none;
}
.dse-pg__steps li.is-done::before,
.dse-pg__steps li.is-current::before {
	background: var(--dse-pg-bar);
}
.dse-pg__dot {
	position: relative;
	z-index: 1;
	display: block;
	width: 1.1em;
	height: 1.1em;
	margin: 0 auto .4em;
	border-radius: 50%;
	box-sizing: border-box;
	border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
	background: transparent;
}
.dse-pg__steps li.is-done .dse-pg__dot {
	border-color: var(--dse-pg-bar);
	background: var(--dse-pg-bar);
}
.dse-pg__steps li.is-current .dse-pg__dot {
	border-color: var(--dse-pg-bar);
	box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 15%, transparent);
}
.dse-pg__steps li.is-current .dse-pg__label {
	font-weight: 700;
}
.dse-pg__label {
	display: block;
	hyphens: auto;
	overflow-wrap: anywhere;
}
.dse-pg .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
/* Écrans étroits : fil vertical */
@media (max-width: 520px) {
	.dse-pg__steps {
		grid-template-columns: 1fr;
		text-align: left;
		gap: .45em;
		font-size: .85em;
	}
	.dse-pg--centered .dse-pg__steps {
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
	}
	.dse-pg__steps li {
		display: flex;
		align-items: center;
		gap: .6em;
	}
	.dse-pg__steps li::before {
		display: none;
	}
	.dse-pg__dot {
		margin: 0;
		flex: 0 0 auto;
	}
}
