/* Minimal, volontairement : un outil interne pour dix entreprises
   partenaires, pas une vitrine. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

h1 {
  font-size: 1.25rem;
  margin: 0;
}

.page-connexion {
  max-width: 360px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sous-titre {
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #1a56db;
  color: white;
  font-size: 0.95rem;
}

button:disabled {
  background: #999;
  cursor: not-allowed;
}

form button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.65rem;
}

.message-erreur {
  color: #b91c1c;
  background: #fee2e2;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.separateur {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.separateur span {
  padding: 0 0.75rem;
}

.bouton-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  color: #1a1a1a;
  font-size: 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
}

.bouton-google:hover {
  background: #f5f5f5;
}

.entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.entete button {
  background: #e5e7eb;
  color: #1a1a1a;
}

.page-tableau-de-bord {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

th {
  background: #f0f0f0;
  font-weight: 600;
}

td select {
  padding: 0.3rem;
  margin-right: 0.5rem;
}

/* Sortie de secours vers le site public : sans elle, quelqu'un qui arrive
   par erreur sur la connexion partenaire n'a aucun chemin de retour. */
.retour-site {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.retour-site a {
  color: #666;
  text-decoration: none;
}

.retour-site a:hover {
  color: #1a56db;
  text-decoration: underline;
}
