:root {
  --creme: #faf1ec;
  --encre: #15110f;
  --accent: #ff4757;
  --vert: #1f8a4c;
  --orange: #c97a12;
  --rouge: #c0392b;
  --gris: #6b6560;
  --bordure: #e7ddd6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
}

a { color: inherit; }

h1, h2, h3 { letter-spacing: -0.5px; }

button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--encre);
  color: #fff;
}
button.secondaire { background: #fff; color: var(--encre); border: 1px solid var(--bordure); }
button.danger { background: var(--rouge); }
button:disabled { opacity: .5; cursor: wait; }

input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9bdb3;
  border-radius: 8px;
  background: #fff;
  color: var(--encre);
  width: 100%;
}

label { display: block; font-weight: 650; margin: 10px 0 5px; font-size: 14px; }

.conteneur { max-width: 960px; margin: 0 auto; padding: 24px 18px 60px; }

.entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

.panneau { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 20px; margin-bottom: 18px; }

.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grille-form .pleine { grid-column: 1 / -1; }

.barre-filtres { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.barre-filtres select { width: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bordure); font-size: 14px; }
tr.ligne-dossier { cursor: pointer; }
tr.ligne-dossier:hover { background: var(--creme); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.badge.a_etudier { background: #8a8580; }
.badge.en_preparation { background: #3d6fb4; }
.badge.depose { background: #9b59b6; }
.badge.reponse_attendue { background: var(--orange); }
.badge.accepte { background: var(--vert); }
.badge.refuse { background: var(--rouge); }

.statut-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.statut-pastille.green { background: var(--vert); }
.statut-pastille.orange { background: var(--orange); }
.statut-pastille.red { background: var(--rouge); }
.statut-pastille.neutral { background: var(--gris); }

.ligne-champ { border-top: 1px solid var(--bordure); padding: 10px 0; }
.ligne-champ b { font-size: 15px; }
.ligne-champ p { margin: 4px 0; font-size: 14px; color: #3a3530; }
.ligne-champ .preuve { font-size: 12.5px; color: #596970; margin: 2px 0; overflow-wrap: anywhere; }

.erreur { color: var(--rouge); font-size: 14px; margin: 8px 0; }
.info { color: var(--gris); font-size: 13px; margin: 8px 0; }

.zone-connexion { max-width: 380px; margin: 60px auto; }

.lien-bouton { background: none; color: var(--accent); text-decoration: underline; padding: 0; font-size: 14px; }

.fichier-ligne { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--bordure); }

.retour { margin-bottom: 14px; }

.onglets { display: flex; gap: 6px; margin-bottom: 14px; }
.onglets button { background: var(--creme); color: var(--encre); }
.onglets button.actif { background: var(--encre); color: #fff; }
