.annuaire-ressources .hide,
#annuaire-list.hide,
#annuaire-map.hide,
#annuaire-empty.hide,
#annuaire-intro.hide,
#annuaire-tabs.hide,
#annuaire-results.hide,
#annuaire-location-error.hide,
#annuaire-detail-placeholder.hide,
#annuaire-detail.hide,
#annuaire-detail-overlay.hide {
	display: none !important;
}

.annuaire-ressources {
	padding: 30px 20px 60px;
	max-width: 1400px;
	margin: 0 auto;
}

.annuaire-header h1 {
	color: #1e3a8a;
	font-weight: 700;
	margin-bottom: 4px;
}

.annuaire-header p {
	color: #555;
	margin-bottom: 24px;
}

.annuaire-layout {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.annuaire-shell {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(30, 58, 138, 0.06);
}

.annuaire-sidebar {
	flex: 0 0 300px;
	background: #fff;
	padding: 16px;
	border-right: 1px solid #e3e7ef;
	display: flex;
	flex-direction: column;
}

.annuaire-search {
	margin-bottom: 18px;
}

.annuaire-search .form-control {
	height: 44px;
	border-radius: 8px;
	box-shadow: none;
}

.annuaire-filters {
	margin-bottom: 8px;
}

.annuaire-location {
	margin: 8px 0 16px;
}

.annuaire-count {
	margin: 8px 2px 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1e3a8a;
}

.annuaire-count:empty {
	display: none;
}

.annuaire-location-label {
	display: block;
	font-weight: 700;
	color: #1e3a8a;
	margin: 0 0 8px;
}

.annuaire-location .form-control {
	height: 44px;
	border-radius: 8px;
	box-shadow: none;
}

.annuaire-location select {
	margin-top: 8px;
}

.annuaire-location-submit {
	margin-top: 10px;
	height: 44px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 44px;
	background: #1e3a8a;
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
}

.annuaire-location-submit:hover {
	background: #2f5bd8;
	color: #fff;
}

.annuaire-location-error {
	margin: 8px 0 0;
	color: #b91c1c;
	font-size: 0.85rem;
}

.annuaire-filters-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e3a8a;
	text-align: left;
	cursor: default;
}

.annuaire-filters-toggle:focus,
.annuaire-filters-toggle:active {
	outline: none;
	box-shadow: none;
	background: none;
}

.annuaire-filters-chevron {
	display: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid #1e3a8a;
	border-bottom: 2px solid #1e3a8a;
	transform: rotate(45deg);
	transition: transform 0.15s;
}

.annuaire-intro {
	margin: 0;
	padding: 20px 16px;
	text-align: center;
	color: #444;
	background: #f5f7fc;
	border-radius: 10px;
}

.annuaire-list-item-distance {
	margin-left: auto;
	color: #1e3a8a;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.annuaire-filter-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	margin: 0;
	cursor: pointer;
}

.annuaire-filter-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 auto;
	cursor: pointer;
}

.annuaire-filter-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.annuaire-filter-icon img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

.annuaire-filter-label {
	flex: 1 1 auto;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.25;
	color: #222;
}

.annuaire-reset {
	margin-top: auto;
	background: #fff;
	color: #2f5bd8;
	border: 1px solid #2f5bd8;
	border-radius: 8px;
	padding: 9px 12px;
	font-weight: 600;
}

.annuaire-reset:hover {
	background: #eef3ff;
	color: #2f5bd8;
}

.annuaire-main {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.annuaire-map {
	height: 100%;
	min-height: 640px;
	width: 100%;
	z-index: 0;
}

.annuaire-empty {
	text-align: center;
	color: #888;
	padding: 40px 0;
}

/* Pins */

.annuaire-pin-wrapper {
	background: transparent;
	border: none;
}

.annuaire-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	border: 2px solid #fff;
}

.annuaire-pin img {
	width: 14px;
	height: 14px;
	transform: rotate(45deg);
	filter: brightness(0) invert(1);
}

/* Clusters */

.annuaire-cluster-wrapper {
	background: transparent;
	border: none;
}

.annuaire-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Liste mobile */

.annuaire-list-group-title {
	font-weight: 700;
	color: #1e3a8a;
	margin: 20px 0 8px;
	padding-bottom: 4px;
	border-bottom: 2px solid #e5e7eb;
}

.annuaire-list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 6px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
}

.annuaire-list-item:hover {
	background: #f8f9fb;
}

.annuaire-list-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.annuaire-list-icon img {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

.annuaire-list-item-body {
	display: flex;
	flex-direction: column;
}

.annuaire-list-item-city {
	color: #777;
	font-size: 0.85rem;
}

/* Colonne de droite */

.annuaire-aside {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.annuaire-aside-card {
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(30, 58, 138, 0.06);
}

.annuaire-aside-title {
	margin: 0 0 12px;
	font-weight: 700;
	color: #1e3a8a;
}

.annuaire-detail-placeholder {
	color: #777;
	margin: 0;
}

.annuaire-help-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.annuaire-help-card .annuaire-aside-title {
	margin-bottom: 6px;
	font-size: 1rem;
}

.annuaire-help-card p {
	margin: 0;
	color: #555;
	font-size: 0.9rem;
}

.annuaire-help-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #7c3aed;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.annuaire-help-icon img {
	width: 18px;
	height: 18px;
	filter: brightness(0) invert(1);
}

/* Onglets Liste / Carte (mobile uniquement) */

.annuaire-tabs {
	display: none;
}

/* Liste des résultats (desktop, colonne de droite) */

.annuaire-results {
	max-height: 600px;
	overflow-y: auto;
	margin: 0 -8px;
}

.annuaire-results .annuaire-list-item {
	padding: 10px 8px;
}

.annuaire-back {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	background: none;
	border: 0;
	color: #2f5bd8;
	font-weight: 600;
	cursor: pointer;
}

.annuaire-back:hover {
	text-decoration: underline;
}

/* Fiche détail */

.annuaire-detail-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1050;
}

.annuaire-detail {
	position: relative;
}

.annuaire-detail-close {
	position: absolute;
	top: -4px;
	right: 0;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.annuaire-detail-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 24px;
	margin-bottom: 14px;
}

.annuaire-detail-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.annuaire-detail-icon img {
	width: 26px;
	height: 26px;
	filter: brightness(0) invert(1);
}

.annuaire-detail-header h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.annuaire-detail-category {
	font-size: 0.9rem;
	font-weight: 600;
}

.annuaire-detail-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 10px;
	word-break: break-word;
}

.annuaire-detail-row svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin-top: 2px;
	stroke: #555;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.annuaire-detail-presentation {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eee;
	white-space: pre-line;
	color: #444;
}

/* Mobile : fiche en panneau latéral plein écran */

@media (max-width: 767px) {
	.annuaire-layout,
	.annuaire-shell {
		display: block;
	}

	.annuaire-shell {
		border-radius: 12px;
	}

	.annuaire-filters-toggle {
		cursor: pointer;
		margin-bottom: 0;
		padding: 10px 0;
	}

	.annuaire-filters-chevron {
		display: block;
	}

	.annuaire-filters-toggle[aria-expanded="true"] .annuaire-filters-chevron {
		transform: rotate(-135deg);
	}

	.annuaire-category-filters {
		display: none;
	}

	.annuaire-category-filters.open {
		display: block;
	}

	.annuaire-sidebar {
		border-right: 0;
		border-bottom: 1px solid #e3e7ef;
	}

	.annuaire-main {
		padding: 0 16px 16px;
	}

	.annuaire-aside,
	.annuaire-aside-card {
		display: contents;
	}

	.annuaire-results {
		display: none;
	}

	.annuaire-tabs {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 5;
		background: #fff;
		border-bottom: 1px solid #e3e7ef;
		margin: 0 -16px 12px;
	}

	.annuaire-tab {
		flex: 1 1 0;
		padding: 12px 8px;
		background: none;
		border: 0;
		border-bottom: 3px solid transparent;
		font-weight: 600;
		color: #555;
	}

	.annuaire-tab:focus,
	.annuaire-tab:active {
		outline: none;
		box-shadow: none;
		background: none;
	}

	.annuaire-tab.active {
		color: #1e3a8a;
		border-bottom-color: #1e3a8a;
	}

	.annuaire-map {
		height: 65vh;
		min-height: 360px;
		border-radius: 10px;
	}

	.annuaire-aside-title,
	.annuaire-detail-placeholder,
	.annuaire-help-card {
		display: none;
	}

	.annuaire-detail {
		position: fixed;
		top: 0;
		right: 0;
		height: 100%;
		width: 100%;
		background: #fff;
		box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
		z-index: 1060;
		padding: 24px;
		overflow-y: auto;
	}

	.annuaire-detail-close {
		top: 12px;
		right: 16px;
	}

	.annuaire-detail-header {
		margin-top: 8px;
	}
}
