/* ASNAY Office — mise en page de la console. */

.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem; background: var(--prune); color: #fff;
  border-bottom: 3px solid var(--rouge);
}
.entete__marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.entete__marque img { height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 3px 5px; }
.entete__marque b { font-family: var(--titre); font-size: 1.15rem; letter-spacing: .06em; }
.entete__marque small { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.entete__agent { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.entete__agent .bouton { min-height: 36px; padding: .3rem .8rem; background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

.page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page__titre { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.page__titre h1 { margin: 0; }
.page__titre .bouton { margin-left: auto; }

.filtres { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.filtres input { flex: 1 1 260px; }
.filtres select { flex: 0 0 200px; }

.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); font-weight: 600; background: #fbf9fa; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--prune-100); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .nom { font-weight: 600; color: var(--prune); }
.table .sous { display: block; font-size: .82rem; color: var(--texte-doux); }
.vide { padding: 2.5rem 1rem; text-align: center; color: var(--texte-doux); }

/* Sur téléphone, la table devient une liste de cartes. */
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: .75rem .9rem; border-bottom: 1px solid var(--bord); }
  .table td { border: 0; padding: .15rem 0; }
  .entete__agent span { display: none; }
}

/* ---------- Fiche ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } }
.bloc { padding: 1.25rem; }
.bloc + .bloc { border-top: 1px solid var(--bord); }
.retour { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 1rem; color: var(--texte-doux); text-decoration: none; font-weight: 500; }
.definitions { display: grid; grid-template-columns: 170px 1fr; gap: .55rem 1rem; margin: 0; }
.definitions dt { color: var(--texte-doux); font-size: .9rem; }
.definitions dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .definitions { grid-template-columns: 1fr; } .definitions dd { margin-bottom: .5rem; } }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grille-2 { grid-template-columns: 1fr; } }
.case { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.case input { width: 20px; min-height: 20px; height: 20px; margin-top: .15rem; }

.journal { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.journal li { padding: .55rem 0; border-bottom: 1px dashed var(--bord); }
.journal li:last-child { border-bottom: 0; }
.journal b { color: var(--prune); font-weight: 600; }
.journal small { display: block; color: var(--texte-doux); }

/* ---------- Dialogue ---------- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgba(46, 6, 30, .3); }
dialog::backdrop { background: rgba(46, 6, 30, .45); }
.dialogue__corps { padding: 1.5rem; }
.dialogue__pied { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.5rem; background: #fbf9fa; border-top: 1px solid var(--bord); }
#ad-lien-valeur { margin-top: .5rem; font-size: .82rem; }
.page__titre h2 { margin: 0; }
