/*!
 * Parcours & Cartes – styles publics
 * Version 2026.11.15.1
 */
:root {
	--pcm-accent: #2f6fe0;
	--pcm-ink: #1d2733;
	--pcm-muted: #6b7684;
	--pcm-line: #e3e7ec;
	--pcm-bg: #f6f8fa;
	--pcm-radius: 12px;
	--pcm-easy: #2e9d57;
	--pcm-normal: #e0a100;
	--pcm-hard: #d2453b;
	--pcm-family: #2f8fd6;
}

.pcm-single, .pcm-index, .pcm-route { color: var(--pcm-ink); }
.pcm-single > * + * { margin-top: 24px; }

/* Badges */
.pcm-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pcm-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.6; background: var(--pcm-bg); color: var(--pcm-ink); border: 1px solid var(--pcm-line); }
.pcm-badge-diff { color: #fff; border-color: transparent; background: var(--pcm-muted); }
.pcm-term-facile { background: var(--pcm-easy); }
.pcm-term-normal, .pcm-term-moyen { background: var(--pcm-normal); }
.pcm-term-difficile { background: var(--pcm-hard); }
.pcm-term-familial { background: var(--pcm-family); }

/* Statistiques */
.pcm-stats { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 12px; background: var(--pcm-line); border: 1px solid var(--pcm-line); border-radius: var(--pcm-radius); overflow: hidden; }
.pcm-stat { flex: 1 1 110px; background: #fff; padding: 10px 14px; margin: 0; }
.pcm-stat dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pcm-muted); margin: 0; font-weight: 600; }
.pcm-stat dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Carte */
.pcm-map { width: 100%; border-radius: var(--pcm-radius); overflow: hidden; background: #e9eef2; z-index: 0; }
.pcm-map.pcm-fs { position: fixed !important; inset: 0; height: 100vh !important; z-index: 99999; border-radius: 0; }
.pcm-map img { max-width: none !important; box-shadow: none !important; }
.pcm-fs-btn { display: block; width: 30px; height: 30px; line-height: 30px; text-align: center; background: #fff; font-size: 18px; color: #333 !important; text-decoration: none !important; }
.pcm-flag { background: none; border: 0; }
.pcm-flag span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 13px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pcm-flag-start span { background: #2e9d57; }
.pcm-flag-end span { background: #d2453b; }
.pcm-flag-mid span { background: #fff; color: #333; border-color: #555; width: 20px; height: 20px; font-size: 10px; margin: 3px; }
.pcm-poi-marker { background: none; border: 0; }
.pcm-poi-marker span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); font-size: 16px; }
.pcm-poi-marker i { transform: rotate(45deg); font-style: normal; line-height: 1; }
.pcm-popup img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 6px; display: block; }
.pcm-popup strong { display: block; margin-bottom: 4px; }
.pcm-popup p { margin: 0 0 4px; }

/* Profil */
.pcm-profile { position: relative; margin-top: 10px; background: #fff; border: 1px solid var(--pcm-line); border-radius: var(--pcm-radius); padding: 6px 4px 0; }
.pcm-profile svg { display: block; overflow: hidden; touch-action: pan-y; }
.pcm-pf-grid { stroke: var(--pcm-line); stroke-width: 1; }
.pcm-pf-lbl { fill: var(--pcm-muted); font: 11px system-ui, sans-serif; }
.pcm-pf-cursor { stroke: var(--pcm-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.pcm-pf-dot { stroke: #fff; stroke-width: 2; }
.pcm-pf-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--pcm-ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }

/* Boutons */
.pcm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.pcm-btn { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--pcm-accent); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; border: 1px solid var(--pcm-accent); cursor: pointer; line-height: 1.4; }
.pcm-btn:hover { filter: brightness(1.08); }
.pcm-btn-ghost { background: transparent; color: var(--pcm-accent) !important; }

/* Points d'intérêt */
.pcm-pois ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pcm-pois li { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--pcm-line); border-radius: 10px; cursor: pointer; }
.pcm-pois li:hover { background: var(--pcm-bg); }
.pcm-poi-ico { font-size: 20px; line-height: 1.2; }
.pcm-poi-desc p { margin: 4px 0 0; }

/* Galerie */
.pcm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pcm-gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.pcm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.pcm-gallery-item:hover img { transform: scale(1.04); }
.pcm-lightbox { position: fixed; inset: 0; background: rgba(10, 14, 20, .92); z-index: 100000; display: none; align-items: center; justify-content: center; }
.pcm-lightbox.is-open { display: flex; }
.pcm-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.pcm-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.pcm-lightbox figcaption { color: #ddd; margin-top: 8px; font-size: 14px; }
.pcm-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.pcm-lb-close { top: 16px; right: 16px; }
.pcm-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pcm-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.pcm-lb-single .pcm-lb-prev, .pcm-lb-single .pcm-lb-next { display: none; }

/* Liste */
.pcm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pcm-filters input[type=search], .pcm-filters select { height: 40px; padding: 0 12px; border: 1px solid var(--pcm-line); border-radius: 99px; background: #fff; font-size: 14px; margin: 0; width: auto; }
.pcm-filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.pcm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcm-chip { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--pcm-line); background: #fff; color: var(--pcm-ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.pcm-chip.is-active { background: var(--pcm-ink); color: #fff; border-color: var(--pcm-ink); }
.pcm-overview-map { margin-bottom: 16px; }
.pcm-count { color: var(--pcm-muted); font-size: 14px; margin: 0 0 10px; }
.pcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pcm-grid-single { grid-template-columns: minmax(0, 380px); }
.pcm-card { background: #fff; border: 1px solid var(--pcm-line); border-radius: var(--pcm-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcm-card[hidden] { display: none; }
.pcm-card:hover { box-shadow: 0 8px 24px rgba(20, 30, 45, .12); transform: translateY(-2px); }
.pcm-card-link { display: block; color: inherit !important; text-decoration: none !important; }
.pcm-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--pcm-bg); overflow: hidden; }
.pcm-card-media .pcm-badge { position: absolute; top: 10px; left: 10px; }
.pcm-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcm-card-svg { width: 100%; height: 100%; display: block; background: repeating-linear-gradient(0deg, transparent 0 23px, #eaeef2 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #eaeef2 23px 24px), var(--pcm-bg); }
.pcm-card-body { padding: 14px 16px 16px; }
.pcm-card-cat { font-size: 12px; color: var(--pcm-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pcm-card-title { font-size: 18px; margin: 4px 0 10px; line-height: 1.3; }
.pcm-card-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--pcm-muted); font-variant-numeric: tabular-nums; }
.pcm-card-stats li { margin: 0; padding: 0; }
.pcm-card-stats li::before { content: none; }
.pcm-more-wrap { text-align: center; margin: 20px 0 0; }
.pcm-more-wrap[hidden], .pcm-noresult[hidden] { display: none; }
.pcm-noresult { text-align: center; color: var(--pcm-muted); padding: 30px 0; }
.pcm-archive { max-width: 1200px; margin: 0 auto; padding: 30px 16px 60px; }

@media (max-width: 600px) {
	.pcm-stat dd { font-size: 17px; }
	.pcm-filters select { flex: 1 1 45%; }
	.pcm-grid { grid-template-columns: 1fr; }
}
