.acces-refuse {
  max-width: 480px;
  margin: 100px auto;
  text-align: center;
  font-size: 1.1rem;
}

.page-documents {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
}

.lien-retour {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}

.lien-retour:hover {
  text-decoration: underline;
}

.page-documents h1 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.onglets-categorie {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.onglets-categorie a {
  padding: 8px 16px;
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
}

.onglets-categorie a.actif {
  color: #1d3557;
  font-weight: bold;
  border-bottom-color: #1d3557;
}

.champ-recherche-titre {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.zone-liste-defilante {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 4px;
}

.pagination-documents {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pagination-documents button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.pagination-documents button.actif {
  background: #1d3557;
  color: #fff;
  border-color: #1d3557;
}

.carte-document {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.carte-document h3 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
}

.carte-document .date-document {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.carte-document .notes-document {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.carte-document a.lien-fichier {
  display: inline-block;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.carte-document a.lien-fichier:hover {
  background: #1d4ed8;
}
