/* =========================================================
   Paviterra — Listing produits
   ========================================================= */

/* ---------- Toast (ajout panier) ---------- */
.pv-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translate(-50%, 20px);
	z-index: 300;
	padding: 15px 26px;
	border-radius: 999px;
	background: var(--pv-rust);
	color: #fff;
	font-family: var(--pv-font);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.3, .5, 1);
}
.pv-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.pv-toast--error { background: #b3261e; }

.pv-list { background: #fff; }
.pv-list__inner {
	max-width: 1840px;
	margin: 0 auto;
	padding: 50px 40px 90px;
}

/* ---------- Titre ---------- */
.pv-list__header { text-align: center; margin-bottom: 30px; }
.pv-list__title {
	margin: 0;
	color: var(--pv-sand);
	font-family: var(--pv-font);
	font-weight: 800;
	font-size: clamp(32px, 5vw, 60px);
	line-height: 1;
}

/* ---------- Filtres ---------- */
.pv-list__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 0 0 44px;
}
@media (max-width: 900px) {
	.pv-list__filters-wrap {
		position: relative;
		margin: 0 0 34px;
	}
	.pv-list__filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 4px 6px;
		margin: 0 -4px;
	}
	.pv-list__filters::-webkit-scrollbar { display: none; }
	.pv-filter { flex: 0 0 auto; white-space: nowrap; }
	.pv-list__filters-wrap::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 6px;
		width: 44px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
		pointer-events: none;
	}
	.pv-list__filters-wrap.is-at-end::after { opacity: 0; }
}
.pv-filter {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 26px;
	border: 1.5px solid #e6ded4;
	border-radius: 999px;
	background: #fff;
	color: var(--pv-ink);
	font-family: var(--pv-font);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	outline: none;
	transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pv-filter:focus-visible { box-shadow: 0 0 0 3px rgba(186, 67, 7, .25); }
.pv-filter__box {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	border: 1.5px solid #d7cdbf;
	border-radius: 5px;
	position: relative;
	transition: border-color .2s ease, background .2s ease;
}
.pv-filter.is-active { border-color: var(--pv-rust); color: var(--pv-rust); }
.pv-filter.is-active .pv-filter__box { background: #fff; border-color: var(--pv-rust); }
.pv-filter.is-active .pv-filter__box::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 2px;
	background: var(--pv-rust);
}

/* ---------- Grille ---------- */
.pv-list__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

/* ---------- Carte produit ---------- */
.pv-prod {
	display: flex;
	flex-direction: column;
	padding: 30px 28px 26px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #efece7;
	box-shadow: 0 20px 50px -38px rgba(23, 23, 23, .3);
}
.pv-prod[hidden] { display: none; }
.pv-prod__head { min-height: 74px; }
.pv-prod__name {
	margin: 0;
	color: var(--pv-ink);
	font-family: var(--pv-font);
	font-weight: 800;
	font-size: 26px;
	line-height: 1.1;
}
.pv-prod__code {
	font-size: .42em;
	font-weight: 700;
	vertical-align: super;
	color: var(--pv-ink);
	margin-left: 2px;
}
.pv-prod__dim { margin: 6px 0 0; color: #9a9a9a; font-size: 16px; }
.pv-prod__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 240px;
	margin: 14px 0 20px;
}
.pv-prod__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Fondu croisé entre la photo principale et la photo au survol (galerie produit). */
.pv-prod__media.has-hover .pv-prod__media-img {
	position: absolute;
	inset: 0;
	margin: auto;
	transition: opacity .45s ease;
}
.pv-prod__media.has-hover .pv-prod__media-img--main { opacity: 1; }
.pv-prod__media.has-hover .pv-prod__media-img--hover { opacity: 0; }
.pv-prod__media.has-hover:hover .pv-prod__media-img--main { opacity: 0; }
.pv-prod__media.has-hover:hover .pv-prod__media-img--hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.pv-prod__media .pv-prod__media-img { transition: none; }
}

/* ---------- Bloc achat (pro) ---------- */
.pv-prod__buy { margin-top: auto; }
.pv-prod__cartons {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--pv-line, #ececec);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}
.pv-select { position: relative; flex: 1 1 0; min-width: 0; }
.pv-prod__qty {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px 32px 10px 16px;
	border: 0;
	background: transparent;
	color: var(--pv-rust);
	font-family: var(--pv-font);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-align-last: center;
	cursor: pointer;
	outline: none;
}
.pv-prod__qty:focus {
	background: #fdf5ee;
	border-radius: 999px 0 0 999px;
	box-shadow: inset 0 0 0 2px var(--pv-rust);
}
.pv-select::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid var(--pv-rust);
	border-bottom: 2px solid var(--pv-rust);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.pv-prod__units {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	padding: 10px 12px;
	border: 0;
	border-left: 1.5px solid var(--pv-line, #ececec);
	color: #b7b7b7;
	font-size: 14px;
}
.pv-prod__price {
	margin: 0 0 16px;
	color: var(--pv-ink);
	font-weight: 800;
	font-size: 26px;
}
.pv-prod__price sup { font-size: .5em; font-weight: 700; color: #9a9a9a; }
.pv-prod__actions { display: flex; gap: 10px; }
.pv-prod__actions .pv-btn { flex: 1 1 0; }

/* Bloc invité */
.pv-prod__buy--guest { margin-top: auto; display: flex; justify-content: center; }
.pv-prod__buy--guest .pv-btn { padding: 13px 34px; }

.pv-prod__more {
	display: block;
	margin-top: 16px;
	text-align: center;
	color: var(--pv-ink);
	font-size: 14px;
	text-decoration: none;
}
.pv-prod__more:hover { color: var(--pv-rust); }

/* ---------- Boutons ---------- */
.pv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: var(--pv-font);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pv-btn--outline { background: #fff; color: var(--pv-ink); border-color: #d9d5ce; }
.pv-btn--outline:hover { border-color: var(--pv-rust); color: var(--pv-rust); }
.pv-btn--sand { background: var(--pv-sand); color: var(--pv-ink); }
.pv-btn--sand:hover { background: var(--pv-rust); color: #fff; }
.pv-btn--devis { border-color: var(--pv-sand); }
.pv-btn--devis:hover { border-color: var(--pv-rust); }
.pv-btn__plus { font-size: 1.2em; line-height: 1; margin-right: 2px; }

/* ---------- Cartes produit : léger scale au survol (comme .pv-card de la home) ---------- */
.pv-prod { transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.pv-prod:hover { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.pv-prod { transition: none; }
}

/* ---------- Bloc lien (fin de listing) ---------- */
.pv-prod--link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-decoration: none;
	min-height: 340px;
}
.pv-prod__linkimg {
	height: 200px;
	margin: 14px 0 4px;
	border-radius: 14px;
	background-color: transparent;
	background-size: cover;
	background-position: center;
}
.pv-prod--link .pv-linkblock__title {
	color: var(--pv-lb-color, #b7370e);
}

/* Icône (SVG recolorée via mask) + sous-titre */
.pv-linkblock__row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
}
.pv-linkblock__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	background-color: var(--pv-lb-color, #fff);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}
.pv-linkblock__subtitle {
	color: var(--pv-ink);
	padding: 2px 8px 2px 0;
	font-size: 13px;
	font-weight: 400;
}

/* Texte : toujours en gras, les parties <strong> reprennent la couleur du bloc. */
.pv-linkblock__text {
	position: relative;
	z-index: 1;
	margin-top: 10px;
	color: var(--pv-ink);
	text-decoration: none;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.4;
}
.pv-linkblock__text p { margin: 0; }
.pv-linkblock__text strong { color: var(--pv-lb-color, #fff); }

/* Halo flou en bas du bloc — même technique que .pv-card__glow de la home
   (non réutilisable telle quelle : home-parlons.css n'est chargé que sur l'accueil). */
.pv-linkblock__glow {
	position: absolute;
	left: 50%;
	bottom: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--pv-lb-color, #ba4307) 55%, transparent) 0%, transparent 68%);
	filter: blur(26px);
	opacity: .6;
	transform: translateX(-50%) scale(1);
	z-index: 0;
	pointer-events: none;
	transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease;
}
.pv-prod--link:hover .pv-linkblock__glow { transform: translateX(-50%) scale(1.5); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.pv-linkblock__glow { transition: none; }
}

/* =========================================================
   Fiche produit (single)
   ========================================================= */
.pv-single { background: #fff; position: relative; overflow: clip; }
/* Halos discrets en fond de page (même esprit que la section « Parlons ensemble »). */
.pv-single::before,
.pv-single::after {
	content: "";
	position: absolute;
	width: 640px;
	height: 640px;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: 0;
}
.pv-single::before { top: -220px; right: -160px; background: rgba(186, 67, 7, .06); }
.pv-single::after { bottom: 10%; left: -220px; background: rgba(232, 203, 180, .5); }
.pv-single__inner {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 40px 90px;
}
.pv-single__breadcrumb {
	margin-bottom: 28px;
	color: #9a9a9a;
	font-size: 14px;
}
.pv-single__breadcrumb a { color: #9a9a9a; text-decoration: none; }
.pv-single__breadcrumb a:hover { color: var(--pv-rust); }
.pv-single__breadcrumb span[aria-hidden] { margin: 0 8px; color: #d9d5ce; }
.pv-single__breadcrumb .is-current { color: var(--pv-ink); font-weight: 600; }
.pv-single__grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 60px;
	align-items: start;
}
.pv-single__main { min-width: 0; display: flex; flex-direction: column; gap: 46px; }
.pv-single__sidebar { align-self: start; position: sticky; top: calc(var(--pv-header-h, 92px) + 24px); }
.pv-single__sidebar-inner {
	background: #fff;
	border: 1px solid #efece7;
	border-radius: 24px;
	padding: 30px;
	box-shadow: 0 20px 50px -38px rgba(23, 23, 23, .3);
}
.pv-single__facts {
	list-style: none;
	margin: 18px 0 26px;
	padding: 18px 0;
	border-top: 1px solid var(--pv-line, #ececec);
	border-bottom: 1px solid var(--pv-line, #ececec);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pv-single__facts li { display: flex; align-items: center; gap: 10px; color: var(--pv-ink); font-size: 15px; }
.pv-single__facts .pv-icon { width: 18px; height: 18px; color: var(--pv-rust); flex: 0 0 auto; }
.pv-single__facts a { color: var(--pv-ink); text-decoration: none; }
.pv-single__facts a:hover { color: var(--pv-rust); }
.pv-single__media {
	position: relative;
	background: #faf9f7;
	border: 1px solid #efece7;
	border-radius: 24px;
	overflow: hidden;
	min-height: 480px;
}
.pv-single__track {
	display: flex;
	height: 100%;
	transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.pv-single__slide {
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	min-height: 480px;
	max-height: 700px;
	box-sizing: border-box;
}
.pv-single__media-img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }

.pv-single__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--pv-rust);
	font-size: 22px;
	line-height: 1;
	box-shadow: 0 10px 26px -10px rgba(23, 23, 23, .32);
	cursor: pointer;
	z-index: 2;
}
.pv-single__nav:hover { background: var(--pv-rust); color: #fff; }
.pv-single__nav--prev { left: 18px; }
.pv-single__nav--next { right: 18px; }

.pv-single__dots {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}
.pv-single__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d9d5ce;
	cursor: pointer;
}
.pv-single__dot.is-active { background: var(--pv-rust); width: 22px; border-radius: 4px; transition: width .25s ease; }

@media (prefers-reduced-motion: reduce) {
	.pv-single__track { transition: none; }
}

/* ---------- Blocs de texte + visionneuse 3D (sous la fiche) ---------- */
.pv-single__blocs {
	max-width: 900px;
	display: flex;
	flex-direction: column;
	gap: 34px;
}
.pv-single__bloc-titre {
	font-family: var(--pv-font);
	font-weight: 800;
	color: var(--pv-ink);
	font-size: 22px;
	margin: 0 0 12px;
}
.pv-single__bloc-texte { color: var(--pv-ink); font-size: 16px; line-height: 1.7; }
.pv-single__bloc-texte p { margin: 0 0 10px; }

.pv-single__viewer { max-width: 900px; }
.pv-3d {
	position: relative;
	width: 100%;
	max-width: 900px;
	height: 480px;
	background: #f4f0eb;
	border: 1px solid #efece7;
	border-radius: 24px;
	overflow: hidden;
}
.pv-3d__canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pv-3d__title {
	position: absolute;
	top: 16px;
	left: 18px;
	margin: 0;
	color: var(--pv-ink);
	font-family: var(--pv-font);
	font-weight: 800;
	font-size: 18px;
	pointer-events: none;
	z-index: 1;
}
.pv-3d__title sup { color: var(--pv-rust); font-size: .6em; margin-left: 2px; }
.pv-3d__canvas:active { cursor: grabbing; }
.pv-3d__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a9a9a;
	font-family: var(--pv-font);
	font-size: 14px;
	background: #f4f0eb;
	pointer-events: none;
	transition: opacity .3s ease;
}
.pv-3d.is-ready .pv-3d__loading { opacity: 0; }
.pv-3d__controls {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pv-3d__btn {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--pv-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 26px -10px rgba(23, 23, 23, .32);
}
.pv-3d__btn:hover { color: var(--pv-rust); }
.pv-3d__hint {
	position: absolute;
	left: 14px;
	bottom: 12px;
	margin: 0;
	color: #9a9a9a;
	font-size: 12px;
	font-family: var(--pv-font);
	pointer-events: none;
}
.pv-3d:fullscreen { max-width: none; height: 100vh; border-radius: 0; }
.pv-3d:fullscreen .pv-3d__canvas { height: 100vh; }
.pv-single__name {
	margin: 0;
	color: var(--pv-ink);
	font-family: var(--pv-font);
	font-weight: 800;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.05;
}
.pv-single__dim { margin: 10px 0 0; color: #9a9a9a; font-size: 20px; }
.pv-single__buy { margin: 34px 0 0; max-width: 420px; }
.pv-single__buy .pv-prod__price { font-size: 34px; }

.pv-single__gate {
	margin: 30px 0 0;
	max-width: 460px;
	padding: 26px 28px;
	background: #f6f5f3;
	border-radius: 18px;
	color: var(--pv-ink);
}
.pv-single__gate p { margin: 0 0 16px; line-height: 1.6; }
.pv-single__gate .pv-btn { margin: 0; }

.pv-single__desc {
	max-width: 900px;
	color: var(--pv-ink);
	font-size: 16px;
	line-height: 1.7;
}

/* ---------- Produits associés ---------- */
.pv-single__related { margin: 70px 0 0; }
.pv-single__related-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.pv-single__inner { padding: 28px 22px 64px; }
	.pv-single__grid { grid-template-columns: 1fr; gap: 30px; }
	.pv-single__sidebar { position: static; }
	.pv-single__media, .pv-single__slide { min-height: 320px; }
	.pv-single__slide { padding: 28px; }
	.pv-single__related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive listing ---------- */
@media (max-width: 1560px) { .pv-list__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .pv-list__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
	.pv-list__inner { padding: 36px 22px 64px; }
	.pv-list__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.pv-list__filters { gap: 10px; }
	.pv-filter { padding: 10px 18px; font-size: 14px; }
}
@media (max-width: 560px) { .pv-list__grid { grid-template-columns: 1fr; } }
