/* ==========================================================================
   Modèle « Promotions & ventes »
   1. Trouvez votre bien (accordéon)   2. Société et cartes de promotions
   (introduction « duo » : sections.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Trouvez votre bien : la bande survolée s'élargit (CSS pur)
   -------------------------------------------------------------------------- */
.biens {
	padding-bottom: 40px;
}

.biens__strips {
	display: flex;
	gap: 6px;
	height: min(620px, 46vw);
	min-height: 440px;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(30, 50, 35, .08);
}

.biens__strip {
	position: relative;
	display: block;
	flex: 1 1 0%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	transition: flex-grow .6s var(--ease-swing);
}

.biens__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.25, .8, .35, 1), filter .5s ease;
}

.biens__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(30, 40, 34, 0) 45%, rgba(20, 30, 25, .78) 100%);
	pointer-events: none;
}

.biens__label {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
}

/* Titre affiché en entier, sur deux lignes si nécessaire */
.biens__title {
	min-width: 0;
	color: var(--c-white);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.15;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* Flèche ronde verte, qui pivote au survol */
.biens__arrow {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-green);
	color: var(--c-white);
	font-size: 18px;
	transition: transform .4s ease-in-out;
}

@media (hover: hover) and (min-width: 1025px) {
	.biens__strip:hover {
		flex-grow: 2.6;
	}

	.biens__strip:hover .biens__image {
		transform: scale(1.06);
	}

	.biens__strip:hover .biens__arrow {
		transform: rotate(45deg);
	}

	.biens__strips:has(.biens__strip:hover) .biens__strip:not(:hover) .biens__image {
		filter: grayscale(.35);
	}

	/* Bandes resserrées pendant le survol d'une autre : titre sur une ligne, abrégé */
	.biens__strips:has(.biens__strip:hover) .biens__strip:not(:hover) .biens__title {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

/* Barre de progression et phrase d'aide : mobile uniquement */
.biens__progress,
.biens__hint {
	display: none;
}

/* Mobile : carrousel horizontal, barre de progression verte et phrase d'aide (comme l'Accueil) */
@media (max-width: 1024px) {
	.biens__strips {
		gap: 8px;
		height: 420px;
		min-height: 0;
		overflow-x: auto;
		overflow-y: hidden;
		border-radius: 0;
		box-shadow: none;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.biens__strips {
		scrollbar-width: none; /* remplacée par la barre de progression verte */
	}

	.biens__strips::-webkit-scrollbar {
		display: none;
	}

	.biens__strip {
		flex: 0 0 80%;
		border-radius: 16px;
		scroll-snap-align: start;
	}

	.biens__progress {
		position: relative;
		display: block;
		height: 2px;
		margin-top: 24px;
		overflow: hidden;
		border-radius: 2px;
		background: #e3e7ea;
	}

	.biens__progress-bar {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		border-radius: 2px;
		background: var(--c-green);
	}

	.biens__hint {
		display: block;
		margin: 24px 0 0;
		color: var(--c-muted-light);
		font-family: var(--f-title);
		font-weight: 500;
		font-size: 13px;
		letter-spacing: 1px;
	}
}

/* Tablette : deux bandes et demie visibles */
@media (min-width: 761px) and (max-width: 1024px) {
	.biens__strip {
		flex-basis: 42%;
	}
}

/* --------------------------------------------------------------------------
   2. Société (fond gris) et cartes de promotions
   -------------------------------------------------------------------------- */
.promotions {
	margin-top: 110px;
	padding: 110px 0;
	background: #f6f7f5;
}

.promotions__societe {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 100px;
	margin-bottom: 80px;
}

.promotions__kicker {
	margin-bottom: 10px;
}

.promotions__title {
	margin: 0 0 32px;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.05;
	text-transform: uppercase;
}

.promotions__logo {
	width: auto;
	height: 64px;
	margin-bottom: 36px;
}

/* Bouton vers le site de la société */
.promotions .btn-pill {
	gap: 10px;
	padding: 16px 28px;
	box-shadow: none;
	transition: background .3s ease-in-out;
}

.promotions .btn-pill:hover {
	transform: none;
}

.promotions .btn-pill span {
	font-size: 16px;
}

.promotions__lead {
	margin: 0 0 26px;
	color: var(--c-ink);
	font-family: var(--f-text);
	font-weight: 600;
	font-size: 19px;
	line-height: 1.7;
}

.promotions__body p {
	margin: 0 0 20px;
	color: var(--c-muted);
	font-family: var(--f-text);
	font-size: 17.5px;
	line-height: 1.85;
}

.promotions__body p:last-child {
	margin-bottom: 0;
}

.promotions__head {
	margin-bottom: 36px;
}

.promotions__subtitle {
	margin: 8px 0 0;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.05;
	text-transform: uppercase;
}

.promotions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

/* Carte : photo 4:3, texte, lien ; se soulève au survol */
.promo-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: var(--c-white);
	box-shadow: 0 10px 28px rgba(20, 30, 25, .06);
	transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}

.promo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(20, 30, 25, .12);
}

.promo-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.promo-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.promo-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 26px 28px;
}

.promo-card__label {
	color: var(--c-green);
	font-family: var(--f-title);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.promo-card__title {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	text-transform: uppercase;
}

.promo-card__text {
	margin: 0 0 6px;
	color: var(--c-muted);
	font-family: var(--f-text);
	font-size: 16px;
	line-height: 1.6;
}

.promo-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-green-deep);
	font-family: var(--f-title);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .6px;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.promotions__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.promotions__societe {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 680px) {
	.promotions__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   Mobile et tablette : espaces verticaux resserrés (en fin de fichier pour primer)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.biens {
		padding-bottom: 0;
	}

	.promotions {
		margin-top: 56px;
		padding: 56px 0;
	}
}
