/* ============================================
   PAGE LISTE IMMOBILIERE - STYLE MODERN
   ============================================ */

:root {
	--primary: #0066FF;
	--primary-dark: #0052CC;
	--secondary: #FF6B2C;
	--success: #10B981;
	--gray-900: #111827;
	--gray-700: #374151;
	--gray-500: #6B7280;
	--gray-300: #D1D5DB;
	--gray-100: #F3F4F6;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;
}

body {
	font-family: 'Inter', sans-serif;
	background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
	color: var(--gray-900);
}

.immo-list-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Header */
.immo-list-header {
	text-align: center;
	margin-bottom: 3rem;
}

.immo-list-header .badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(0, 102, 255, 0.1);
	padding: 0.5rem 1rem;
	border-radius: 100px;
	color: var(--primary);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.immo-list-header h1 {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
	background: linear-gradient(135deg, var(--gray-900), var(--primary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.immo-list-header p {
	color: var(--gray-500);
	max-width: 600px;
	margin: 0 auto;
}

/* Barre d'actions */
.actions-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1rem;
	background: white;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.btn-add {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 2rem;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.btn-add:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	color: white;
}

.btn-back {
	background: var(--gray-100);
	color: var(--gray-700);
	padding: 0.75rem 1.5rem;
	border-radius: 2rem;
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.btn-back:hover {
	background: var(--gray-300);
}

/* Filtres */
.filters {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.filter-select {
	padding: 0.75rem 1rem;
	border: 1px solid var(--gray-300);
	border-radius: 2rem;
	background: white;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.filter-reset {
	background: transparent;
	border: 1px solid var(--gray-300);
	padding: 0.75rem 1.5rem;
	border-radius: 2rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-reset:hover {
	background: var(--gray-100);
}

/* Grille des annonces */
.annonces-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 1.75rem;
	margin-bottom: 2rem;
}

/* Carte annonce */
.annonce-card {
	background: white;
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}

.annonce-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.card-image {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.annonce-card:hover .card-image img {
	transform: scale(1.05);
}

.card-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 2rem;
	font-size: 0.75rem;
	font-weight: 500;
}

.card-badge.type {
	left: 1rem;
	right: auto;
	background: var(--primary);
}

.card-content {
	padding: 1.5rem;
}

.card-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--gray-900);
}

.card-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--primary);
	margin: 0.75rem 0;
}

.card-location {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--gray-500);
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
}

.card-features {
	display: flex;
	gap: 1rem;
	margin: 1rem 0;
	padding: 0.75rem 0;
	border-top: 1px solid var(--gray-100);
	border-bottom: 1px solid var(--gray-100);
}

.feature {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--gray-700);
}

.feature i {
	color: var(--primary);
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
}

.card-date {
	font-size: 0.75rem;
	color: var(--gray-500);
}

.card-contact {
	background: var(--gray-100);
	color: var(--gray-700);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.card-contact:hover {
	background: var(--primary);
	color: white;
}

/* Pagination */
.pagination-modern {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background: white;
	border: 1px solid var(--gray-300);
	border-radius: 0.5rem;
	color: var(--gray-700);
	text-decoration: none;
	transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

/* Empty state */
.empty-state {
	text-align: center;
	padding: 4rem;
	background: white;
	border-radius: var(--radius-xl);
}

.empty-state i {
	font-size: 4rem;
	color: var(--gray-300);
	margin-bottom: 1rem;
}

.empty-state h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
	.annonces-grid {
		grid-template-columns: 1fr;
	}
	
	.actions-bar {
		flex-direction: column;
		align-items: stretch;
	}
	
	.filters {
		justify-content: center;
	}
	
	.immo-list-header h1 {
		font-size: 1.75rem;
	}
}

/* Animation */
.annonce-card {
	animation: fadeInUp 0.5s ease forwards;
	opacity: 0;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.annonce-card:nth-child(1) { animation-delay: 0.05s; }
.annonce-card:nth-child(2) { animation-delay: 0.1s; }
.annonce-card:nth-child(3) { animation-delay: 0.15s; }
.annonce-card:nth-child(4) { animation-delay: 0.2s; }
.annonce-card:nth-child(5) { animation-delay: 0.25s; }
.annonce-card:nth-child(6) { animation-delay: 0.3s; }
