* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  color: #171717;
  background: #fff;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eaeaea;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: #171717;
  text-decoration: none;
}
.topbar nav a {
  margin-left: 16px;
  color: #171717;
  text-decoration: none;
  font-size: 14px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}
label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
input, select, textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 14px;
}
textarea { min-height: 60px; }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #171717;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.btn.secondary {
  background: #f4f4f4;
  color: #171717;
}
.btn.danger {
  background: none;
  color: #e35d5d;
  padding: 0;
}
.error { color: #e35d5d; font-size: 14px; }
.success { color: #2e7d32; font-size: 14px; }
.card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.muted { color: #888; font-size: 13px; }

/* Calendrier */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.cal-day {
  min-height: 64px;
  padding: 4px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cal-day.today { border: 2px solid #4f8ef7; }
.cal-day.other-month { background: #fafafa; color: #bbb; }
.cal-event {
  font-size: 10px;
  color: #fff;
  border-radius: 3px;
  padding: 1px 3px;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.type-GARDE { background: #4f8ef7; }
.type-VACANCES { background: #f7a94f; }
.type-RDV { background: #e35d5d; }
.type-SPORT { background: #3fb27f; }
.type-AUTRE { background: #8a8a8a; }
