/* ================= Défilement (droite -> gauche) ================= */
.pm-marquee {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.pm-track {
	display: flex;
	width: max-content;
	animation: pm-scroll var(--pm-speed, 40s) linear infinite;
}

.pm-marquee:hover:not(:has(.pm-arrow:hover)) .pm-track {
	animation-play-state: paused;
}

.pm-group {
	display: flex;
	flex-shrink: 0;
	gap: var(--pm-gap, 10px);
	padding-right: var(--pm-gap, 10px);
}

.pm-item {
	position: relative;
	display: block;
	flex-shrink: 0;
	height: var(--pm-height, 200px);
	overflow: hidden;
	text-decoration: none;
}

.pm-item img {
	display: block;
	height: 100%;
}

.pm-item img.pm-zoom {
	transition: transform .4s ease;
}

.pm-item:hover img.pm-zoom {
	transform: scale(1.06);
}

.pm-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	opacity: 0;
	transition: opacity .3s ease;
}

.pm-item:hover .pm-title {
	opacity: 1;
}

@keyframes pm-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pm-track {
		animation: none;
	}

	.pm-marquee {
		overflow-x: auto;
	}

	.pm-arrow {
		display: none;
		touch-action: manipulation;
		user-select: none;
	}
}

.pm-notice {
	padding: 12px 16px;
	background: #fff8e5;
	border-left: 4px solid #dba617;
	color: #333;
	font-size: 14px;
}

/* ================= Fiche projet ================= */
.pm-btn {
	background: white;
	color: black;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: bold;
	padding: 12px 40px;
	text-decoration: none;
}

.pm-btn:hover {
	color: black;
}

.pm-single {
	padding: 60px 15px;
	width: 100%;
}

.pm-single-inner {
	margin: 0 auto;
}

.pm-single-back {
	display: inline-block;
	cursor: pointer;
}

.pm-single-title {
	margin: 40px 0 30px 0;
	text-transform: uppercase;
}

.pm-single-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.pm-single-cat {
	font-weight: bold;
	text-transform: uppercase;
}

.pm-single-desc {
	margin-top: 15px;
}

.pm-single-ask {
	margin-top: 15px;
}

.pm-single-reply {
	margin-top: 25px;
}

.pm-single-btn {
	margin-top: 40px;
}

.pm-single-quote {
	margin: 35px 0 0 0;
	padding: 0;
	border: 0;
	font-style: italic;
}

.pm-video {
	position: relative;
	aspect-ratio: 16 / 9;
}

.pm-video iframe,
.pm-video video,
.pm-video img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.pm-reverse .pm-track {
	animation-direction: reverse;
}

@media (max-width: 923px) {
	.pm-single-grid {
		grid-template-columns: 1fr;
	}
}

.pm-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s ease, background .2s ease;
}

.pm-arrow:hover,
.pm-arrow:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, .8);
}

.pm-arrow-prev {
	left: 12px;
}

.pm-arrow-next {
	right: 12px;
}