/**
 * Styles pour les filtres Super Elastic
 */

.super-elastic-filters {
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.se-filter-group {
	margin-bottom: 30px;
}

.se-filter-group:last-child {
	margin-bottom: 0;
}

.se-filter-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.se-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.se-filter-item {
	margin-bottom: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.se-filter-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.se-filter-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.se-filter-checkbox input[type="checkbox"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.se-filter-label {
	flex: 1;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

.se-filter-item.se-selected .se-filter-label {
	font-weight: 600;
	color: #0073aa;
}

.se-filter-count {
	color: #999;
	font-weight: normal;
	font-size: 13px;
	margin-left: 5px;
}

.se-category-item {
	position: relative;
}

.se-toggle-children {
	position: absolute;
	right: 0;
	top: 12px;
	transform: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px 10px;
	color: #666;
	font-size: 12px;
}

.se-toggle-children:hover {
	color: #0073aa;
}

.se-toggle-children .se-arrow {
	display: inline-block;
	transition: transform 0.2s;
}

.se-toggle-children .se-arrow.se-expanded {
	transform: rotate(90deg);
}

.se-children-container {
	margin-top: 10px;
	margin-left: 30px;
	padding-left: 15px;
	border-left: 2px solid #eee;
}

.se-children-container .se-filter-item {
	font-size: 13px;
}

.se-loading {
	padding: 10px;
	text-align: center;
	color: #666;
	font-style: italic;
}

.se-no-children,
.se-error {
	padding: 10px;
	color: #999;
	font-size: 13px;
}

.se-error {
	color: #d63638;
}

/* État de chargement global */
body.se-loading {
	position: relative;
}

body.se-loading::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9998;
}

body.se-loading::before {
	content: 'Chargement...';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	background: #fff;
	padding: 20px 40px;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	font-size: 16px;
	color: #333;
}

/* Message d'erreur */
.se-error-message {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #d63638;
	color: #fff;
	padding: 15px 20px;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 10000;
}

/* Responsive */
@media (max-width: 768px) {
	.super-elastic-filters {
		padding: 15px;
	}

	.se-filter-title {
		font-size: 16px;
	}

	.se-children-container {
		margin-left: 20px;
	}
}
