/* SYGNEX Solidaire — Cartographie 1.0.0 */
.sygnex-map-banner,
.sygnex-map-detail-layout,
.sygnex-map-detail-aside,
.sygnex-map-banner *,
.sygnex-map-detail-layout * {
  box-sizing: border-box;
}

.sygnex-map-banner {
  width: 100%;
  margin: 18px 0 22px;
  padding: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #D8E4F4;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(7,55,99,0.08);
}

.sygnex-map-banner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.sygnex-map-banner-copy { min-width: 0; }
.sygnex-map-eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  color: #476B91;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.sygnex-map-banner h2,
.sygnex-map-detail-heading h2 {
  margin: 0;
  color: #073763;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.25;
  font-weight: 800;
}

.sygnex-map-status,
.sygnex-map-detail-status {
  margin: 5px 0 0;
  color: #52657A;
  font-size: 12px;
  line-height: 1.45;
}

.sygnex-map-status.is-error,
.sygnex-map-detail-status.is-error { color: #A32929; }

.sygnex-map-more {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #0C0C0D;
  background: #9AD6FF;
  border: 1px solid #7CB8E1;
  border-radius: 7px;
  font: 700 12px/1.25 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.sygnex-map-more:hover { background: #7CB8E1; }
.sygnex-map-more[hidden] { display: none !important; }

.sygnex-map-list-canvas {
  width: 100%;
  height: clamp(270px, 34vw, 390px);
  min-height: 250px;
  overflow: hidden;
  background: #EAF2FA;
  border: 1px solid #C9D8E9;
  border-radius: 9px;
  z-index: 1;
}

.sygnex-map-footnote {
  margin: 9px 2px 0;
  color: #66788A;
  font-size: 11px;
  line-height: 1.45;
}

.sygnex-map-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  align-items: stretch;
  gap: 20px;
  width: 100%;
  margin: 18px 0 22px;
}

.sygnex-map-detail-content { min-width: 0; }
.sygnex-map-detail-content > :first-child { margin-top: 0; }
.sygnex-map-detail-aside {
  min-width: 0;
  align-self: start;
  padding: 13px;
  background: #F5F9FE;
  border: 1px solid #D5E3F2;
  border-radius: 10px;
  box-shadow: 0 2px 9px rgba(7,55,99,0.06);
}

.sygnex-map-detail-heading { margin: 0 0 10px; }
.sygnex-map-detail-heading h2 { font-size: 18px; }
.sygnex-map-detail-canvas {
  width: 100%;
  height: 330px;
  min-height: 260px;
  overflow: hidden;
  background: #EAF2FA;
  border: 1px solid #C9D8E9;
  border-radius: 8px;
  z-index: 1;
}
.sygnex-map-detail-aside .sygnex-map-footnote { margin: 8px 1px 0; }

.sygnex-map-popup { min-width: 180px; max-width: 270px; font-family: Arial, Helvetica, sans-serif; }
.sygnex-map-popup-title {
  display: block;
  padding: 0 0 6px;
  color: #073763;
  border-bottom: 1px solid #D8E4F4;
  font-size: 14px;
}
.sygnex-map-popup-count { margin: 7px 0; color: #52657A; font-size: 11px; }
.sygnex-map-popup ul { margin: 0; padding-left: 17px; }
.sygnex-map-popup li { margin: 5px 0; color: #0C0C0D; font-size: 12px; }
.sygnex-map-popup li a { color: #073763; font-weight: 700; text-decoration: underline; }
.sygnex-map-popup li small { display: block; margin-top: 2px; color: #66788A; font-size: 10px; }
.sygnex-map-popup-extra { display: block; margin-top: 7px; color: #66788A; font-size: 10px; }

/* Marqueur bleu inspiré de la carte EFSSO, sans image externe. */
.sygnex-map-pin-wrap { background: transparent; border: 0; }
.sygnex-map-pin {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin: 2px;
  background: #1686D9;
  border: 2px solid #FFFFFF;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
  transform: rotate(-45deg);
}
.sygnex-map-pin::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* Contrôles Leaflet au-dessus du fond sans passer devant les menus du site. */
.sygnex-map-banner .leaflet-container,
.sygnex-map-detail-aside .leaflet-container {
  font: 12px/1.4 Arial, Helvetica, sans-serif;
  z-index: 1;
}
.sygnex-map-banner .leaflet-control-attribution,
.sygnex-map-detail-aside .leaflet-control-attribution { font-size: 10px; }

@media (max-width: 900px) {
  .sygnex-map-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .sygnex-map-detail-canvas { height: 300px; }
}

@media (max-width: 680px) {
  .sygnex-map-banner { margin: 14px 0 18px; padding: 11px; }
  .sygnex-map-banner-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .sygnex-map-more { width: 100%; }
  .sygnex-map-list-canvas { height: 290px; min-height: 250px; }
  .sygnex-map-detail-layout { gap: 14px; margin: 14px 0 18px; }
  .sygnex-map-detail-aside { padding: 10px; }
  .sygnex-map-detail-canvas { height: 270px; min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .sygnex-map-more { transition: none !important; }
}
