@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&display=swap');

.a2m-page {
	--a2m-accent: #6dc3ff;
	--a2m-gold: #e8c675;
	font-family: "Titillium Web", arial, helvetica, sans-serif;
}

.a2m-app h3 {
	font-family: "Cinzel", "Titillium Web", serif;
}

.a2m-loading,
.a2m-empty-state {
	padding: 2em 0;
	color: #888;
	text-align: center;
}

.a2m-disclaimer-banner {
	margin: 0 0 18px;
	padding: 10px 16px;
	background: #eef4fb;
	border-radius: 10px;
	color: #4a6b8a;
	font-size: 0.82em;
	line-height: 1.5;
}

.a2m-disclaimer-banner a {
	color: #2c6fa8;
	font-weight: 700;
}

.a2m-credit {
	margin: 10px 2px 0;
	color: #aaa;
	font-size: 0.72em;
	text-align: right;
}

.a2m-credit a {
	color: #999;
}

.a2m-empty-state {
	margin-top: 12px;
	padding: 18px;
	background: #f7f7f7;
	border-radius: 12px;
}

/* ---------- Barre d'outils ---------- */

.a2m-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.a2m-search {
	flex: 1 1 220px;
	padding: 0.7em 1.1em;
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 0.9em;
}

.a2m-search:focus {
	border-color: var(--a2m-accent);
	outline: none;
}

.a2m-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.a2m-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 2px solid var(--cat-color);
	border-radius: 999px;
	background: #fff;
	color: var(--cat-color);
	font-size: 0.8em;
	font-weight: 700;
	cursor: pointer;
	opacity: 0.4;
	transition: all 0.15s ease;
}

.a2m-filter.is-active {
	background: var(--cat-color);
	color: #fff;
	opacity: 1;
}

.a2m-filter-icon {
	font-size: 1em;
}

.a2m-add-btn {
	padding: 0.7em 1.3em;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--a2m-gold), #d1a44a);
	color: #1a1400;
	font-weight: 800;
	font-size: 0.85em;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.a2m-add-btn:hover {
	filter: brightness(1.08);
}

.a2m-add-btn.is-active {
	background: #e05a4e;
	color: #fff;
}

/* ---------- Carte ---------- */

.a2m-map-wrap {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

#a2m-leaflet {
	height: 620px;
	width: 100%;
	background: #b7c6b3;
	box-shadow: inset 0 0 120px rgba(90, 65, 30, 0.35);
}

.a2m-map-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.a2m-map-tab {
	padding: 8px 18px;
	border: 2px solid #ddd;
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-weight: 700;
	font-size: 0.85em;
	cursor: pointer;
	transition: all 0.15s ease;
}

.a2m-map-tab.is-active {
	border-color: #2c6fa8;
	background: linear-gradient(135deg, #2c6fa8, #6dc3ff);
	color: #fff;
}

.a2m-count {
	margin: 10px 0 0;
	color: #999;
	font-size: 0.78em;
	text-align: right;
}

.a2m-add-hint {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	margin: 0;
	padding: 8px 18px;
	background: rgba(16, 25, 43, 0.9);
	color: #fff;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	pointer-events: none;
}

.a2m-marker-icon {
	background: transparent;
	border: none;
}

.a2m-marker-icon span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
	font-size: 1.1em;
	border: 2px solid #fff;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.a2m-marker-icon:hover span {
	transform: scale(1.15);
}

.a2m-popup strong {
	display: block;
	margin-bottom: 2px;
	font-size: 1em;
}

.a2m-popup-zone {
	display: inline-block;
	margin-bottom: 6px;
	color: #888;
	font-size: 0.78em;
	font-style: italic;
}

.a2m-popup p {
	margin: 4px 0 8px;
	font-size: 0.85em;
	color: #444;
	line-height: 1.5;
}

.a2m-popup-delete {
	padding: 4px 10px;
	border: none;
	border-radius: 6px;
	background: #f4d4d0;
	color: #a13a2e;
	font-size: 0.75em;
	font-weight: 700;
	cursor: pointer;
}

.a2m-popup-delete:hover {
	background: #e05a4e;
	color: #fff;
}

/* ---------- Modale d'ajout ---------- */

.a2m-modal-overlay[hidden] {
	display: none;
}

.a2m-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 15, 25, 0.6);
}

.a2m-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 26px 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.a2m-modal h3 {
	margin: 0 0 16px;
}

.a2m-modal label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.82em;
	font-weight: 700;
	color: #444;
}

.a2m-modal input,
.a2m-modal select,
.a2m-modal textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 5px;
	padding: 0.6em 0.8em;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 400;
	font-family: inherit;
}

.a2m-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	background: #f3f3f3;
	font-size: 1.2em;
	cursor: pointer;
}

.a2m-form-submit {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 0.75em 1em;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #2c6fa8, #6dc3ff);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

@media only screen and (max-width: 45em) {
	#a2m-leaflet {
		height: 420px;
	}
}
