/* ----- Global ----- */
body {
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: white;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* ----- Navigation + Header ----- */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a2a;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #444;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background-color: #3a3a3a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.main-nav a:hover {
  background-color: #d12f2f;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  background-color: #2e2e2e;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.user-header button {
  padding: 0.4rem 1rem;
  background-color: #d12f2f;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  top: 0px;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  flex-wrap: wrap;
}

/* ----- Card / Bloc ----- */
.card {
  text-align: center;
  background-color: #2a2a2a;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 490px; /* 🔽 un peu plus étroit */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.card h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.stay-connected {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.stay-connected label {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  color: #ccc;
  cursor: pointer;
  padding: 0.2rem 0.2rem; /* 🔁 ajusté au plus juste */
  border-radius: 4px;
}

.stay-connected input[type="checkbox"] {
  margin-right: 0.4rem;
  transform: scale(1.2);
  accent-color: #d12f2f;
}

.stay-connected label:hover {
  background-color: rgba(255, 255, 255, 0.05); /* effet visuel au survol */
}

/* ----- Inputs & Formulaires ----- */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: white;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

/* ----- Boutons ----- */
button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  background-color: #d12f2f;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #b62525;
}

/* ----- Tableaux ----- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

thead {
  background-color: #333;
}

th, td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #444;
}

tbody tr:hover {
  background-color: #2e2e2e;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    flex-direction: column;
    width: 100%;
  }
}

#formContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  gap: 1.2rem;
}

.name-field-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.name-field-wrapper input {
  flex-grow: 1;
}

textarea#message {
  width: 100%;
  min-height: 220px;
  font-family: monospace;
  font-size: 0.95rem;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

#message {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  min-height: 220px;
  font-family: monospace;
  font-size: 0.95rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-info p {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}
