*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1f2937;
  margin: 0;
  min-height: 100vh; /* min-height : le contenu peut défiler sur petit écran */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0726 url("fond_ecran.png") center / cover no-repeat fixed;
}

.container {
  width: 100%;
  max-width: 640px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
  max-height: 80px;
  height: auto;
}

h1 {
  text-align: center;
  color: #0077cc;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.4em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 7em;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
}

button {
  width: 100%;
  padding: 0.75em;
  margin-top: 1rem;
  border: none;
  border-radius: 6px;
  background: #0077cc;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

button.secondary {
  background: #e5e7eb;
  color: #1f2937;
}

button.secondary:hover {
  background: #d1d5db;
}

:focus-visible {
  outline: 3px solid #66b3ff;
  outline-offset: 2px;
}

.hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.6em 0 0;
}

.message {
  margin: 1.5rem 0 0;
  padding: 0.8em 1em;
  border-radius: 6px;
  word-break: break-word;
}

.message.error {
  background: #fdecec;
  color: #a61b1b;
}

.link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #0077cc;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .container {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.25rem;
  }
}