/* === BASE GÉNÉRALE === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-top: 0;
  color: #111;
}

a {
  color: #0058a3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar a {
  margin-right: 15px;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.navbar a:hover {
  background-color: #f0f0f0;
}

.navbar a.right {
  margin-left: auto;
}

/* === FORMULAIRES === */
form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  max-width: 500px;
  margin: auto;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input[type="submit"],
button {
  background-color: #0058a3;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

input[type="submit"]:hover,
button:hover {
  background-color: #003e7e;
}

/* === TABLEAUX === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f5f5f5;
  font-weight: 600;
}

td.center, th.center {
  text-align: center;
}

/* === POSTS === */
.post {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post small {
  color: #888;
  font-size: 0.9em;
}

/* === RÉPONSIVE === */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a.right {
    margin-left: 0;
    margin-top: 8px;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  th, td {
    padding: 10px;
    text-align: left;
  }

  tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
  }

  th {
    background-color: transparent;
    font-weight: bold;
  }
}

/* TABLEAU DE MODÉRATION */

.container h2 {
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

th, td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 14px;
}

td input[type="text"] {
  width: 100%;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

td form {
  display: inline-block;
  margin: 2px;
}

td form button {
  background-color: #0057b7;
  color: white;
  padding: 5px 10px;
  border: none;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

td form button:hover {
  background-color: #003f8a;
}

/* Message en haut */
.container p {
  padding: 6px 10px;
  font-weight: bold;
  background-color: #ffff99;
  border-left: 5px solid #f5d800;
  border-radius: 4px;
}