/* Gestion des assets informatiques — feuille de style locale, sans ressource externe.
   Palette inspirée de la charte du site INRS : orange, gris anthracite, fond blanc. */
:root {
  --orange: #e05a26;
  --orange-fonce: #b8461a;
  --anthracite: #3d3d3d;
  --texte: #1a1a1a;
  --gris-clair: #f4f4f4;
  --bordure: #dcdcdc;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 16px 16px;
  font: 16px/1.5 "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--texte);
  background: #fff;
}
h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--anthracite);
  margin: 0 -16px 24px;
  padding: 20px 16px;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .25);
}
h1::before {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-right: .4em;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: .35em;
}
h2 {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--texte);
  margin: 0 0 16px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--orange);
}
section {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
label { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; gap: 4px; color: var(--anthracite); }
input, select, button { font: inherit; }
input, select {
  padding: 9px 12px;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  background: #fff;
  font-weight: normal;
  width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
button {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--anthracite);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #222; }
button.danger { background: #fff; color: var(--orange-fonce); border: 1px solid var(--orange); }
button.danger:hover { background: var(--orange); color: #fff; }
a { color: var(--orange-fonce); font-weight: 700; }
a:hover { color: var(--orange); }
.fiche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.fiche .actions { grid-column: 1 / -1; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
/* Recherche en pilule : bordure orange, bouton anthracite accolé. */
.recherche {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.recherche input {
  flex: 1;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 10px 18px;
}
.erreur {
  background: #fdf0ea;
  border: 1px solid var(--orange);
  color: var(--orange-fonce);
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 16px;
}
.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e6e6e6; vertical-align: top; }
th {
  background: var(--gris-clair);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--anthracite);
  border-bottom: 2px solid var(--orange);
}

/* Mobile : chaque ligne devient une carte. */
@media (max-width: 700px) {
  h1 { font-size: 1.5rem; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 1px solid var(--bordure); border-left: 4px solid var(--orange); border-radius: 4px; margin-bottom: 12px; padding: 8px 12px; }
  td { border: 0; padding: 4px 0; }
  td[data-label]::before {
    content: attr(data-label) " : ";
    font-weight: 700;
    color: var(--anthracite);
  }
}
