.am-sst {
  --am-sst-height: 680px;
  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);
}

.am-sst * {
  box-sizing: border-box;
}

.am-sst__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 13px;
  background: linear-gradient(180deg,#fff,#eefaff);
}

.am-sst__eyebrow {
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
}

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

.am-sst__subtitle {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.am-sst__brand {
  color: #0369a1;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

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

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

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

.am-sst__stats span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.am-sst__stats strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.am-sst__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.am-sst__toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
}

.am-sst__toolbar input {
  width: 130px;
}

.am-sst__toolbar button {
  margin-left: auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.am-sst__mapwrap {
  position: relative;
}

.am-sst__map {
  width: 100%;
  height: var(--am-sst-height);
  min-height: 450px;
  background: #dbeafe;
}

.am-sst__loading {
  position: absolute;
  z-index: 1000;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(3,105,161,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.am-sst__legend {
  padding: 10px 14px 8px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.am-sst__legendbar {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #4527a0 0%,
    #283593 8%,
    #1565c0 16%,
    #039be5 25%,
    #00acc1 33%,
    #00bfa5 41%,
    #43a047 50%,
    #c0ca33 58%,
    #fdd835 67%,
    #fb8c00 76%,
    #f4511e 84%,
    #d32f2f 92%,
    #880e4f 100%
  );
  border: 1px solid rgba(15,23,42,.15);
}

.am-sst__legendlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.am-sst__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;
}

.am-sst__foot strong {
  color: #0284c7;
}

.am-sst-popup {
  min-width: 220px;
}

.am-sst-popup__title {
  font-size: 13px;
  font-weight: 900;
  color: #075985;
}

.am-sst-popup__value {
  margin: 5px 0 7px;
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
}

.am-sst-popup__detail {
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.am-sst-popup__loading {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
}

.am-sst-popup__error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .am-sst__head {
    padding: 13px 12px 10px;
  }

  .am-sst h2 {
    font-size: 20px;
  }

  .am-sst__brand {
    font-size: 11px;
  }

  .am-sst__date {
    display: none;
  }

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

  .am-sst__toolbar {
    flex-wrap: wrap;
  }

  .am-sst__toolbar button {
    margin-left: 0;
  }

  .am-sst__foot {
    flex-direction: column;
    gap: 3px;
  }
}


/* v1.0.3 — température instantanée au survol */
.am-sst-hover-tooltip.leaflet-tooltip {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: rgba(15,23,42,.92);
  color: #fff;
  box-shadow: 0 2px 9px rgba(0,0,0,.28);
  font-family: Arial,Helvetica,sans-serif;
  text-align: center;
  pointer-events: none;
}

.am-sst-hover-tooltip strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.am-sst-hover-tooltip span {
  display: block;
  margin-top: 2px;
  color: #bae6fd;
  font-size: 9px;
  font-weight: 800;
}
