/* style.css – Dark theme par défaut */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #121212;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.container {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

form {
  display: flex;
  margin-bottom: 1.5rem;
}

form input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #333;
  border-radius: 4px 0 0 4px;
  background: #2c2c2c;
  color: #e0e0e0;
  font-size: 1rem;
}

form button {
  padding: 0 1rem;
  background: #bb86fc;
  border: none;
  color: #121212;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

form button:hover {
  background: #9a67ea;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #333;
}

ul {
  list-style: none;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

ul li {
  background: #2c2c2c;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  word-break: break-word;
}

.date {
  font-size: 0.85rem;
  color: #bbbbbb;
  margin-right: 0.5rem;
}

.text {
  flex: 1;
}

/* Logo centré */
.logo {
  display: block;
  max-width: 150px;
  margin: 0 auto 1rem auto;
}

/* Footer */
footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  line-height: 1.4;
}
