/* =========================================================
   Paviterra — Home / Section 1 : accordéon des gammes
   ========================================================= */

.pv-home { background: #fff; }

.pv-gam {
	max-width: 1840px;
	margin: 0 auto;
	padding: 40px;
}

.pv-gam__row {
	display: flex;
	gap: 20px;
	height: clamp(560px, 76vh, 820px);
}

/* ---------- Panneau (carte grise) ---------- */
.pv-gam__panel {
	position: relative;
	flex: 1 1 0;          /* GSAP pilote flex-grow au survol */
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #f4f4f4;
	border-radius: 20px;
	padding: 10px;
	cursor: pointer;
	outline: none;
	will-change: flex-grow;
}
.pv-gam__panel:focus-visible { box-shadow: 0 0 0 3px var(--pv-rust); }

/* Média : conteneur arrondi qui masque le zoom de la couche interne */
.pv-gam__media {
	position: relative;
	flex: 1 1 auto;
	border-radius: 14px;
	overflow: hidden;
	background: #e6e2da;
}
.pv-gam__media-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transform-origin: center;
	will-change: transform;
}
/* Photo posée sur le dégradé de la gamme en mode « Produit » (Multiply Photoshop) :
   le dégradé colore la photo au lieu de la masquer. */
.pv-gam__media-photo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	mix-blend-mode: multiply;
}
/* Placeholders (en attendant les vraies photos) */
.pv-gam__panel--paviplot  .pv-gam__media-img { background-image: linear-gradient(150deg, #d8c3a3, #8f7a58); }
.pv-gam__panel--pavistab  .pv-gam__media-img { background-image: linear-gradient(150deg, #a9b884, #5f6f43); }
.pv-gam__panel--pavibord  .pv-gam__media-img { background-image: linear-gradient(150deg, #c2bfb2, #6f7a5f); }
.pv-gam__panel--pavifond  .pv-gam__media-img { background-image: linear-gradient(150deg, #c3c6c9, #6d7176); }
.pv-gam__panel--actualite .pv-gam__media-img { background-image: linear-gradient(150deg, #e69a6a, #b0521e); }

/* ---------- Bloc gris (label + CTA) sous l'image ---------- */
.pv-gam__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 10px 8px;
	min-height: 56px;
}

.pv-gam__label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	white-space: nowrap;
	min-width: 0;
}
.pv-gam__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--pv-ink);
	color: #fff;
	transition: background .25s ease;
}
.pv-gam__arrow .pv-icon { width: 16px; height: 16px; }
.pv-gam__panel:hover .pv-gam__arrow,
.pv-gam__panel.is-active .pv-gam__arrow { background: var(--pv-rust); }
.pv-gam__name {
	font-family: var(--pv-font);
	font-weight: 800;
	font-size: 18px;
	color: var(--pv-ink);
	line-height: 1;
	white-space: nowrap;
}

/* CTA — visible seulement sur le panneau actif (classe .is-active) */
.pv-gam__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	max-width: 0;            /* collapse : ne réserve pas de place quand inactif */
	overflow: hidden;
	opacity: 0;
	transition: max-width .5s cubic-bezier(.4, 0, .2, 1), opacity .32s ease .12s;
}
.pv-gam__panel.is-active .pv-gam__cta {
	max-width: 480px;
	opacity: 1;
}

/* ---------- Boutons ---------- */
.pv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 26px;
	font-family: var(--pv-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border: 1.5px solid transparent;
	transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.pv-btn--dark {
	background: var(--pv-ink);
	color: #fff;
}
.pv-btn--dark:hover { background: var(--pv-rust); }
.pv-btn--light {
	background: #fff;
	color: var(--pv-ink);
	border-color: #d4d4d4;
}
.pv-btn--light:hover { border-color: var(--pv-ink); }

/* ---------- Fallback sans JS ---------- */
.no-js .pv-gam__row .pv-gam__panel:first-child { flex-grow: 6; }
.no-js .pv-gam__row .pv-gam__panel:first-child .pv-gam__cta { opacity: 1; max-width: 480px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.pv-gam { padding: 20px; }
	.pv-gam__row { flex-direction: column; gap: 14px; height: auto; }
	.pv-gam__panel { flex: none; }
	.pv-gam__media { height: 200px; }
	.pv-gam__panel.is-active .pv-gam__media { height: 300px; }
	.pv-gam__cta { opacity: 1; max-width: 480px; }
	.pv-gam__foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	.pv-gam__media-img, .pv-gam__arrow, .pv-gam__cta { transition: none; }
}
