:root {
  --page-bg: #2d204a;
  --panel-bg: #ffffff;
  --text: #1f2937;
  --shadow: 8px 20px 18px 6px #001d23;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  /*font-family: system-ui, sans-serif;*/
  color: var(--text);
}

.layout {
  width: min(1100px, calc(100% - 32px));
  margin: auto;
  padding: 24px 0;
}

.editor {
  background: var(--panel-bg);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.editor h1 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font: inherit;
}

button {
  cursor: pointer;
  font-weight: 700;
}

.countdown {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  /*font-weight: 700;*/
}

.countdown-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.theme-couple {
  color: #328614;
  background: #00ff85;
}

.theme-mariage {
  color: #ffd496;
  background: #bd0505;
}

.theme-bebe {
  color: #aad496;
  background: #ab2323;
}

.theme-concert {
  color: #0033aa;
  background: #00bbdf;
}

.theme-vacances {
  color: #0013aa;
  background: #00aadf;
}

.theme-anniversaire {
  color: #142c86;
  background: #0dd1ff;
}

.theme-credit {
  color: #aa2200;
  background: #dfcc00;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.toggle-editor {
  background: #2d204a;
  color: white;
  border: none;
}

#event-form {
  display: grid;
  gap: 12px;
}

#event-form.hidden {
  display: none;
}