:root {
  --bleu: #2c5f8a;
  --bleu-fonce: #1e4460;
  --gris-bg: #f4f6f8;
  --texte: #24313d;
  --ombre: 0 2px 10px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  background: var(--gris-bg);
}

header {
  background: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.logo-admr {
  height: 110px;
  width: auto;
  max-width: 90%;
}

.sous-titre {
  margin: .4rem 0 0;
  color: var(--bleu);
  font-weight: 600;
  font-size: 1rem;
}

main { padding: 1rem; }

#map {
  height: 78vh;
  min-height: 420px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--ombre);
}

/* Légende */
.legende {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  padding: 8px 10px;
  font-size: .82rem;
  max-width: 220px;
}
.legende strong { display: block; margin-bottom: 6px; }
.legende-ligne {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.legende-pastille {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.2);
}

/* Bouton mail dans les popups */
.btn-mail {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--bleu);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
}
.btn-mail:hover { background: var(--bleu-fonce); }

/* Mode embed (iframe) */
body.mode-embed #entete { display: none; }
body.mode-embed #map { height: 92vh; }

@media (max-width: 600px) {
  .logo-admr { height: 70px; }
  #map { height: 70vh; }
  .legende { max-width: 160px; font-size: .76rem; }
}
