* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 18px;
  margin: 0;
}

header label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#selecteur-jours {
  display: flex;
  gap: 4px;
  padding: 8px 20px;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

#selecteur-jours button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
}

#selecteur-jours button.actif {
  background: #2e8b57;
  border-color: #2e8b57;
  color: #fff;
}

.legende-truffe {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  padding: 6px 20px;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.pastille-truffe {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b4226;
  display: inline-block;
}

.toggle-geologie {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

main {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}

#carte {
  flex: 1;
}

#notice-zoom {
  display: none;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
}

#panneau {
  width: 320px;
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid #ddd;
}

.panneau-vide {
  color: #777;
  font-size: 14px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  color: #fff;
}

.badge-favorable { background: #2e8b57; }
.badge-modere { background: #d9973b; }
.badge-faible { background: #b3413f; }

#panneau h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

#panneau .type {
  font-size: 13px;
  color: #777;
  margin: 0 0 12px;
}

#panneau .raison {
  font-size: 14px;
  margin: 8px 0;
}

.observation {
  border-top: 1px solid #eee;
  padding: 8px 0;
  font-size: 13px;
}

.jour-prevision {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}

.jour-prevision .badge {
  font-size: 11px;
  padding: 1px 8px;
}

form.ajout-observation {
  border-top: 1px solid #eee;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form.ajout-observation input,
form.ajout-observation select {
  padding: 6px;
  font-size: 13px;
}

form.ajout-observation button,
#panneau button {
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
}