/* La carte des potins */
.potin-carte { --prune: var(--wp--preset--color--prune, #4a1d4f); --lilas: var(--wp--preset--color--lilas, #e3d4f2); --ocre: var(--wp--preset--color--ocre, #e8a33a); --encre: var(--wp--preset--color--encre, #2a1b33); --blanc: var(--wp--preset--color--blanc, #fff); }

.potin-carte__filtres { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.potin-carte__filtres::-webkit-scrollbar { display: none; }
.potin-filtre { flex: 0 0 auto; font: inherit; font-size: .9375rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--prune); background: transparent; color: var(--prune); cursor: pointer; }
.potin-filtre span { font-weight: 800; opacity: .7; margin-left: 2px; }
.potin-filtre.is-active { background: var(--prune); color: var(--blanc); }
.potin-filtre:focus-visible { outline: 2px solid var(--ocre); outline-offset: 2px; }

.potin-carte__zone { position: relative; }
.potin-carte__map { height: 72vh; min-height: 420px; max-height: 760px; border-radius: 24px; overflow: hidden; background: var(--lilas); border: 3px solid var(--prune); z-index: 0; }
.potin-carte__map .leaflet-tile-pane { filter: grayscale(1) sepia(.25) hue-rotate(225deg) saturate(1.4) brightness(1.04) contrast(.92); }
.potin-carte__agglo { position: absolute; right: 12px; bottom: 28px; z-index: 500; font: inherit; font-size: .875rem; font-weight: 700; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--blanc); color: var(--prune); box-shadow: 0 2px 10px rgba(42, 27, 51, .2); cursor: pointer; }
.potin-carte__vide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 500; background: var(--blanc); padding: 16px 20px; border-radius: 20px; font-weight: 600; text-align: center; max-width: 80%; box-shadow: 0 4px 16px rgba(42, 27, 51, .15); }

/* Bulles sur la carte */
.potin-marqueur { background: none; border: 0; }
.potin-marqueur__bulle { position: relative; width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; line-height: 1; background: var(--prune, #4a1d4f); border: 3px solid #fff; border-radius: 50% 50% 50% 8px; box-shadow: 0 3px 10px rgba(42, 27, 51, .35); transition: transform .15s ease; }
.potin-marqueur:hover .potin-marqueur__bulle, .potin-marqueur:focus .potin-marqueur__bulle { transform: scale(1.12); }
.potin-marqueur.est-ancien .potin-marqueur__bulle { background: #8a6f95; opacity: .75; }
.potin-marqueur.est-recent .potin-marqueur__bulle::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--ocre, #e8a33a); animation: potinPulse 1.8s ease-out infinite; }
@keyframes potinPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.potin-marqueur.est-masque { display: none; }

/* Carte d'un potin (popup) */
.potin-carte .leaflet-popup-content-wrapper { border-radius: 22px; padding: 0; overflow: hidden; box-shadow: 0 8px 28px rgba(42, 27, 51, .28); }
.potin-carte .leaflet-popup-content { margin: 0; width: 250px !important; font: inherit; color: var(--encre); }
.potin-carte .leaflet-popup-close-button { z-index: 2; width: 30px !important; height: 30px !important; top: 8px !important; right: 8px !important; font-size: 20px !important; line-height: 28px !important; border-radius: 50%; background: rgba(255, 255, 255, .9) !important; color: var(--encre) !important; }
.potin-pop__photo { display: block; }
.potin-pop__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 260px; object-fit: cover; }
.potin-pop__corps { padding: 14px 16px 16px; }
.potin-pop__meta { margin: 0 0 4px; font-size: .8125rem; font-weight: 600; opacity: .75; }
.potin-pop__titre { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.potin-pop__titre a { color: inherit; text-decoration: none; }
.potin-pop__titre a:hover { text-decoration: underline; }
.potin-pop__lieu { margin: 6px 0 0; font-size: .875rem; }
.potin-pop .potin-credit { margin-top: 6px; }
.potin-pop .potin-reactions { margin-top: 10px; }
.potin-pop .potin-reaction { padding: 5px 9px; }

.potin-carte .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8); border-radius: 8px 0 0 0; }
.potin-carte .leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 10px rgba(42, 27, 51, .2) !important; border-radius: 14px !important; overflow: hidden; }
.potin-carte .leaflet-control-zoom a { color: var(--prune) !important; }

@media (max-width: 600px) {
	.potin-carte__map { height: 68vh; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.potin-marqueur.est-recent .potin-marqueur__bulle::after { animation: none; opacity: .6; }
}

/* Mini-carte sur la page d'un potin */
.potin-ici { --prune: var(--wp--preset--color--prune, #4a1d4f); --lilas: var(--wp--preset--color--lilas, #e3d4f2); --ocre: var(--wp--preset--color--ocre, #e8a33a); margin: 2rem 0 1.5rem; padding: 18px; border-radius: 26px; background: var(--lilas); }
.potin-ici__entete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.potin-ici__picto { flex: 0 0 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; background: var(--wp--preset--color--blanc, #fff); }
.potin-ici__label { margin: 0; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--prune); opacity: .75; }
.potin-ici__lieu { margin: 0; font-size: 1.125rem; font-weight: 700; }
.potin-ici__carte { height: 280px; border-radius: 18px; overflow: hidden; border: 3px solid var(--prune); z-index: 0; }
.potin-ici__carte .leaflet-tile-pane { filter: grayscale(1) sepia(.25) hue-rotate(225deg) saturate(1.4) brightness(1.04) contrast(.92); }
.potin-ici__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.potin-ici__bouton { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 999px; background: var(--wp--preset--color--blanc, #fff); color: var(--prune); border: 2px solid var(--prune); box-shadow: 0 5px 0 var(--prune); transition: transform .12s ease, box-shadow .12s ease; }
.potin-ici__bouton:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--prune); color: var(--prune); }
.potin-ici__lien { font-weight: 700; color: var(--prune); }
@media (max-width: 600px) { .potin-ici__carte { height: 230px; } }
.potin-ici__adresse { margin: 2px 0 0; font-size: .9375rem; opacity: .8; }
.potin-pop__adresse { margin: 2px 0 0 1.4em; font-size: .8125rem; opacity: .75; }
