/* Images libres dark tech style */
body.login-bg {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1470&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.forum-bg {
  background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1470&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #ddd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; padding: 0;
  min-height: 100vh;
}

.container {
  background: rgba(0,0,0,0.75);
  padding: 20px 30px;
  border-radius: 10px;
  flex: 1; /* pousse le footer en bas */
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 20px #0ff;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

button {
  padding: 10px 25px;
  background: #00ffff;
  border: none;
  border-radius: 5px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

button:hover {
  background: #00bbbb;
}

#error {
  color: #ff5555;
  text-align: center;
  margin-top: 10px;
}

#posts {
  margin-top: 20px;
}

.post {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 7px;
  color: #ccc;
}

.post .author {
  font-weight: bold;
  margin-bottom: 5px;
}

#error {
  color: #ff5555;
  text-align: center;
  margin-top: 10px;
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}
footer {
    background-color: #0f0f0f;
    font-size: 14px;
    border-top: 2px solid #0f0;
    padding: 10px;
    text-align: center;
    color: #fff;
    
}