:root {
  --navy: #0b1f3a;
  --accent: #0e7fa8;
  --line: #dbe4f1;
  --bad: #be123c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8fbff;
  color: #0f172a;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
  color: #0f172a;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h2 {
  font-size: 1.12rem;
}

h3 {
  font-size: 1rem;
}

a {
  color: inherit;
}

dialog {
  border: 0;
  border-radius: 1rem;
  padding: 0;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  box-shadow: 0 30px 70px -30px rgba(11, 31, 58, 0.45);
}

dialog::backdrop {
  background: rgba(9, 20, 40, 0.55);
  backdrop-filter: blur(2px);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 60;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pending td {
  background: #fffbeb;
}

.cat-important {
  background: #ffe4e6 !important;
  color: #be123c !important;
}

.cat-evenement {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.cat-rh {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.cat-projet {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.logoplate img {
  max-height: 36px;
  max-width: 210px;
  display: block;
}
