*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f8f9fa; color: #1a1a2e; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.entete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5e7eb;
  max-width: 960px; margin: 0 auto;
}
.entete .logo { font-weight: 700; font-size: 1.1rem; color: #1a1a2e; }
.entete nav { display: flex; gap: 16px; align-items: center; }
.entete .lien { background: none; border: none; color: #2563eb; cursor: pointer; font: inherit; }
/* Back-office (B3.1) : en-tête de l'équipe ; la navigation passe à la ligne sur téléphone. */
.entete-admin { flex-wrap: wrap; gap: 8px 16px; }
.entete-admin nav { flex-wrap: wrap; gap: 8px 14px; }
.entete-admin .logo { white-space: nowrap; }

.principal { max-width: 960px; margin: 0 auto; padding: 24px 16px; }

.carte {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 20px; margin-bottom: 16px;
}
.carte h2 { font-size: 1.1rem; margin-bottom: 12px; }

.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.champ input, .champ select {
  width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px;
  font: inherit; font-size: 0.95rem;
}
.champ input:focus, .champ select:focus { outline: 2px solid #2563eb; border-color: transparent; }
/* Case à cocher (CGV) : à côté de son texte, pas étirée sur toute la largeur comme un champ de saisie. */
.champ input[type="checkbox"], .champ input[type="radio"] { width: auto; padding: 0; margin: 0 8px 0 0; vertical-align: middle; }

.btn {
  display: inline-block; padding: 10px 20px; background: #2563eb; color: #fff;
  border: none; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer;
  text-align: center;
}
.btn:hover { background: #1d4ed8; }
.btn-sec { background: #6b7280; }
.btn-sec:hover { background: #4b5563; }
.btn-danger { background: #dc2626; }

.erreur { color: #dc2626; background: #fef2f2; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.succes { color: #16a34a; background: #f0fdf4; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.info { color: #2563eb; background: #eff6ff; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-vert { background: #dcfce7; color: #166534; }
.badge-jaune { background: #fef9c3; color: #854d0e; }
.badge-rouge { background: #fee2e2; color: #991b1b; }
.badge-gris { background: #f3f4f6; color: #374151; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { font-weight: 600; background: #f9fafb; }

.invisible { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Choix de l'agent (offre « Agent solo ») */
.choix-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 14px 0 18px; }
.choix-agent { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.choix-agent:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
/* Espace client : forfait, crédits, équipe (plan back-office, B0.5) */
.en-ligne { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aide { color: #6b7280; font-size: 0.85rem; }
.equipe, .ajoutables { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; }
.equipe li, .ajoutables li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; }
.ajoutables li.cible { border-color: #2563eb; background: #eff6ff; }
button.lien { background: none; border: none; color: #2563eb; cursor: pointer; font: inherit; padding: 0; }
