.mcp-temp {
  --mcp-temp-height: 650px;
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,23,42,.08);
}

.mcp-temp * { box-sizing: border-box; }

.mcp-temp__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 18px 13px;
  background: linear-gradient(180deg,#fff,#f8fafc);
}

.mcp-temp__eyebrow {
  color: #b91c1c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.mcp-temp h2 {
  margin: 3px 0 0;
  font-size: 27px;
  font-weight: 900;
}

.mcp-temp__subtitle {
  margin-top: 5px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.mcp-temp__headright {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.mcp-temp__topbrand {
  color: #b91c1c;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.mcp-temp__update {
  padding: 6px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.mcp-temp__tabs {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1px;
  background: #cbd5e1;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.mcp-temp__tabs button {
  min-height: 45px;
  padding: 7px 5px;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #334155;
  font: 800 11px/1.2 Arial,Helvetica,sans-serif;
  cursor: pointer;
}

.mcp-temp__tabs button.is-active {
  background: #b91c1c;
  color: #fff;
}

.mcp-temp__stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mcp-temp__stats > div {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}

.mcp-temp__stats span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mcp-temp__stats strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.mcp-temp__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.mcp-temp__toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.mcp-temp__toolbar select,
.mcp-temp__toolbar button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
}

.mcp-temp__toolbar button {
  margin-left: auto;
  cursor: pointer;
  font-weight: 800;
}

.mcp-temp__mapwrap { position: relative; }

.mcp-temp__map {
  width: 100%;
  height: var(--mcp-temp-height);
  min-height: 430px;
  background: #e5e7eb;
}

.mcp-temp__loading {
  position: absolute;
  z-index: 1000;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(15,23,42,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mcp-temp__loading.is-error {
  background: rgba(153,27,27,.96);
}

.mcp-temp__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.mcp-temp__foot strong {
  color: #b91c1c;
}

.mcp-temp-marker {
  background: transparent !important;
  border: 0 !important;
}

.mcp-temp-marker__value,
.mcp-temp-marker__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 6px;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,.38);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mcp-temp-marker__status {
  min-width: 55px;
  color: #fff;
  font-size: 10px;
}

.mcp-temp-legend {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
  font: 11px/1.45 Arial,Helvetica,sans-serif;
}

.mcp-temp-legend strong {
  display: block;
  margin-bottom: 4px;
}

.mcp-temp-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcp-temp-legend i {
  display: inline-block;
  width: 17px;
  height: 9px;
  border-radius: 2px;
}

.mcp-temp-popup {
  min-width: 275px;
  color: #0f172a;
}

.mcp-temp-popup__title {
  font-size: 16px;
  font-weight: 900;
}

.mcp-temp-popup__id {
  margin: 1px 0 8px;
  color: #64748b;
  font-size: 10px;
}

.mcp-temp-popup__direct {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
}

.mcp-temp-popup__direct strong {
  font-size: 18px;
}

.mcp-temp-popup__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 11px;
}

.mcp-temp-popup__grid strong {
  text-align: right;
}

.mcp-temp-popup__section {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
}

.mcp-temp-popup__meta {
  margin-top: 9px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 950px) {
  .mcp-temp__tabs {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 700px) {
  .mcp-temp__head {
    padding: 13px 12px 10px;
  }

  .mcp-temp h2 { font-size: 20px; }

  .mcp-temp__topbrand { font-size: 11px; }

  .mcp-temp__update { display: none; }

  .mcp-temp__tabs {
    grid-template-columns: repeat(2,1fr);
  }

  .mcp-temp__stats {
    grid-template-columns: 1fr;
  }

  .mcp-temp__toolbar {
    flex-wrap: wrap;
  }

  .mcp-temp__toolbar button {
    margin-left: 0;
  }

  .mcp-temp__foot {
    flex-direction: column;
    gap: 3px;
  }
}


/* v1.2.1 — contrôles carte France / densité */
.mcp-temp__toolbar label { white-space: nowrap; }
.mcp-temp__toolbar select { max-width: 190px; }
@media (max-width: 700px) {
  .mcp-temp__toolbar label {
    flex: 1 1 46%;
    justify-content: space-between;
  }
  .mcp-temp__toolbar select {
    width: 100%;
    max-width: none;
  }
}
