@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

body {
  font-family: "Press Start 2P", monospace;
  background-color: #f0e8d8;
  color: #2b2b2b;
  margin: 0;
  padding: 2em;
  font-size: 12px;
  line-height: 1.6;
}

h1 {
  text-align: center;
  color: #f94d00;
  font-size: 16px;
  margin-bottom: 2em;
  text-shadow: 2px 2px #000;
}

form {
  text-align: center;
  margin-bottom: 2em;
}

input[type="text"] {
  padding: 10px;
  font-size: 12px;
  width: 320px;
  border: 3px solid #2b2b2b;
  background-color: #fbf9f2;
  color: #111;
}

button {
  background-color: #ffe600;
  border: 3px solid #000;
  padding: 10px 20px;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  margin-left: 10px;
  text-transform: uppercase;
  box-shadow: 2px 2px #888;
}

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

a {
  color: #3333cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.back {
  display: block;
  text-align: center;
  margin: 2em 0;
  font-size: 10px;
}

.error {
  color: red;
  text-align: center;
  font-weight: bold;
  margin-bottom: 2em;
}

.agence {
  position: relative;
  background-color: #fbf9f2;
  border: 3px solid #2b2b2b;
  padding: 1.5em;
  margin: 2em auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 3px 3px 0 #999;
}

strong {
  display: block;
  color: #f94d00;
  font-size: 13px;
  margin-bottom: 0.5em;
}

/* Badge type */
.badge-type {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  padding: 0.3em 0.6em;
  font-size: 8px;
  font-family: "Press Start 2P", monospace;
  border: 2px solid #2b2b2b;
  box-shadow: 1px 1px 0 #999;
  text-transform: none;
  font-weight: bold;
  white-space: nowrap;
}

.badge-partenaire {
  background-color: #a5d6a7;
  color: #1b5e20;
}

.badge-sociétaire {
  background-color: #90caf9;
  color: #0d47a1;
}

form {
  background-color: #fbf9f2;
  border: 3px solid #2b2b2b;
  box-shadow: 4px 4px 0 #888;
  padding: 2em;
  max-width: 400px;
  margin: 0 auto 2em auto;
  text-align: center;
}

input[type="text"],
input[type="password"] {
  padding: 10px;
  font-size: 12px;
  width: 90%;
  max-width: 300px;
  margin-bottom: 1em;
  border: 3px solid #2b2b2b;
  background-color: #fffaf0;
  color: #111;
  font-family: "Press Start 2P", monospace;
}

input:focus {
  outline: none;
  border-color: #f94d00;
  background-color: #fff0e6;
}

button {
  margin-top: 1em;
}

.error {
  background-color: #ffeaea;
  border: 2px solid red;
  color: #b00020;
  padding: 1em;
  width: 90%;
  max-width: 400px;
  margin: 1em auto;
  font-size: 10px;
  box-shadow: 2px 2px 0 #888;
}

.logout.top-right {
  position: absolute;
  top: 1em;
  right: 1em;
  background-color: #f94d00;
  color: #fff;
  padding: 8px 16px;
  border: 3px solid #000;
  text-decoration: none;
  font-size: 10px;
  box-shadow: 2px 2px #888;
  z-index: 10;
}

.logout.top-right:hover {
  background-color: #d13c00;
}

.info {
  background-color: #e0f7fa;
  border: 2px solid #00796b;
  color: #004d40;
  padding: 1em;
  width: 90%;
  max-width: 400px;
  margin: 1em auto;
  font-size: 10px;
  box-shadow: 2px 2px 0 #888;
  text-align: center;
}

/* Section formulaire de filtres */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #fdf6e3; /* beige clair */
  border: 2px solid #333;
  padding: 1.5rem;
  margin: 2rem auto;
  width: fit-content;
  font-family: "Press Start 2P", monospace;
  box-shadow: 4px 4px 0px #888;
  border-radius: 8px;
}

form label {
  font-size: 0.7rem;
  color: #222;
  text-transform: uppercase;
}

form select,
form input[type="number"] {
  background-color: #fff;
  border: 2px solid #333;
  padding: 0.4rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  width: 220px;
}

form button {
  background-color: #222;
  color: #fdf6e3;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 3px 3px 0px #888;
}

form button:hover {
  background-color: #444;
  transform: translateY(-1px);
}

.message-aucune-agence {
  text-align: center;
  margin-top: 1em;
  font-weight: 500;
  color: #555;
}
