/* Couleurs et fontes */

:root {
  --rose: #c07b78;
  --bleu: #5a787a;
  --gris: #f2f2f2;
  --grege: #f1eeeb;
  --creme: #fafafa;
}

h2 a,
body {
  color: #000;
}

.bg-gray {
  background-color: var(--gris);
}

.bg-black {
  background-color: #000;
}

.bg-black,
.bg-black a {
  color: #fff;
}

.facs,
.pb,
.liseuse figure,
figcaption,
body {
  font-family: "Titillium Web", sans-serif;
  line-height: 1.3;
}

#body,
figure,
.caldate,
nav .role,
nav .group,
nav .technique,
nav .gender,
nav .place,
.moto,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.7;
}

/* html défaut */

a,
article a {
  color: var(--bleu);
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h5.figure,
figure.figure {
  /* override bootstrap */
  display: block;
}

html {
  height: 100%;
}

h1 {
  text-align: left;
  color: var(--rose);
  text-transform: uppercase;
  font-size: 21px;
  padding: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-weight: normal;
}

h1.lieu {
  margin-top: 0;
}

.object_header h1 {
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  text-align: left;
  margin: 0;
  padding: 2rem 0 1rem 0;
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  font-stretch: 100%;
  line-height: 1.2;
}

h2::after {
  /* titres soulignés à moitié */
  content: "";
  display: block;
  font-size: 0;
  width: 4rem;
  /*
  position: absolute;
  bottom: 0;
  left: 0;
  */
  border-bottom: 1px solid var(--rose);
}

h3 {
  border: 1px solid var(--rose);
  background-color: var(--rose);
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
  display: inline-block;
  font-size: 17px;
  line-height: 1.2;
  text-indent: 0;
}

section.persList h3 {
  margin-bottom: 0;
  vertical-align: bottom;
}

a:hover h3 {
  color: #000;
  background-color: transparent;
}

main {
  flex: 1;
}

section {
  padding: 0;
  margin: 0;
}

sup {
  text-transform: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul ul {
  /*
  border: 1px solid var(--rose);
  margin-left: 1rem;
  */
  margin-left: 2rem;
}

li.persName::before,
ul li::before {
  content: "\2022";
  font-family: sans-serif;
  color: var(--rose);
  display: inline-block;
  width: 1em;
}

/** Layout */

#main > .container {
  position: relative;
}

/* header, footer */

footer a {
  display: inline-block;
}

header a {
}

#header .navbar {
  /* font-size: 13px; */
  text-transform: uppercase;
  padding: 0;
}

.navbar a {
  padding: 0.5rem 1rem;
}

.navbar a.logo {
  padding: 0;
  flex: 1;
}

.moto {
  text-transform: uppercase;
  font-weight: bold;
}

img.logo {
  width: 220px;
}

#footer .container {
  padding: 2rem 0;
}

#footer h2 {
  margin-top: 0;
}

#footer .partenaires h2 {
  text-align: center;
}

#footer .partenaires h2::after {
  margin-left: auto;
  margin-right: auto;
}

#footer .partenaires {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .contact {
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .partenaires > * {
  margin-right: 20px;
  flex-shrink: 0;
}

#footer .partenaires img {
  width: 100px;
}

#footer .license {
  padding: 0.5rem 0;
  text-align: center;
  margin: 0;
  background-color: #343434;
}

/*
.headnav {
  margin-left: auto;
  margin-right: auto;
}

.headnav a {
  text-decoration: none;
  color: #000;
}

.headnav ul {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.headnav ul li {
  list-style: none;
  white-space: nowrap;
}
.headnav ul li a {
  border-bottom: 1px solid #CCC;
  display: block;
  padding: 0 15px;
}
.headnav ul li a:hover {
  border-bottom: 1px solid #000;
}
.headnav li.nav-selected a, .headnav li.nav-path-selected a {
  border-bottom: 1px solid #CCC;
}

.headnav ul li a {
  display: block;
  padding: 10px 10px;
}
*/

/** Page d’accueil */

.home section {
  padding: 0;
  margin: 0;
}

#carousel {
  margin-bottom: 2rem;
}

.carousel-item {
  height: 37vw;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-item:hover {
}

.carousel-item > a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.carousel-caption {
  background-color: var(--rose);
  color: #000;
  white-space: nowrap;
  display: inline-block;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
  left: 0;
  bottom: unset;
  top: 0;
  right: unset;
  font-size: 1.5rem;
}

.carousel-item:hover .carousel-caption {
  color: #fff;
}

.carousel-indicators {
  right: 5%;
  bottom: 1rem;
  left: unset;
  margin: auto;
}

.carousel-controls {
  position: absolute;
  bottom: 2.7rem;
  z-index: 2;
  right: 5%;
  width: 144px;
  height: 72px;
  display: flex;
}

.carousel-control-next,
.carousel-control-prev {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0;
  width: 72px;
  height: 72px;
  background-color: var(--gris);
  background-repeat: no-repeat;
  background-size: 36px 36px;
  background-position: center;
  opacity: 1;
}

.carousel-control-next {
  background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M511.2,260c1.6-4,0.7-8.6-2.3-11.6l-192-192c-4.2-4.1-11-4-15.1,0.3c-4,4.1-4,10.7,0,14.8l173.8,173.8H10.7 C4.8,245.2,0,250,0,255.9c0,5.9,4.8,10.7,10.7,10.7h464.9L301.8,440.3c-4.2,4.1-4.4,10.8-0.3,15.1c4.1,4.2,10.8,4.4,15.1,0.3 c0.1-0.1,0.2-0.2,0.3-0.3l192-192C509.9,262.4,510.7,261.2,511.2,260z"/></svg>');
}

.carousel-control-prev {
  background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M.782 260c-1.6-4-.7-8.6 2.3-11.6l192-192c4.2-4.1 11-4 15.1.3 4 4.1 4 10.7 0 14.8l-173.8 173.8h464.9c5.9-.1 10.7 4.7 10.7 10.6 0 5.9-4.8 10.7-10.7 10.7h-464.9l173.8 173.7c4.2 4.1 4.4 10.8.3 15.1-4.1 4.2-10.8 4.4-15.1.3l-.3-.3-192-192c-1-1-1.8-2.2-2.3-3.4z"/></svg>');
}

#slide1 {
  background-image: url("../images/accueil/slide1.jpg");
}

#slide2 {
  background-image: url("../images/accueil/slide2.jpg");
}

#slide3 {
  background-image: url("../images/accueil/slide3.jpg");
}

#slide4 {
  background-image: url("../images/accueil/slide4.jpg");
}

#slide5 {
  background-image: url("../images/accueil/slide5.jpg");
}

#slide6 {
  background-image: url("../images/accueil/slide6.jpg");
}

#slide7 {
  background-image: url("../images/accueil/slide7.jpg");
}

.card {
  border: 1px solid #fff;
  border-radius: 0;
  background-color: transparent;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.card:hover img {
  opacity: 0.5;
}

.card-deck {
  margin-left: 0;
  margin-right: 0;
}

.card.doctype {
  width: 16.6%;
  margin: 0;
}

.card.doctype:hover .card-body {
  background: rgba(255, 255, 255, 1);
}

header.doctype > div > span,
.card.doctype div,
.card.lieu div {
  position: absolute;
  padding: 0 0.5rem;
  margin: 0;
  bottom: 0;
  background-color: var(--rose);
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

article.ms > header.doctype > div.ms > span,
article.imp > header.doctype > div.imp > span,
article.img > header.doctype > div.img > span,
header.doctype > div:hover > span,
.card.doctype:hover div,
.card.lieu:hover div {
  color: #fff;
  font-weight: bold;
}

/* chrono */

#docs .chrono {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: scroll;
}

nav .role,
nav .group,
nav .technique,
nav .gender,
nav .place,
.caldate {
  display: block;
  text-decoration: none;
  background-color: var(--gris);
  color: #000;
  padding: 1rem;
  margin-bottom: 3px;
  text-transform: uppercase;
  border: 1px solid var(--grege);
}

nav .role,
nav .group,
nav .technique,
nav .gender,
nav .place {
  background-color: transparent;
}

nav a.role:hover,
nav a.group:hover,
nav a.technique:hover,
nav a.gender:hover,
nav a.place:hover {
  border-color: #000;
}

nav a.role:hover,
nav a.role.active {
  background-color: var(--grege);
}

nav a.group:hover,
nav a.group.active {
  background-color: var(--grege);
}

nav a.gender:hover,
nav a.gender.active {
  background-color: var(--grege);
}

nav a.technique:hover,
nav a.technique.active {
  background-color: var(--grege);
}

/* nav a.place:hover,
nav a.place.active {
  background-color: var(--grege);
} */

.caldate.active,
.caldate:hover {
  background-color: #fff;
  text-decoration: none;
}

.caldate .date {
  color: transparent;
}

.caldate .date * {
  color: #000;
}

.caldate .desc {
  text-transform: none;
}

.caldate * {
  vertical-align: middle;
}

.caldate .year {
  font-weight: bold;
  font-size: 20px;
  padding: 0.5rem 1rem 0.5rem 0;
  margin-right: 0.5rem;
  border-right: 2px solid #000;
}

#accueil_pers {
  background-color: var(--gris);
  margin: 2rem 0 1rem -500px;
  padding: 1rem 1rem 1rem 500px;
}

.navline a {
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
}

.card-deck.pers {
  justify-content: space-between;
  margin-top: 1rem;
}

.card.pers {
  flex: 0 0 20%;
  margin: 0;
  border: none;
  color: #000;
}

.card.pers img {
  border-radius: 50%;
}

.card.pers .card-body {
  /*
  padding: 0.5rem 1rem;
  height: 4rem;
  */
  text-align: center;
}

/* ========================================
   CORPUS - Tuiles sur 2 lignes
   ======================================== */

.card-deck.corpus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.card.corpus {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background: white;
}

.card.corpus:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--rose);
}

.card.corpus img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--grege);
}

.card.corpus:hover img {
  opacity: 0.9;
}

.card.corpus .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card.corpus h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
}

.card.corpus:hover h5 {
  color: var(--rose);
}

.card.corpus .card-text {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.card.corpus .card-text small {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bleu);
}

/* Page d'accueil - style simplifié */
#accueil_corpus .card.corpus {
  text-align: center;
}

#accueil_corpus .card.corpus > div {
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  background: white;
}

#accueil_corpus .card.corpus:hover > div {
  color: var(--rose);
}

/* Responsive - Tablettes (2 colonnes) */
@media (max-width: 992px) {
  .card-deck.corpus {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card.corpus img {
    height: 240px;
  }
}

/* Responsive - Mobile (1 colonne) */
@media (max-width: 576px) {
  .card-deck.corpus {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card.corpus img {
    height: 200px;
  }

  .card.corpus .card-body {
    padding: 1rem;
  }

  .card.corpus h5 {
    font-size: 1.1rem;
  }
}

#accueil_tech {
  padding-top: 30px;
  padding-bottom: 60px;
}

.card.tech {
  display: block;
  position: relative;
  flex: none;
  width: 25%;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  color: #fff;
}

.card.tech div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.1;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 200;
  margin: 0;
}

.card.tech:hover {
  color: #000;
  font-weight: 400;
}

#accueil_lieu {
  background-image: url("../images/accueil/lieu_bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-top: 30px;
  padding-bottom: 190px;
}

.card.lieu {
  position: relative;
  display: block;
  width: 16.6%;
  margin: 0;
}

.card.lieu:hover p {
  color: #fff;
}

.card.lieu:hover img {
  opacity: 0.5;
}

.card-deck.divers {
  margin-left: 0;
  margin-right: 0;
}

.card.divers {
  width: 16.6%;
  margin: 0;
}

.card.divers .card-body {
  padding: 0.5rem;
}

td.term a {
  display: block;
  text-decoration: none;
}

/** Biblios */

section.event {
  padding: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border: 2px transparent solid;
}

section.event:target {
  border-color: var(--bleu);
}

header.doctype {
  display: flex;
  margin-bottom: 2rem;
}

header.doctype > div {
  flex: 0 0 33.33%;
  cursor: pointer;
  position: relative;
}

header.doctype > div > img {
  width: 100%;
  opacity: 0.5;
}

article.ms .document,
article.imp .document,
article.img .document {
  display: none;
}

article.ms .document.ms,
article.imp .document.imp,
article.img .document.img {
  display: flex;
}

article.ms .event,
article.imp .event,
article.img .event {
  display: none;
}

article.ms .event:has(.document.ms),
article.imp .event:has(.document.imp),
article.img .event:has(.document.img) {
  display: block;
}

header.doctype > div:hover > img,
article.ms header.doctype > div.ms > img,
article.imp > header.doctype > div.imp > img,
article.img > header.doctype > div.img > img {
  opacity: 1;
}

article.ms > header.doctype > div.ms > span,
article.imp > header.doctype > div.imp > span,
article.img > header.doctype > div.img > span {
  font-size: 200%;
}

a.chrono {
  display: block;
}

a.document {
  display: block;
  line-height: 1.3;
  border: 1px transparent solid;
  background-color: rgba(192, 192, 192, 0.1);
  margin: 15px 0;
  padding: 5px 15px 5px 15px;
  color: #000;
}

.coldoc {
  display: flex;
  align-items: center;
}

a.document:hover {
  border-color: var(--rose);
  text-decoration: none;
  background-color: transparent;
}

a.document .tech {
  color: #999;
}

a.document div.bibl {
  padding: 2px 1rem 2px 16px;
  flex-grow: 4;
}

a.document div.roles {
  flex-basis: 10rem;
  flex-shrink: 0;
  flex-grow: 0;
}

a.document div.vignette {
  height: 90px;
  width: 90px;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 90px;
  background-position: 50%;
  background-size: contain;
  background-repeat: no-repeat;
}

a.document .title {
  color: #000;
  font-style: normal;
  font-weight: 600;
}

.publine {
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
  font-size: 14px;
}

p.editionStmt {
  margin: 1rem 0;
}

.object_header .publine {
  margin-top: 2rem;
}

/** page document */

.col-8 {
  padding-left: 0;
  padding-right: 0;
}

.cartouche {
  padding: 2rem 2rem 0.5rem 2rem;
}

article.document .row,
article.document .bg-gray {
  padding-bottom: 2rem;
}

.object_header {
  background-color: var(--gris);
  padding: 2rem 0;
}

.doc_ventre li {
  display: inline-block;
}

.row.techs {
  border-top: 1px solid #ccc;
}

li.caldate::before {
  display: none;
}

div.creation,
div.respStmt,
a.editor,
div.editor,
a.author,
div.author {
  display: block;
  color: #000;
  font-size: 22px;
  line-height: 170%;
}

div.creation {
  text-align: right;
  color: var(--bleu);
  font-weight: 900;
}

time.date {
  font-size: 25px;
  font-weight: bold;
  display: block;
  line-height: 1.7;
}

.blurb {
  color: #000;
}

div.download {
  text-transform: uppercase;
  color: var(--bleu);
  font-weight: bold;
}

div.download a {
  color: var(--bleu);
  padding-right: 0.5rem;
}

div.download svg {
  fill: var(--bleu);
}

div.download a:hover {
  color: #fff;
  background-color: var(--bleu);
}

div.download a:hover svg {
  fill: #fff;
}

a.textofiche {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  border-top: 1px transparent solid;
  border-bottom: 1px transparent solid;
}

div.textofiche {
  text-align: right;
  margin-bottom: 1rem;
}

a.notice,
div.textofiche .link {
  text-transform: uppercase;
  font-weight: bold;
  padding: 1px 0.5rem;
  background: transparent;
  color: var(--bleu);
  text-decoration: none;
}

a.notice:hover,
a:hover .textofiche .link {
  background: var(--bleu);
  color: #fff !important;
}

p.notice {
  margin: 1rem 0;
}

.document .role,
a.theme {
  color: #000;
  display: inline-block;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #ccc;
}

.document .role {
  text-align: center;
  display: block;
}

figcaption.figDesc {
  background-color: #fff;
  margin: 1rem 0;
}

figure h5 {
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}

/** page liseuse */

article.liseuse {
  display: flex;
  justify-content: flex-start;
}

#milieu {
  max-width: 75ex;
  position: relative;
}

a.facs {
  left: 75ex;
  /* relatif à la largeur de #milieu */
  right: unset;
  display: block;
  width: auto;
  height: auto;
  min-width: 150px;
  float: none;
  position: absolute;
}

a.facs .n {
  white-space: nowrap;
}

a.facs img {
  display: block;
  width: 150px;
}

a.facs.bigger {
  z-index: 2;
}

a.facs.bigger img {
  width: auto;
  max-width: 50vw;
}

.pb {
  /* width: auto; */
  position: relative;
  float: right;
  right: 0;
}

#explorer {
  background-color: var(--gris);
  width: 400px;
  /* old browsers */
  position: fixed;
  position: -webkit-sticky;
  position: sticky;
  height: 100vh;
  top: 0;
  /*
  order: -1;
  height: calc(100vh - 48px);
  */
  overflow-y: auto;
  padding-left: 0;
  padding-right: 0;
}

#explorable {
  line-height: 1.7;
  padding: 2rem;
}

figure {
  border: 1px solid #aaa;
  padding: 1rem;
}

#explorable figcaption.figDesc {
  display: none;
}

.dropcap::first-letter {
  color: var(--rose);
}

.label {
  color: var(--bleu);
  font-weight: 500 !important;
}

.note {
  line-height: 1.25;
  font-size: normal;
}

aside.note.margin {
  float: right;
  width: 15rem;
  border: 1px dotted #ccc;
  margin-left: 1rem;
}

/*
main {
  padding: 4rem 4rem 5rem 2rem;
  background-color: #fff;
  color: #000;
}
main li {
  list-style: none;
}
*/

#aside {
  top: 2rem;
  bottom: 0;
  padding-bottom: 5rem;
}

#navaside {
  display: none;
  top: 0;
  left: 0;
  position: fixed;
  padding: 2px 1rem !important;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
}

#bookmarks {
  width: 15px;
  position: fixed;
  right: 2rem;
  top: 0;
  bottom: 0;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}

.toclone {
  display: none !important;
}

#bookmarks mark {
  width: 15px;
  height: 10px;
  position: absolute;
  background-color: violet;
  cursor: pointer;
}

#explorer a {
  text-decoration: none;
  cursor: pointer;
}

#explorer a:hover {
  color: #000;
}

#explorer ul {
  padding-left: 0;
}

#explorer ul ul {
  padding-left: 1rem;
}

summary::-webkit-details-marker,
summary::marker {
  /* color: #c07b78; */
}

#explorable .indexable {
  border: 1px solid transparent;
  border-bottom: 1px dashed #999;
}

#explorable .indexable .indexable {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

#explorable.ana img,
#explorable.placeName img,
#explorable.name img,
#explorable.tech img,
#explorable.persName img {
  /*
  object-fit: scale-down;
  width:230px;
  height:230px;
  float: right;
  */
}

mark.placeName,
mark.persName,
mark.tech,
mark.name,
span.indexable {
  cursor: pointer;
}

thead {
  background: #fff;
}

/* personnes 

  background-color: #f9f1f1;
  border-color: #c07b78;
  rgba(192,123,120,0.3)

*/

nav.roles {
  position: sticky;
  top: 50px;
  max-height: 100vh;
  overflow: auto;
  margin-top: 50px;
}

nav.filters {
  position: sticky;
  top: 50px;
  height: calc(100vh - 100px);
  max-height: 100vh;
  overflow: auto;
  margin-top: 50px;
}

#persName th,
#persName summary,
#persName a:hover,
#explorable.persName .persName {
  background-color: #f9f1f1;
  color: #000;
}

#explorable.persName .persName {
  padding: 0 0.5rem;
}

#explorable.persName .persName {
  border: 1px solid #c07b78;
}

#persName a.active,
#explorable .persName:hover,
#explorable .persName.active {
  background-color: #c07b78 !important;
  color: #fff !important;
}

#bookmarks mark.persName {
  background-color: rgba(192, 123, 120, 0.3);
}

/* Rôles */

#name th,
#name summary,
#name a:hover,
#explorable.name .name {
  background-color: #eef1f1;
  color: #000;
}

#explorable .name.active,
#explorable.name .name {
  padding: 0 0.5rem;
}

#explorable .name.active,
#explorable.name .name {
  border: 1px solid #5a787a;
}

#name a.active,
#explorable .name:hover,
#explorable .name.active {
  background-color: #5a787a !important;
  color: #fff !important;
}

#bookmarks mark.name {
  background-color: rgba(90, 120, 122, 0.3);
}

/* lieux */

#placeName a.active,
.placeName.active,
#placeName summary,
#placeName th,
#explorable.placeName .placeName:hover,
#placeName a:hover {
  background-color: #e5e5f2;
  color: #000;
}

#explorable.placeName .placeName:hover {
  padding: 0 0.5rem;
}

#explorable.placeName .placeName {
  border: 1px solid #5a787a;
}

#placeName a.active,
#explorable .placeName:hover,
#explorable .placeName.active {
  background-color: rgba(0, 0, 128, 1) !important;
  color: #fff !important;
}

#bookmarks mark.placeName {
  background-color: rgba(0, 0, 128, 0.3);
}

/* techniques */

#tech th,
#tech summary,
#tech a:hover,
#explorable.tech .tech {
  background-color: #fff9e5;
  color: #000;
}

#bookmarks mark.tech {
  background-color: rgba(255, 192, 0, 0.3);
}

/*  border-color: rgba(255, 192, 0, 1); */

#tech a.active,
#explorable .tech:hover,
#explorable .tech.active {
  background-color: rgba(255, 192, 0, 1) !important;
}

/* écriture */

#ana a {
  border: 1px solid transparent;
}

#ana th,
#ana summary,
#ana a:hover,
#explorable.ana .ana {
  background-color: #fff;
  color: #000;
  border: 1px solid rgba(128, 128, 128, 0.5);
}

#explorable.ana .ana {
  padding: 0.5rem;
  border: 1px solid rgba(128, 128, 128, 0.5);
  color: #000;
}

#explorable .ana {
  cursor: pointer;
}

#ana a.active,
#explorable .ana:hover,
#explorable .ana.active {
  border-color: rgba(128, 128, 128, 1);
  background: rgba(128, 128, 128, 0.1);
}

#bookmarks mark.ana {
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: rgba(128, 128, 128, 0.3);
}

table.sortable {
  margin: 0;
  width: 100%;
  border-bottom: 2px solid var(--rose);
  border-left: 1px solid var(--rose);
  border-right: 1px solid var(--rose);
  line-height: 1.3em;
  margin-top: 1rem;
  margin-bottom: 2em;
  border-spacing: 0;
  border-collapse: collapse;
}

.sortable th {
  background: var(--rose);
  color: #fff;
  font-weight: 200;
  font-size: 18px;
}

.sortable .sorting:hover {
  background-color: #fff;
  color: #000;
}

/* Cette partie concernent principalement les filtres des index.
Toutes les personnes ou documents sont d'abord cachées (display: none), mais si elles contiennent une certaine valeur dans l'attribut class, elles sont affichées. */

.rolist.commanditaire tbody tr,
.rolist.destinataire tbody tr,
.rolist.organisation tbody tr,
.rolist.participant tbody tr,
.rolist.spectateur tbody tr,
.rolist.convive tbody tr,
.rolist.acteur tbody tr,
.rolist.chanteur tbody tr,
.rolist.danseur tbody tr,
.rolist.musicien tbody tr,
.rolist.artificier tbody tr,
.rolist.fournisseur tbody tr,
.rolist.auteur tbody tr,
.rolist.imprimeur tbody tr,
.rolist.none tbody tr {
  display: none;
}

.rolist.cour tbody tr,
.rolist.foreign tbody tr,
.rolist.militaire tbody tr,
.rolist.pro tbody tr,
.rolist.local tbody tr,
.rolist.O tbody tr {
  display: none;
}

.rolist.F tbody tr,
.rolist.M tbody tr {
  display: none;
}

.rolist.commanditaire .document,
.rolist.destinataire .document,
.rolist.organisation .document,
.rolist.participant .document,
.rolist.spectateur .document,
.rolist.convive .document,
.rolist.acteur .document,
.rolist.chanteur .document,
.rolist.danseur .document,
.rolist.musicien .document,
.rolist.artificier .document,
.rolist.fournisseur .document,
.rolist.auteur .document,
.rolist.imprimeur .document,
.rolist.none .document {
  display: none;
}

.rolist.commanditaire .event,
.rolist.destinataire .event,
.rolist.organisation .event,
.rolist.participant .event,
.rolist.spectateur .event,
.rolist.convive .event,
.rolist.acteur .event,
.rolist.chanteur .event,
.rolist.danseur .event,
.rolist.musicien .event,
.rolist.artificier .event,
.rolist.fournisseur .event,
.rolist.auteur .event,
.rolist.imprimeur .event,
.rolist.none .event {
  display: none;
}

.rolist.commanditaire tr.commanditaire,
.rolist.destinataire tr.destinataire,
.rolist.organisation tr.organisation,
.rolist.participant tr.participant,
.rolist.spectateur tr.spectateur,
.rolist.convive tr.convive,
.rolist.acteur tr.acteur,
.rolist.chanteur tr.chanteur,
.rolist.danseur tr.danseur,
.rolist.musicien tr.musicien,
.rolist.artificier tr.artificier,
.rolist.fournisseur tr.fournisseur,
.rolist.auteur tr.auteur,
.rolist.imprimeur tr.imprimeur,
.rolist.none tr.none {
  display: table-row;
}

.rolist.cour tr.cour,
.rolist.foreign tr.foreign,
.rolist.militaire tr.militaire,
.rolist.pro tr.pro,
.rolist.local tr.local,
.rolist.O tr.O {
  display: table-row;
}

.rolist.F tr.F,
.rolist.M tr.M {
  display: table-row;
}

.rolist.commanditaire .document.commanditaire,
.rolist.destinataire .document.destinataire,
.rolist.organisation .document.organisation,
.rolist.participant .document.participant,
.rolist.spectateur .document.spectateur,
.rolist.convive .document.convive,
.rolist.acteur .document.acteur,
.rolist.chanteur .document.chanteur,
.rolist.danseur .document.danseur,
.rolist.musicien .document.musicien,
.rolist.artificier .document.artificier,
.rolist.fournisseur .document.fournisseur,
.rolist.auteur .document.auteur,
.rolist.imprimeur .document.imprimeur,
.rolist.none .document.none {
  display: flex;
}

.rolist.commanditaire .event:has(a.commanditaire),
.rolist.destinataire .event:has(a.destinataire),
.rolist.organisation .event:has(a.organisation),
.rolist.participant .event:has(a.participant),
.rolist.spectateur .event:has(a.spectateur),
.rolist.convive .event:has(a.convive),
.rolist.acteur .event:has(a.acteur),
.rolist.chanteur .event:has(a.chanteur),
.rolist.danseur .event:has(a.danseur),
.rolist.musicien .event:has(a.musicien),
.rolist.artificier .event:has(a.artificier),
.rolist.fournisseur .event:has(a.fournisseur),
.rolist.auteur .event:has(a.auteur),
.rolist.imprimeur .event:has(a.imprimeur),
.rolist.none .event:has(a.none) {
  display: inline-block;
}

.rolist.commanditaire .role.commanditaire,
.rolist.destinataire .role.destinataire,
.rolist.organisation .role.organisation,
.rolist.participant .role.participant,
.rolist.spectateur .role.spectateur,
.rolist.convive .role.convive,
.rolist.acteur .role.acteur,
.rolist.chanteur .role.chanteur,
.rolist.danseur .role.danseur,
.rolist.musicien .role.musicien,
.rolist.artificier .role.artificier,
.rolist.fournisseur .role.fournisseur,
.rolist.auteur .role.auteur,
.rolist.imprimeur .role.imprimeur,
.rolist.none .role.none {
  background: var(--rose);
  color: #fff;
}

.rolist.foreign,
.rolist tr.foreign {
  font-style: normal;
}

.techlist.animal .document,
.techlist.construction .document,
.techlist.decor .document,
.techlist.costume .document,
.techlist.eaux .document,
.techlist.feux-artifice .document,
.techlist.lumieres .document,
.techlist.bruitage .document,
.techlist.repas .document,
.techlist.machine_eau .document,
.techlist.machine_terre .document,
.techlist.machine_vol .document,
.techlist.machine_temps .document,
.techlist.machine_musique .document,
.techlist.trappe .document,
.techlist.devise .document,
.techlist.noms .document,
.techlist.vers .document,
.techlist.madrigal .document,
.techlist.sonnet .document,
.techlist.quatrain .document {
  display: none;
}

.techlist.animal .event,
.techlist.construction .event,
.techlist.decor .event,
.techlist.costume .event,
.techlist.eaux .event,
.techlist.feux-artifice .event,
.techlist.lumieres .event,
.techlist.bruitage .event,
.techlist.repas .event,
.techlist.machine_eau .event,
.techlist.machine_terre .event,
.techlist.machine_vol .event,
.techlist.machine_temps .event,
.techlist.machine_musique .event,
.techlist.trappe .event,
.techlist.devise .event,
.techlist.noms .event,
.techlist.vers .event,
.techlist.madrigal .event,
.techlist.sonnet .event,
.techlist.quatrain .event {
  display: none;
}

.techlist.animal .document.animal,
.techlist.construction .document.construction,
.techlist.decor .document.decor,
.techlist.costume .document.costume,
.techlist.eaux .document.eaux,
.techlist.feux-artifice .document.feux-artifice,
.techlist.lumieres .document.lumieres,
.techlist.bruitage .document.bruitage,
.techlist.repas .document.repas,
.techlist.machine_eau .document.machine_eau,
.techlist.machine_terre .document.machine_terre,
.techlist.machine_vol .document.machine_vol,
.techlist.machine_temps .document.machine_temps,
.techlist.machine_musique .document.machine_musique,
.techlist.trappe .document.trappe,
.techlist.devise .document.devise,
.techlist.noms .document.noms,
.techlist.vers .document.vers,
.techlist.madrigal .document.madrigal,
.techlist.sonnet .document.sonnet,
.techlist.quatrain .document.quatrain {
  display: block;
}

.techlist.animal .event:has(a.animal),
.techlist.construction .event:has(a.construction),
.techlist.decor .event:has(a.decor),
.techlist.costume .event:has(a.costume),
.techlist.eaux .event:has(a.eaux),
.techlist.feux-artifice .event:has(a.feux-artifice),
.techlist.lumieres .event:has(a.lumieres),
.techlist.bruitage .event:has(a.bruitage),
.techlist.repas .event:has(a.repas),
.techlist.machine_eau .event:has(a.machine_eau),
.techlist.machine_terre .event:has(a.machine_terre),
.techlist.machine_vol .event:has(a.machine_vol),
.techlist.machine_temps .event:has(a.machine_temps),
.techlist.machine_musique .event:has(a.machine_musique),
.techlist.trappe .event:has(a.trappe),
.techlist.devise .event:has(a.devise),
.techlist.noms .event:has(a.noms),
.techlist.vers .event:has(a.vers),
.techlist.madrigal .event:has(a.madrigal),
.techlist.sonnet .event:has(a.sonnet),
.techlist.quatrain .event:has(a.quatrain) {
  display: block;
}

/* Places */

nav.filters div.placegroup:not(:has(.rootplace)):not(:has(.active)) {
  display: none;
}

nav.filters div.placegroup {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

nav.filters a.place {
  width: 100%;
}

nav.filters div.placegroup:hover a.place,
nav.filters div.placegroup.active a.place {
  background-color: var(--grege);
}

/* Sortable */

.sortable tr td {
  border: none;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.sortable tr:hover td {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

/* tr.mod3 td,
tr.mod8 td {
  background-color: var(--grege);
} */

tr:nth-child(5n + 3) td {
  background-color: var(--grege);
}

td.docs,
td.occs {
  text-align: right;
}

td.term {
  padding: 0;
  border: none;
}

th.term {
  text-align: right;
}

#explorer td.nb {
  text-align: right;
  width: 2rem;
  padding: 0 0.3rem;
  border-right: 1px solid #ccc;
}

#explorer summary {
  padding-left: 0.5rem;
}

table.sortable a {
  color: #666;
  display: block;
  /*
  line-height: 1.1;
  */
  padding: 2px;
}

table.sortable a:hover {
  color: #fff;
  background: var(--rose);
}

.devise {
  text-align: center;
  font-size: 150%;
  font-style: italic;
}

figure .devise {
  font-size: inherit;
}

a.devise {
  font-size: inherit;
  text-align: left;
  font-style: normal;
}

.techlist.devise {
  font-size: inherit;
  text-align: inherit;
  font-style: inherit;
}

.l {
  text-indent: 0;
  padding-left: 0;
}

.speaker {
  font-style: normal;
}

.lg .label .name,
.lg .label .persName,
.speaker .name,
.speaker .persName {
  font-variant: small-caps;
  letter-spacing: 0.2em;
}

/*
.figDesc {
  display: none;
}
*/

.titlePart {
  font-size: 120%;
}
