/**
 * ==========================================================
 * MetrYMMO V2
 * assets/css/buy.css
 * Page Acheter
 * ==========================================================
 */

.metrymmo-buy-page {
	--buy-black: #0B0B0B;
	--buy-black-soft: #11100F;
	--buy-brown: #21160F;
	--buy-brown-medium: #5A351D;
	--buy-bronze: #8D5B32;
	--buy-gold-dark: #A86F3D;
	--buy-gold: #C99A55;
	--buy-gold-light: #E0BB80;
	--buy-champagne: #F0D7AE;
	--buy-cream: #F5EEE3;
	--buy-white: #FFFFFF;
	--buy-text: #21160F;
	--buy-muted: #756B62;
	--buy-border: #E3D9CC;
}


/* ==========================================================
   BASE
========================================================== */

.metrymmo-buy-page {
	overflow: hidden;
	background: var(--buy-white);
	color: var(--buy-text);
}

.metrymmo-buy-page .container {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}


/* ==========================================================
   HERO
========================================================== */

.buy-hero {
	overflow: hidden;
	padding: 95px 0;

	background:
		radial-gradient(
			circle at 75% 30%,
			rgba(201, 154, 85, 0.13),
			transparent 34%
		),
		linear-gradient(
			135deg,
			var(--buy-black),
			var(--buy-brown)
		);

	color: var(--buy-white);
}

.buy-hero-inner {
	display: grid;
	grid-template-columns: 1fr 0.72fr;
	align-items: center;
	gap: 80px;
}

.buy-hero-content {
	max-width: 690px;
}

.buy-eyebrow,
.buy-section-label {
	display: block;

	margin-bottom: 12px;

	color: var(--buy-gold-light);

	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.buy-hero h1 {
	margin: 0;

	color: var(--buy-white);

	font-family: "Poppins", sans-serif;
	font-size: clamp(45px, 6vw, 72px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.buy-hero-content > p {
	max-width: 600px;

	margin: 25px 0 0;

	color: rgba(245, 238, 227, 0.68);

	font-size: 16px;
	line-height: 1.8;
}

.buy-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;

	margin-top: 32px;
}


/* ==========================================================
   BOUTONS
========================================================== */

.buy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;

	min-height: 50px;
	padding: 13px 20px;

	border-radius: 9px;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;

	text-decoration: none;

	cursor: pointer;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.buy-button:hover {
	transform: translateY(-2px);
}

.buy-button-primary {
	border: 1px solid transparent;

	background:
		linear-gradient(
			135deg,
			var(--buy-gold),
			var(--buy-gold-light)
		);

	color: var(--buy-black);

	box-shadow:
		0 12px 30px rgba(201, 154, 85, 0.18);
}

.buy-button-primary:hover {
	color: var(--buy-black);

	box-shadow:
		0 16px 36px rgba(201, 154, 85, 0.28);
}

.buy-button-secondary {
	border: 1px solid rgba(240, 215, 174, 0.22);

	background: rgba(255, 255, 255, 0.035);

	color: var(--buy-cream);
}

.buy-button-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--buy-white);
}


/* ==========================================================
   HERO VISUEL
========================================================== */

.buy-hero-visual {
	position: relative;

	min-height: 390px;

	border: 1px solid rgba(240, 215, 174, 0.16);
	border-radius: 22px;

	background:
		linear-gradient(
			160deg,
			rgba(255, 255, 255, 0.05),
			rgba(255, 255, 255, 0)
		);
}

.buy-hero-visual::before {
	content: "";

	position: absolute;
	inset: 30px;

	border: 1px solid rgba(201, 154, 85, 0.17);
	border-radius: 17px;
}

.buy-hero-card {
	position: absolute;

	right: 35px;
	bottom: 35px;
	left: 35px;

	padding: 26px;

	border: 1px solid rgba(240, 215, 174, 0.16);
	border-radius: 15px;

	background: rgba(11, 11, 11, 0.76);

	backdrop-filter: blur(14px);
}

.buy-hero-card span,
.buy-hero-card small {
	display: block;

	color: rgba(245, 238, 227, 0.52);

	font-size: 11px;
}

.buy-hero-card strong {
	display: block;

	margin: 5px 0;

	color: var(--buy-champagne);

	font-family: "Poppins", sans-serif;
	font-size: 25px;
}


/* ==========================================================
   SECTIONS COMMUNES
========================================================== */

.buy-search-section,
.buy-process-section,
.buy-finance-section,
.buy-advice-section,
.buy-cta-section {
	padding: 90px 0;
}


/* ==========================================================
   RECHERCHE
========================================================== */

.buy-search-section {
	background: var(--buy-cream);
}

.buy-section-heading {
	max-width: 700px;
	margin-bottom: 42px;
}

.buy-section-heading h2 {
	margin: 0;

	color: var(--buy-black);

	font-family: "Poppins", sans-serif;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.buy-section-heading p {
	max-width: 650px;

	margin: 16px 0 0;

	color: rgba(33, 22, 15, 0.60);

	font-size: 15px;
	line-height: 1.75;
}


/* ==========================================================
   FORMULAIRE DE RECHERCHE
========================================================== */

.buy-search-form {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr)
		minmax(0, 1fr)
		auto;
	align-items: end;

	gap: 16px;

	margin-bottom: 65px;
	padding: 28px;

	border: 1px solid rgba(90, 53, 29, 0.12);
	border-radius: 18px;

	background: var(--buy-white);

	box-shadow:
		0 20px 55px rgba(33, 22, 15, 0.07);
}

.buy-search-field {
	min-width: 0;
}

.buy-search-field label {
	display: block;

	margin-bottom: 9px;

	color: var(--buy-brown);

	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.buy-search-field select,
.buy-search-field input {
	display: block;

	width: 100%;
	height: 52px;

	box-sizing: border-box;

	padding: 0 15px;

	border: 1px solid #DDD3C7;
	border-radius: 8px;

	background: var(--buy-white);

	color: var(--buy-brown);

	font-family: inherit;
	font-size: 13px;

	outline: none;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.buy-search-field select {
	cursor: pointer;
}

.buy-search-field select:hover,
.buy-search-field input:hover {
	border-color: #C6B7A7;
}

.buy-search-field select:focus,
.buy-search-field input:focus {
	border-color: var(--buy-gold);

	background: var(--buy-cream);

	box-shadow:
		0 0 0 3px rgba(201, 154, 85, 0.12);
}

.buy-search-action {
	display: flex;
	align-items: stretch;
}

.buy-search-action .buy-button {
	height: 52px;
	white-space: nowrap;
}


/* ==========================================================
   TITRE DES RÉSULTATS
========================================================== */

.buy-results-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;

	margin-bottom: 28px;
}

.buy-results-heading .buy-section-label {
	margin-bottom: 9px;
}

.buy-results-heading h3 {
	margin: 0;

	color: var(--buy-black);

	font-family: "Poppins", sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.buy-results-heading .buy-text-link {
	margin-bottom: 3px;
}


/* ==========================================================
   LIENS
========================================================== */

.buy-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	color: var(--buy-gold-dark);

	font-size: 13px;
	font-weight: 800;
	text-decoration: none;

	transition:
		color 0.2s ease,
		gap 0.2s ease;
}

.buy-text-link span {
	font-size: 16px;
}

.buy-text-link:hover {
	gap: 12px;

	color: var(--buy-brown-medium);
}


/* ==========================================================
   GRILLE DES BIENS
========================================================== */

.buy-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.buy-property-item {
	min-width: 0;
}

.buy-empty {
	grid-column: 1 / -1;

	padding: 45px;

	border: 1px solid rgba(90, 53, 29, 0.12);
	border-radius: 16px;

	background: rgba(255, 255, 255, 0.65);

	text-align: center;
}

.buy-empty p {
	margin: 0 0 18px;

	color: var(--buy-muted);

	font-size: 14px;
}

.buy-centered-action {
	margin-top: 35px;

	text-align: center;
}


/* ==========================================================
   PROCESSUS
========================================================== */

.buy-process-section {
	background: var(--buy-white);
}

.buy-section-heading--center {
	margin-right: auto;
	margin-left: auto;

	text-align: center;
}

.buy-section-heading--center p {
	margin-right: auto;
	margin-left: auto;
}

.buy-process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.buy-process-card {
	padding: 32px;

	border: 1px solid rgba(90, 53, 29, 0.12);
	border-radius: 17px;

	background: var(--buy-cream);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.buy-process-card:hover {
	transform: translateY(-5px);

	border-color: rgba(201, 154, 85, 0.45);

	box-shadow:
		0 20px 45px rgba(33, 22, 15, 0.07);
}

.buy-process-number {
	display: block;

	margin-bottom: 45px;

	color: var(--buy-gold);

	font-family: "Poppins", sans-serif;
	font-size: 28px;
	font-weight: 700;
}

.buy-process-card h3 {
	margin: 0;

	color: var(--buy-black);

	font-family: "Poppins", sans-serif;
	font-size: 20px;
}

.buy-process-card p {
	margin: 12px 0 0;

	color: rgba(33, 22, 15, 0.60);

	font-size: 13px;
	line-height: 1.7;
}


/* ==========================================================
   FINANCEMENT
========================================================== */

.buy-finance-section {
	background: var(--buy-cream);
}

.buy-finance-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;

	padding: 55px;

	border-radius: 22px;

	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(201, 154, 85, 0.15),
			transparent 40%
		),
		linear-gradient(
			145deg,
			var(--buy-black),
			var(--buy-brown)
		);
}

.buy-finance-card h2 {
	margin: 0;

	color: var(--buy-white);

	font-family: "Poppins", sans-serif;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.buy-finance-card .buy-section-label {
	color: var(--buy-gold-light);
}

.buy-finance-card p {
	max-width: 650px;

	margin: 17px 0 0;

	color: rgba(245, 238, 227, 0.64);

	font-size: 14px;
	line-height: 1.75;
}


/* ==========================================================
   CONSEIL / PRÉPARATION
========================================================== */

.buy-advice-section {
	background: var(--buy-white);
}

.buy-advice-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;

	padding: 55px;

	border: 1px solid rgba(90, 53, 29, 0.12);
	border-radius: 22px;

	background:
		linear-gradient(
			135deg,
			var(--buy-cream),
			#FBF8F3
		);

	box-shadow:
		0 20px 55px rgba(33, 22, 15, 0.055);
}

.buy-advice-card h2 {
	margin: 0;

	color: var(--buy-black);

	font-family: "Poppins", sans-serif;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.buy-advice-card p {
	max-width: 650px;

	margin: 17px 0 0;

	color: rgba(33, 22, 15, 0.60);

	font-size: 14px;
	line-height: 1.75;
}

.buy-advice-card .buy-button {
	flex-shrink: 0;
}


/* ==========================================================
   CTA FINAL
========================================================== */

.buy-cta-section {
	padding-top: 0;

	background: var(--buy-cream);
}

.buy-cta {
	position: relative;

	overflow: hidden;

	padding: 80px 40px;

	border-radius: 22px;

	background: var(--buy-white);

	text-align: center;

	box-shadow:
		0 20px 55px rgba(33, 22, 15, 0.07);
}

.buy-cta::after {
	content: "M";

	position: absolute;

	right: -45px;
	bottom: -130px;

	color: rgba(201, 154, 85, 0.045);

	font-family: Georgia, "Times New Roman", serif;
	font-size: 390px;
	font-weight: 700;
	line-height: 1;

	pointer-events: none;
}

.buy-cta .buy-section-label,
.buy-cta h2,
.buy-cta p,
.buy-cta .buy-button {
	position: relative;
	z-index: 1;
}

.buy-cta h2 {
	margin: 0;

	color: var(--buy-black);

	font-family: "Poppins", sans-serif;
	font-size: clamp(34px, 4.5vw, 54px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.buy-cta p {
	margin: 15px 0 25px;

	color: rgba(33, 22, 15, 0.58);

	font-size: 15px;
	line-height: 1.7;
}

.buy-cta .buy-button {
	margin: 0 auto;
}


/* ==========================================================
   TABLETTE — 1050 PX
========================================================== */

@media (max-width: 1050px) {

	.buy-hero-inner {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.buy-hero-visual {
		min-height: 280px;
	}

	.buy-featured-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.buy-search-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.buy-search-action {
		grid-column: 1 / -1;
	}

	.buy-search-action .buy-button {
		width: 100%;
	}

	.buy-finance-card,
	.buy-advice-card {
		display: block;
	}

	.buy-finance-card .buy-button,
	.buy-advice-card .buy-button {
		margin-top: 25px;
	}

}


/* ==========================================================
   TABLETTE — 800 PX
========================================================== */

@media (max-width: 800px) {

	.buy-process-grid {
		grid-template-columns: 1fr;
	}

	.buy-process-card {
		padding: 28px 24px;
	}

	.buy-results-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

}


/* ==========================================================
   MOBILE — 700 PX
========================================================== */

@media (max-width: 700px) {

	.metrymmo-buy-page .container {
		width: min(100% - 28px, 1240px);
	}


	/* HERO */

	.buy-hero {
		padding: 55px 0 65px;
	}

	.buy-hero h1 {
		font-size: 45px;
	}

	.buy-hero-content > p {
		font-size: 14px;
	}

	.buy-hero-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.buy-button {
		width: 100%;
	}

	.buy-hero-visual {
		min-height: 230px;
	}

	.buy-hero-card {
		right: 20px;
		bottom: 20px;
		left: 20px;

		padding: 20px;
	}


	/* SECTIONS */

	.buy-search-section,
	.buy-process-section,
	.buy-finance-section,
	.buy-advice-section {
		padding: 60px 0;
	}


	/* RECHERCHE */

	.buy-section-heading {
		margin-bottom: 30px;
	}

	.buy-section-heading h2 {
		font-size: 34px;
	}

	.buy-search-form {
		grid-template-columns: 1fr;
		gap: 15px;

		margin-bottom: 50px;
		padding: 22px;
	}

	.buy-search-action {
		grid-column: auto;
	}

	.buy-search-action .buy-button {
		width: 100%;
	}


	/* BIENS */

	.buy-featured-grid {
		grid-template-columns: 1fr;
	}


	/* FINANCEMENT */

	.buy-finance-card {
		padding: 32px 24px;
	}

	.buy-finance-card h2,
	.buy-advice-card h2 {
		font-size: 32px;
	}


	/* CONSEIL */

	.buy-advice-card {
		padding: 32px 24px;
	}


	/* CTA */

	.buy-cta {
		padding: 55px 24px;
	}

	.buy-cta h2 {
		font-size: 40px;
	}

}


/* ==========================================================
   PETIT MOBILE — 480 PX
========================================================== */

@media (max-width: 480px) {

	.metrymmo-buy-page .container {
		width: calc(100% - 24px);
	}

	.buy-hero h1 {
		font-size: 40px;
	}

	.buy-hero-visual {
		min-height: 210px;
	}

	.buy-hero-card strong {
		font-size: 22px;
	}

	.buy-section-heading h2 {
		font-size: 32px;
	}

	.buy-results-heading h3 {
		font-size: 26px;
	}

	.buy-search-form {
		padding: 18px;
	}

	.buy-process-card {
		padding: 25px 20px;
	}

	.buy-finance-card,
	.buy-advice-card {
		padding: 28px 20px;
	}

	.buy-cta {
		padding: 48px 20px;
	}

}


/* ==========================================================
   ACCESSIBILITÉ
========================================================== */

@media (prefers-reduced-motion: reduce) {

	.metrymmo-buy-page *,
	.metrymmo-buy-page *::before,
	.metrymmo-buy-page *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

}

/* Keep the financing and advice panels inside their sections, away from color seams. */
.buy-finance-section,
.buy-advice-section {
	position: relative;
	padding-block: clamp(64px, 7vw, 88px);
}

.buy-finance-card,
.buy-advice-card {
	width: min(100%, 1120px);
	min-width: 0;
	margin: 0 auto;
	box-sizing: border-box;
	gap: clamp(24px, 4vw, 52px);
	padding: clamp(28px, 4.5vw, 56px);
	border-radius: 20px;
}

.buy-advice-card > div { min-width: 0; }
.buy-advice-card h2 { max-width: 700px; }
.buy-advice-card .buy-button { flex: 0 0 auto; }

.buy-cta-section {
	padding: clamp(64px, 7vw, 88px) 0;
	background: var(--buy-cream);
}

.buy-cta {
	width: min(100%, 1120px);
	margin-inline: auto;
	box-sizing: border-box;
	padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 58px);
	border-radius: 20px;
}

@media (max-width: 1050px) {
	.buy-finance-card,
	.buy-advice-card { display: flex; align-items: flex-start; flex-direction: column; }
	.buy-finance-card .buy-button,
	.buy-advice-card .buy-button { margin-top: 0; }
}

@media (max-width: 600px) {
	.buy-finance-section,
	.buy-advice-section,
	.buy-cta-section { padding-block: 54px; }
	.buy-finance-card,
	.buy-advice-card { padding: 26px 22px; }
	.buy-finance-card .buy-button,
	.buy-advice-card .buy-button,
	.buy-cta .buy-button { width: 100%; }
}
