:root {
	--primary-color: #47B26B;
	--secondary-color: #f3f4f6;
	--border-color: #cacaca;
	--text-color: #374151;
	--hover-color: #1d4ed8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	background-color: #f4f4f4;
	line-height: 1.5;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

h1 {
	font-size: 1.7rem;
	color: #1f2937;
	margin-bottom: 1rem;
	text-align: center;
}

.search-container {
	margin: 20px auto;
	max-width: 600px;
	position: sticky;
	top: 20px;
	z-index: 100;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-wrapper {
	position: relative;
	width: 100%;
}

.search-input {
	width: 100%;
	padding: 15px 20px;
	padding-left: 45px;
	padding-right: 45px; /* Espace pour le bouton clear */
	font-size: 1.1rem;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
}

.search-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(71, 178, 107, 0.2);
}

.clear-search {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	cursor: pointer;
	padding: 5px;
	border-radius: 50%;
	transition: all 0.2s ease;
	opacity: 0;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.clear-search:hover {
	background-color: #f0f0f0;
	color: #333;
}

.clear-search.visible {
	opacity: 1;
	visibility: visible;
}

.hebergement {
	background: white;
	border-radius: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 2rem;
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hebergement.hidden {
	display: none;
	opacity: 0;
	visibility: hidden;
	height: 0;
	margin: 0;
	padding: 0;
}

.hebergement h2 {
	background: var(--primary-color);
	color: white;
	padding: 1rem;
	font-size: 1.25rem;
	margin: 0;
}

.site {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.3rem;
	border-bottom: 1px solid var(--border-color);
	transition: all 0.3s ease;
	opacity: 1;
	visibility: visible;
	background: white;
}

.site.hidden {
	display: none;
	opacity: 0;
	visibility: hidden;
	height: 0;
	padding: 0;
	margin: 0;
	border: none;
}

.site:hover {
	background-color: var(--secondary-color);
}

.site-name {
	flex: 1;
}

.site-actions {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	gap: 15px;
}

.site-actions a {
	color: #555;
	text-decoration: none;
	padding: 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.site-actions a:hover {
	color: var(--hover-color);
	background-color: rgba(0,0,0,0.05);
}

.stats {
	font-size: 1.2rem;
	background: var(--primary-color);
	color: white;
	padding: 0.4rem 1.5rem;
	border-radius: 2rem;
	margin-bottom: 0.7rem;
	margin-left: 2rem;
	display: inline-block;
	font-weight: 500;
}

.results-count {
	margin-top: 10px;
	color: #666;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.container {
		padding: 10px;
	}

	.site {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.site-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.search-container {
		position: relative;
		top: 0;
	}
}