/* mots cliquables, fiches au survol et cartes */
.body a.ent{color:inherit;text-decoration:underline dotted;text-decoration-color:var(--cc,#888);text-decoration-thickness:2px;text-underline-offset:4px;cursor:help;transition:background .15s}
.body a.ent:hover,.body a.ent:focus-visible{background:color-mix(in srgb,var(--cc,#888) 18%,transparent);outline:none}
.body a.ent.ext{cursor:pointer;text-decoration-style:solid}

.entcard{position:fixed;z-index:2000;width:min(340px,calc(100vw - 20px));background:#14130f;color:#ebe6d9;border:1px solid #38352c;border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.55);overflow:hidden;font:400 .92rem/1.45 var(--sans,system-ui)}
.entcard[hidden]{display:none}
.ecmap{height:130px;background:#0b0b09;position:relative;isolation:isolate}
.ecbody{padding:14px 16px 16px}
.echead{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.echead img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none;background:#222}
.ectitle{display:block;font:500 1.15rem/1.15 var(--serif,Georgia,serif);color:#fff}
.ecdesc{display:block;color:#a9a392;font-size:.82rem;margin-top:2px}
.ectext{margin:0 0 12px;color:#d4cfc0}
.ecmore{color:#fff;font-weight:600;font-size:.85rem;text-decoration:none;border-bottom:1px solid #777}
.ecmore:hover{border-color:#fff}
.ecload{margin:0;color:#a9a392}

.mapfig{margin:2.2em 0;padding:0;border:1px solid #d9d3c3;border-radius:10px;overflow:hidden;background:#fff}
.maphead{padding:12px 16px 10px;font:600 .75rem/1 var(--sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#17150f;border-bottom:1px solid #e6e1d3}
.mapbox{height:340px;background:#0b0b09;position:relative;isolation:isolate}
.mapbox.loading:after{content:"Chargement de la carte…";position:absolute;inset:0;display:grid;place-items:center;color:#a9a392;font-size:.9rem}
.mapbox.nomap{display:grid;place-items:center;color:#a9a392;font-size:.9rem;height:120px}
.maplegend{display:flex;flex-wrap:wrap;gap:6px 18px;padding:11px 16px;font-size:.85rem;color:#17150f;background:#faf8f1}
.maplegend span{display:inline-flex;align-items:center;gap:7px}
.maplegend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.maplegend em{color:#6b6657;font-style:normal;margin-left:auto}

/* fond de carte sombre, pour rester dans l'esprit du site */
.mapbox .leaflet-tile-pane,.ecmap .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.88) contrast(.9) saturate(.7)}
.leaflet-container{background:#0b0b09;font:inherit}
.leaflet-container .leaflet-control-attribution{font-size:10px;background:rgba(0,0,0,.6);color:#bbb}
.leaflet-container .leaflet-control-attribution a{color:#ddd}
.leaflet-tooltip{background:#14130f;color:#fff;border:1px solid #38352c;box-shadow:none;font-weight:600}
.leaflet-tooltip:before{display:none}
.ecmap .leaflet-control-zoom{display:none}
@media(max-width:640px){.mapbox{height:280px}}
.ecphoto{height:180px;background:#0b0b09;overflow:hidden}
.ecphoto img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
.ecbody .ecmap{height:130px;border-radius:8px;overflow:hidden;margin:0 0 12px}
.body a.ent.auto{text-decoration-color:rgba(120,110,90,.6)}
