@import url(polices/polices.css);

body {
  margin: 0;
  background: #f4eedb;
  color: #222;
  font: 17px/1.5 Georgia, "Times New Roman", serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
  padding: .8em 1.5em;
  border-bottom: 3px solid #222;
}

.titre {
  color: #aa2c1d;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

.titre span {
  font-size: .6em;
  color: #222;
}

main {
  max-width: 52em;
  margin: 0 auto;
  padding: 1em 1.5em 3em;
}

a {
  color: #aa2c1d;
}

a.i {
  color: inherit;
  text-decoration: none;
}

a.i:hover {
  text-decoration: underline;
  text-decoration-color: #aa2c1d;
}

input, select, button {
  font: inherit;
  padding: .2em .4em;
}

#q {
  width: 22em;
  max-width: 100%;
}

#de, #a {
  width: 4.5em;
}

#mesures {
  color: #777;
  font-size: .8em;
}

.compte {
  font-weight: bold;
  text-align: center;
}

.desc {
  margin: .6em 0;
}

.num {
  display: inline-block;
  min-width: 3em;
  margin-right: .3em;
  color: #aa2c1d;
  font-weight: bold;
}

a.num {
  text-decoration: none;
}

article {
  border-bottom: 1px solid #d8ceb0;
  padding-bottom: .8em;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .2em 1em;
  margin: .5em 0 .5em 3.3em;
  font-size: .9em;
}

dt {
  color: #aa2c1d;
}

dd {
  margin: 0;
}

h3 {
  margin: .6em 0 .2em 3.3em;
  font-size: .9em;
  font-weight: normal;
  font-style: italic;
}

.copies {
  margin: 0 0 0 3.3em;
  padding: 0;
  list-style: none;
  font-size: .9em;
}

.ex.gris { color: #999; }
.ex.rouge, .rouge { color: #aa2c1d; }
.ex.bleu { color: #2856a8; }

.feuille {
  height: .9em;
  vertical-align: baseline;
}

.annees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2em, 1fr));
  gap: .3em;
}

.annees a {
  text-decoration: none;
  text-align: center;
  border: 1px solid #d8ceb0;
  padding: .1em 0;
}

.annees small {
  display: block;
  color: #777;
  font-size: .7em;
}

.nav {
  text-align: center;
}

.index {
  padding: 0;
  list-style: none;
}

.index li:target {
  background: #ead9a8;
}

.entree {
  font-weight: bold;
}

.pied {
  color: #777;
  font-size: .85em;
}

button {
  display: block;
  margin: 1em auto;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: " ▽";
  color: #aa2c1d;
}

details[open] > summary::after {
  content: " △";
}

details[open] {
  border-bottom: 1px solid #d8ceb0;
  padding-bottom: .8em;
}

.critere {
  display: flex;
  gap: .4em;
  margin: 0 0 .4em;
}

.critere .champ {
  width: 15em;
}

.critere .valeur {
  flex: 1;
  min-width: 0;
}

.critere .retirer {
  display: inline;
  margin: 0;
  border: 0;
  background: none;
  color: #aa2c1d;
  font-size: 1.2em;
  cursor: pointer;
}

#ajouter {
  display: inline;
  margin: 0 1em 0 0;
}

.aide {
  font-size: .8em;
  color: #777;
}

.annee {
  display: flex;
  gap: .4em;
  align-items: center;
}

.annee .an1, .annee .an2 {
  width: 5em;
}

.outils {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}

.outils label {
  font-size: .9em;
}

nav a {
  margin-right: .6em;
}

footer {
  border-top: 1px solid #d8ceb0;
  padding: 1em 1.5em;
  color: #777;
  font-size: .85em;
  text-align: center;
}

.gravure {
  margin: 1em 0;
}

.gravure img {
  width: 100%;
  height: auto;
}

.avec-resultats .gravure {
  display: none;
}
