/* Appart.sn premium homepage - scoped to index.php */
:root {
	--home-ink: #101828;
	--home-muted: #667085;
	--home-line: #e7ebf0;
	--home-blue: #1455d9;
	--home-blue-dark: #0b327a;
	--home-gold: #f4a51c;
	--home-green: #0f8f6b;
	--home-bg: #f7f9fc;
	--home-card: #ffffff;
	--home-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}

.social-bar-top {
	background: #0f172a;
	min-height: 34px;
}

header {
	background: #ffffff;
	border-bottom: 1px solid rgba(16, 24, 40, 0.08);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

header .logo img {
	max-height: 58px;
	width: auto;
}

.colorbackmenu {
	background: #ffffff;
	border-top: 0;
	border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.appart-home {
	background: var(--home-bg);
	color: var(--home-ink);
	font-family: Arial, Helvetica, sans-serif;
}

.appart-home a {
	transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-hero {
	position: relative;
	padding: 72px 18px 34px;
	background: linear-gradient(120deg, rgba(6, 24, 56, 0.9), rgba(10, 74, 126, 0.78)), url('../../../images/annonce/00017e6406e6cbb8e497cf33bdb53922.jpg');
	background-size: cover;
	background-position: center;
	color: #ffffff;
}

.home-hero__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 34px;
	align-items: center;
}

.home-eyebrow,
.home-section-head p,
.home-cta p {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--home-gold);
}

.home-hero h1 {
	margin: 0;
	font-size: 52px;
	line-height: 1.05;
	letter-spacing: 0;
	max-width: 720px;
}

.home-lead {
	max-width: 660px;
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.home-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.home-proof span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	font-size: 13px;
	backdrop-filter: blur(8px);
}

.home-proof strong {
	margin-right: 4px;
	color: #ffffff;
}

.home-search {
	background: #ffffff;
	color: var(--home-ink);
	border-radius: 8px;
	padding: 22px;
	box-shadow: var(--home-shadow);
}

.home-search__title {
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 800;
}

.home-search label {
	display: block;
	margin-bottom: 13px;
}

.home-search span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--home-muted);
}

.home-search input,
.home-search select {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	border: 1px solid var(--home-line);
	border-radius: 6px;
	padding: 0 12px;
	background: #ffffff;
	color: var(--home-ink);
	font-size: 15px;
}

.home-search button {
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: 6px;
	background: var(--home-blue);
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}

.home-search button:hover {
	background: var(--home-blue-dark);
}

.home-cities,
.home-listings,
.home-categories,
.home-seo {
	max-width: 1180px;
	margin: 0 auto;
	padding: 46px 18px 0;
}

.home-section-head {
	margin-bottom: 22px;
}

.home-section-head h2,
.home-cta h2 {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--home-ink);
}

.home-section-head--row {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: end;
}

.home-link {
	font-weight: 800;
	color: var(--home-blue);
	text-decoration: none;
}

.home-city-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.home-city-grid a {
	display: block;
	min-height: 86px;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid var(--home-line);
	border-radius: 8px;
	background: #ffffff;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.home-city-grid a:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
}

.home-city-grid span {
	display: block;
	font-size: 18px;
	font-weight: 800;
	color: var(--home-ink);
}

.home-city-grid small {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--home-muted);
}

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

.home-listing-grid .linkoffre {
	display: block;
	text-decoration: none;
	color: inherit;
}

.home-listing-grid .block-annonce {
	position: relative;
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	padding: 0 0 16px;
	border: 1px solid var(--home-line);
	border-radius: 8px;
	background: var(--home-card);
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.home-listing-grid .block-annonce:hover {
	transform: translateY(-3px);
	box-shadow: var(--home-shadow);
}

.home-listing-grid .photo {
	float: none;
	width: 100%;
	height: auto;
	margin: 0;
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e9eef5;
}

.home-listing-grid .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-listing-grid .nbr-photo {
	position: absolute;
	right: 10px;
	bottom: 10px;
	min-width: 28px;
	height: 28px;
	line-height: 28px;
	border-radius: 999px;
	background: rgba(16, 24, 40, 0.78);
	color: #ffffff;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
}

.home-listing-grid .text-block-annonce {
	padding: 14px 14px 0;
}

.home-listing-grid .title-block-annonce {
	min-height: 48px;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 800;
	color: var(--home-ink);
}

.home-listing-grid .meta-block-annonce,
.home-listing-grid .text-block-annonce > div:not(.title-block-annonce):not(.prix-block-annonce) {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--home-muted);
}

.home-listing-grid .prix-block-annonce {
	margin-top: 12px;
	font-size: 20px;
	font-weight: 900;
	color: var(--home-blue-dark);
}

.home-listing-grid .date-depot-annonce {
	position: static;
	padding: 10px 14px 0;
	font-size: 12px;
	color: var(--home-muted);
}

.home-listing-grid .favoris-block-annonce {
	position: relative;
	float: none;
	width: 26px;
	height: 26px;
	margin: -44px 12px 18px auto;
	z-index: 2;
}

.home-cta {
	max-width: 1180px;
	margin: 52px auto 0;
	padding: 30px 32px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	border-radius: 8px;
	background: #0f172a;
	color: #ffffff;
}

.home-cta h2 {
	max-width: 720px;
	color: #ffffff;
}

.home-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 18px;
	border-radius: 6px;
	background: var(--home-gold);
	color: #1a1a1a;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.home-categories {
	padding-top: 50px;
}

.home-categories .home-section-head {
	text-align: center;
}

.home-categories .categorieshow,
.home-categories > center {
	display: none;
}

.home-categories a,
.home-categories .categorie,
.home-categories .item-category {
	border-radius: 8px;
}

.home-seo {
	padding-bottom: 54px;
}

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

.home-seo article {
	padding: 22px;
	border: 1px solid var(--home-line);
	border-radius: 8px;
	background: #ffffff;
}

.home-seo h3 {
	margin: 0 0 10px;
	font-size: 19px;
	color: var(--home-ink);
}

.home-seo p {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: var(--home-muted);
}

.prefooter {
	margin-top: 0;
	background: #0f172a;
	color: rgba(255, 255, 255, 0.82);
}

.prefooter a,
.prefooter .footer a {
	color: #ffffff !important;
}

@media (max-width: 1024px) {
	.home-hero__inner {
		grid-template-columns: 1fr;
	}

	.home-search {
		max-width: 760px;
	}

	.home-city-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-listing-grid,
	.home-seo__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.social-bar-top {
		display: none;
	}

	header .container {
		min-height: 70px;
	}

	.home-hero {
		padding: 42px 14px 28px;
	}

	.home-hero h1 {
		font-size: 36px;
	}

	.home-lead {
		font-size: 16px;
	}

	.home-proof {
		gap: 8px;
	}

	.home-proof span {
		font-size: 12px;
	}

	.home-cities,
	.home-listings,
	.home-categories,
	.home-seo {
		padding-left: 14px;
		padding-right: 14px;
	}

	.home-section-head--row,
	.home-cta {
		display: block;
	}

	.home-section-head h2,
	.home-cta h2 {
		font-size: 24px;
	}

	.home-link {
		display: inline-block;
		margin-top: 12px;
	}

	.home-city-grid,
	.home-listing-grid,
	.home-seo__grid {
		grid-template-columns: 1fr;
	}

	.home-cta {
		margin-left: 14px;
		margin-right: 14px;
		padding: 24px;
	}

	.home-cta a {
		width: 100%;
		box-sizing: border-box;
		margin-top: 18px;
	}
}
.home-listing-grid .photo img[src$="fallback-immobilier-senegal.svg"],
.home-listing-grid .photo img.is-fallback {
	object-fit: cover;
	padding: 0;
	box-sizing: border-box;
	background: linear-gradient(135deg, #0f2f63, #1455d9);
}
.home-zone-field {
	position: relative;
	display: block;
	margin-bottom: 13px;
}

.home-zone-field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--home-muted);
}

.home-zone-native {
	position: relative;
}

.home-zone-original {
	position: absolute !important;
	left: 0;
	top: 0;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none;
}

.home-zone-combobox {
	position: relative;
	z-index: 20;
}

.home-zone-input {
	padding-right: 42px !important;
	background: #ffffff;
	box-shadow: none;
}

.home-zone-combobox::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 19px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--home-muted);
	border-bottom: 2px solid var(--home-muted);
	transform: rotate(45deg);
	pointer-events: none;
}

.home-zone-list {
	display: none;
	position: absolute;
	z-index: 60;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	max-height: 238px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--home-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(16, 24, 40, 0.18);
	padding: 6px;
}

.home-zone-combobox.is-open .home-zone-list {
	display: block;
}

.home-zone-option {
	display: block;
	width: 100%;
	min-height: 38px;
	padding: 9px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--home-ink);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.home-zone-option:hover,
.home-zone-option.is-selected {
	background: #eef4ff;
	color: var(--home-blue-dark);
}

.home-zone-empty {
	padding: 12px;
	font-size: 13px;
	color: var(--home-muted);
	text-align: center;
}

@media (max-width: 720px) {
	.home-zone-list {
		max-height: min(280px, 42vh);
		border-radius: 8px;
	}

	.home-zone-option {
		min-height: 42px;
		font-size: 15px;
	}
}
/* Stable listing cards grid */
.home-listing-grid {
	align-items: stretch;
}

.home-listing-grid .home-annonce-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
}

.home-listing-grid .home-annonce-card .linkoffre {
	display: flex;
	width: 100%;
	min-width: 0;
}

.home-listing-grid .home-annonce-card .block-annonce {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 420px;
	padding: 0;
}

.home-listing-grid .home-annonce-card .photo {
	flex: 0 0 auto;
	height: 236px;
	aspect-ratio: auto;
}

.home-listing-grid .home-annonce-card .text-block-annonce {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 14px 14px 0;
	min-height: 142px;
}

.home-listing-grid .home-annonce-card .title-block-annonce {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 46px;
}

.home-listing-grid .home-annonce-card .meta-block-annonce {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}

.home-listing-grid .home-annonce-card .prix-block-annonce {
	margin-top: auto;
	min-height: 28px;
}

.home-listing-grid .home-annonce-card .date-depot-annonce {
	flex: 0 0 auto;
	min-height: 28px;
	padding: 10px 14px 14px;
}

.home-listing-grid .home-annonce-card .favoris-block-annonce {
	position: absolute;
	top: 12px;
	right: 12px;
	float: none;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 7px;
	box-sizing: border-box;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16);
	z-index: 4;
}

.home-listing-grid .home-annonce-card .favoris-block-annonce img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.home-listing-grid > .favoris-block-annonce {
	display: none;
}

@media (max-width: 1024px) {
	.home-listing-grid .home-annonce-card .block-annonce {
		min-height: 408px;
	}

	.home-listing-grid .home-annonce-card .photo {
		height: 230px;
	}
}

@media (max-width: 720px) {
	.home-listing-grid .home-annonce-card .block-annonce {
		min-height: 0;
	}

	.home-listing-grid .home-annonce-card .photo {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

/* Image pipeline premium: cards use 600x420 variants, never legacy 192px thumbnails. */
.home-listing-grid .photo,
.home-listing-grid .home-annonce-card .photo {
	height: auto !important;
	aspect-ratio: 10 / 7 !important;
}
.home-listing-grid .photo img {
	image-rendering: auto;
	backface-visibility: hidden;
	will-change: transform;
}
