:root {
  --bleu-fonce: #073b4c;
  --bleu: #118ab2;
  --turquoise: #06d6a0;
  --sable: #ffd166;
  --corail: #ef476f;
  --texte: #1b2a2f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: #eaf6f6;
}

.site-header {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
  color: #fff;
  padding: 18px 24px;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
}

.site-header .subtitle {
  margin: 0;
  font-weight: 300;
  opacity: 0.9;
}

.caveat {
  background: #fff3cd;
  color: #6b4e00;
  border-bottom: 1px solid #f0d98c;
  padding: 10px 20px;
  font-size: 0.88rem;
  text-align: center;
}

#map {
  width: 100%;
  height: calc(100vh - 175px);
  min-height: 420px;
}

.site-footer {
  background: var(--bleu-fonce);
  color: #d8ecef;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.78rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}
.spot-mini-popup h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--bleu-fonce);
}
.spot-mini-popup p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
}
.spot-mini-popup button {
  background: var(--bleu);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
}
.spot-mini-popup button:hover {
  background: var(--bleu-fonce);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 59, 76, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-overlay.hidden {
  display: none;
}
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 28px 26px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.modal-close:hover { color: var(--corail); }

.fiche h2 {
  color: var(--bleu-fonce);
  margin-top: 0;
  border-bottom: 2px solid var(--turquoise);
  padding-bottom: 8px;
}
.fiche .zone {
  color: #567;
  font-style: italic;
  margin-top: -6px;
  margin-bottom: 16px;
}
.fiche .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fiche .badge {
  background: var(--turquoise);
  color: #033;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.fiche dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0 0 18px 0;
}
.fiche dt {
  font-weight: 600;
  color: var(--bleu);
}
.fiche dd {
  margin: 0;
}
.fiche .section-titre {
  font-weight: 600;
  color: var(--bleu-fonce);
  margin: 16px 0 6px 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fiche .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.fiche .tag {
  background: #eef7f7;
  border: 1px solid var(--turquoise);
  border-radius: 16px;
  padding: 3px 10px;
  font-size: 0.82rem;
}
.fiche .tag a {
  color: var(--bleu-fonce);
  text-decoration: none;
  font-weight: 600;
}
.fiche .tag a:hover {
  text-decoration: underline;
  color: var(--corail);
}
.fiche .description {
  margin: 14px 0;
  line-height: 1.5;
}
.fiche .sources {
  font-size: 0.82rem;
  color: #667;
  margin-top: 18px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.fiche .sources a {
  color: var(--bleu);
}
.fiche .empty {
  color: #999;
  font-style: italic;
}
