@font-face {
  font-family: caslon;
  src: url('/assets/fonts/ACaslonPro-Regular.otf');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: garro;
  src: url('/assets/fonts/Garabosse-Gaillarde.woff2');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: caslon;
  src: url('/assets/fonts/ACaslonPro-Italic.otf');
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: caslon;
  src: url('/assets/fonts/ACaslonPro-Semibold.otf');
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: caslon;
  src: url('/assets/fonts/ACaslonPro-SemiboldItalic.otf');
  font-style: italic;
  font-weight: 500;
}
@font-face {
  font-family: mono;
  src: url('/assets/fonts/century-schoolbook-mono.ttf');
  font-style: normal;
  font-weight: 400;
}

* {
  /* -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%; */
}
:root {
  color-scheme: light dark;
}
body {
  font-family: caslon;
  font-size: 22px;
  line-height: 1.1;
  color: light-dark(black, #eee);
  background-color: light-dark(white, black);
  
}

html {
  /* scroll-behavior: smooth; */
  /* scroll-padding-top: 120px; */
}

pre {
  font-family: monospace;
}

em {
  font-style: italic;
}

.tnum {
  font-feature-settings: 'tnum';
}

.lnum {
  font-feature-settings: 'lnum';
}

.onum {
  font-feature-settings: "onum";
}

main {
  display: flex;
  margin-top: 50px;
}

main > div {
  flex: 1 1 auto;
}

.level2-niveau-2-a main div#loadhere,
.level2-niveau-2-c main div#loadhere{
  flex: 0 1 800px;
}

.level2-niveau-2-c figcaption {
    font-size: 14px;
    letter-spacing: 0.4px;
    margin-top: 6px;
}
.level2-niveau-2-c figure {
    margin-bottom: 15px;
}

.level2-niveau-2-b main div#loadhere {
  flex: 0 0 100%;
}

main #imgload {
  flex: 0 0 calc(100% - 800px);
  position: relative;
  z-index: -1;
}
.level2-niveau-2-b main #imgload{
  display: none;
}

#imgload img {
  position: relative;
  left: 0px !important;
  padding: 0 10px;
  transform: translateX(0px) !important;
  max-width: 100%;
}



.miller-menu {
  width: 100%;
  overflow-x: auto;
  /* border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor; */
  position: sticky;
  top: 0;
  background-color: light-dark(#fff, #000);
  box-shadow: 0 0 30px 30px light-dark(#fff, #000);
  padding: 0 10px;
  z-index: 1;
}

.miller-menu__columns {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 10px 0;
  /* min-height: 70vh; */
}

.miller-menu__column {
  display: none;
  flex: 0 0 auto;
  /* border-right: 1px solid currentColor; */
  white-space: nowrap;
  font-size: 20px;
}

.miller-menu__column.is-active {
  display: block;
  padding: 0px 0;
}

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

.miller-menu__select-wrapper {
  padding: 0;
  /* border-bottom: 1px solid currentColor; */
}

select.miller-menu__select:after {
  content: "▼";
  font-size: 9px;
  display: inline-flex;
  align-items: center;
}

.miller-menu__select {
  font: inherit;
}

.miller-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .75rem 1rem;
  border: 0;
  /* border-bottom: 1px solid currentColor; */
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.miller-menu__item:hover,
.miller-menu__item.is-selected {
  /* background: #000; */
  color: light-dark(green, rgb(63, 173, 63));
}

.nowrap {
  white-space: nowrap;
}

/* :target {
  color: rgb(255, 46, 18);
} */

blockquote {
  font-family: big;
  font-size: 2.2em;
  letter-spacing: -0.1px;
  line-height: 1;
  margin: 30px 0;
  z-index: 0;
}

nav {
  font-size: 18px;
}

select {
  /* -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none; */
  border: 0;
  color: light-dark(green, rgb(63, 173, 63));
  background-color: transparent;
  border-radius: 0px;
}

select:focus {
  border: 0;
  outline: 0;
}

select,
::picker(select) {
  appearance: base-select;
  border: 0px;
  padding: 1px 0;

}
select#passage {
  font-style: italic !important;
}

option {
  padding: 0;
  gap: 0;
  font-style: normal;
}

option:nth-child(1) {
  display: none;
}

select::picker-icon {
  display: none;
}

option::checkmark {
  content: "";
}
main#content.catalogue{
  overflow: visible;
}
/* ABOUT */

#content.about {
    text-align: center;
    font-size: 22px;
    line-height: 1.1;
    font-family: 'caslon';
}

main .section {
  padding: 0 30px
}

.textelecture {
  text-align: center;
}

/* .textelecture p:not(:first-of-type){
  text-indent: 50px;
}
.textelecture blockquote + p{
  text-indent: 0px !important;
} */

cite {
  font-style: italic;
}

#contribute {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  cursor: grab;
  user-select: none;
  touch-action: none;
  /* translate: -50% -50%; */
}

#contribute.is-dragging {
  cursor: grabbing;
}

#contribute img {
  display: block;
  max-width: 200px;
  height: auto;
  pointer-events: none;
}

#contribute,
#randombook {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

#contribute.is-dragging,
#randombook.is-dragging {
  cursor: grabbing;
}

#contribute img,
#randombook img {
  display: block;
  height: auto;
  pointer-events: none;
}

#contribute img {
  max-width: 200px;
}

#randombook img {
  max-width: 200px;
}

/* catalogue */

.catalogue {
  display: block;
}

table {
    font-size: 14px;
    font-weight: 350;
    letter-spacing: 0.1px;
    font-family: InterVariable;
    /* width: 100%; */
    font-feature-settings: "tnum";
    line-height: 1.2;
}
table tr {
}
table td {
  padding-right: 10px;
  padding-bottom: 5px;
}

.catalogue-reader-link:hover{
  color:light-dark(rgb(255, 46, 18), rgb(237, 84, 64)) 
}

#tableHeader,
.catalogue-list li .colonne {
  display: flex;
  column-gap: 30px; }

.catalogue-list li.show .colonne {
  margin-bottom: 20px;
}

.catalogue-list li .colonne>*:nth-child(2),
#tableHeader>*:nth-child(2) {
  flex: 0 0 30%;
  width: 30%;
}

#tableHeader {
    position: sticky;
    top: 64px;
    box-shadow: 0;
    z-index: 1;
    background-color: light-dark(#fff, #000);
    font-size: 18px;
    padding: 0 16px !important;
    margin: 0 0px !important;
}

.catalogue-list{
  margin-top: 20px;
}

.catalogue-list li, #tableHeader {
    margin: 0px 6px;
    padding: 9px 10px 7px;
    cursor: pointer;
}
.catalogue-list li:not(.show):hover{
  background-color: light-dark(#eee, #222);;
}

/* .catalogue-list li:hover .colonne * {
  color: rgb(2, 97, 145);
} */

#tableHeader>*,
.catalogue-list .colonne>* {
  flex: 0 0 13%;
  /* padding-right: 10px; */
}

.fiche {
  display: none;
}

.images {
    flex: 0 0 100vw;
    background-color: #000;
    overflow-x: scroll;
    height: 250px;
    flex-wrap: nowrap;
    display: flex;
    white-space: nowrap;
    padding: 10px;
    max-width: 100vw;
    margin: 0 -20px;
}

.images>div {
    justify-content: start;
    display: flex;
    align-content: center;
    align-items: center;
}

.anecdoteacqui {
    flex: 0 1 800px;
}

/* CONTRIBUTE */
#contributepanel {
  position: fixed;
  z-index: 1000;
  background-color: light-dark(rgba(0, 0, 0, 0), #ffffff00);
  /* backdrop-filter: blur(0px); */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  perspective: 1500px;
  display: none;
  transition-duration: 2s;
  transition-property: filter background-color;
  z-index: 10000000000000;
}

#contributepanel.turn {
  background-color: #00000066;
  /* backdrop-filter: blur(2px); */
  transition-duration: 2s;
  transition-property: filter background-color;
}

#contributepanel .wrapper {
  background-color: rgb(246 244 228);
  background-color: #e3d6b0;
  max-width: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  max-width: 100%;
  width: 800px;
  position: relative;
  padding: 20px;
  font-family: "garro";
  font-size: 22px;
  line-height: 1.4;
  color: rgb(72, 24, 18);
  transform: rotateY(90deg);
  backface-visibility: hidden;
  transition: transform 0.5s ease-in-out;
  text-align: center;
  background: url(../img/papier-poil-2.gif) 50% 50% repeat;
  background-size: 75% 75%;
}

#contributepanel.turn .wrapper {
    transform: rotateY(0deg);
    transition: transform 0.5s ease-in-out;
}

::placeholder {
  /* font-family: sans-serif;
  font-size: 14px; */
  /* color: light-dark(rgb(255, 46, 18), rgb(240, 89, 69)); */
  font-family: garro;
  opacity: 0.5;
}

#contributepanel .wrapper button {
    font-family: garro;
    font-size: 22px;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    margin-top: 13px;
    color: rgb(72, 24, 18);
}

#contributepanel .wrapper input {
    appearance: none;
    border: 0px solid #000;
    border-bottom: 1px dashed #000;
    font-family: garro;
    font-size: 22px;
    background-color: transparent;
    text-align: center;
    margin-bottom: 7px;
    height: 27px;
    padding-bottom: 0px;
}

#contributepanel .wrapper form {
  /* transform: skew(-3deg, -3deg); */
}

#headline {
  text-align: center;
  line-height: 1.2;
}

#headline .item {
  margin: 0 10px;
}

#headline h3 {
  font-size: 2.2em;
  font-family: big;
  line-height: 1.1;
  margin-bottom: 10px;
}

#contributepanel .wrapper form textarea {
  width: 100% !important;
  border: 0;
  text-align: center;
  background-color: transparent;
  font-family: garro;
  font-size: 22px;
  color: #000;
  /* height: 150px !important; */
}

#contributepanel .wrapper form *:focus {
  outline: 0;
}

#contributepanel.show {
  display: block;
}

.catalogue-list__item.show {
  margin: 50px 10px;

}

#contributepanel.show .wrapper {}

#closepanel {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.randombook figcaption {
  text-align: center;
  color: light-dark(purple, rgb(151, 76, 151));
  font-size: 14px;
  font-family: mono;
  letter-spacing: 0.4px;
  margin-top: 10px;

}

#biblio {
  margin: 50px 0;
}
#biblio ul{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0px;
}


#biblio li div {
    display: inline-flex;
    justify-content: center;
    padding: 5px;
    font-size: 8px;
    font-family: InterVariable;
    font-weight: 600;
    font-feature-settings: "smcp";
    align-items: end;
    overflow: hidden;
    background-color: light-dark(#fff, #000);
    border: 1px solid light-dark(#999, #999);
    margin: 0 -1px 0 0;
}

#biblio li div:hover{
  cursor: pointer;
  background-color: light-dark(rgb(177, 177, 177), rgb(44, 44, 44));
}

.fiche .wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.infoslivres{
  flex: 0 1 min(50%, 300px)
}
.anecdoteacqui{
  flex: 0 1 min(50%, 800px);
}
.anecdoteacqui .textannecdote {
  margin-top: 0.5em;
}
.anecdoteacqui .textannecdote p + p{
  text-indent: 1.2em;
}
.textelecture blockquote{
  position: relative;
}
blockquote > p[data-slug*="b-"] cite {
    cursor: pointer;
    /* color: light-dark(rgb(255, 46, 18), rgb(237, 84, 64)); */
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}
blockquote > p[data-slug*="b-"] cite:hover {
    color: light-dark(rgb(255, 46, 18), rgb(237, 84, 64));
}

blockquote img {
    position: absolute;
    top: 50%;
    left: calc(100% + 30px);
    translate: 0 -50%;
    max-width: calc(100vw - 830px);
}

.facsimile-image{
  cursor: pointer;
}

#tableHeader li.asc::after, #tableHeader li.desc::after {
    font-family: 'InterVariable';
    font-weight: 200;
    margin-left: 5px;
    position: absolute;
    margin-top: -2px;
}
#tableHeader li.asc::after{
  content: '↓';
}
#tableHeader li.desc::after{
  content: '↑';
}


@media screen and (max-width: 750px) {

  main .section {
    padding: 0 10px;
}
  #contributepanel {
    width: 100vw;
    height: 100vh;
  }

  #contributepanel .wrapper {
    width: 100%;
    height: 100%;
    font-size: 20px;
  }

  #contributepanel .wrapper form {
    transform: skew(0);
  }

  .catalogue-list li .colonne>*,
  #tableHeader>* {
    display: none;
  }

  .catalogue-list li .colonne>*:nth-child(2),
  .catalogue-list li .colonne>*:nth-child(3),
  #tableHeader>*:nth-child(2),
  #tableHeader>*:nth-child(3) {
    display: block;
    flex: 0 0 50%;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 50vw;
    overflow: hidden;
  }

  .catalogue-list li.show .colonne>*:nth-child(2),
  .catalogue-list li.show .colonne>*:nth-child(3) {
    display: block;
    flex: 0 0 50%;
    text-overflow: none;
    white-space: normal;
    width: 50vw;
    overflow: show;
  }


    .catalogue-list img {
        width: auto;
        height: 150px;
    }

  #contribute img {
    max-width: 100px;
  }

  blockquote {
    font-size: 1.3em;
  }


  #imgload img {
    max-width: 100%;

  }

  #imgload img {
    left: 800px !important;
    transform: translateX(0px) !important;
  }
  #tableHeader, .catalogue-list li .colonne {
    column-gap: 00px;
  }

  .fiche > .wrapper{
    flex-direction: column;
  }

    .fiche .wrapper > :nth-child(1) {
        order: 1;
        height: auto;
        flex: 0 0 auto;
    }
  .fiche .wrapper > *:nth-child(2){
    order: 3;
  }
  .fiche .wrapper > *:nth-child(3){
    order: 2;
  }

  .catalogue {
    font-size: 18px;
    max-width: 100vw;
  }

  #content.about {
  font-size: 13px;
}
.miller-menu{
  background-color: #fff;
  box-shadow: 0 0 30px 30px #fff;
}
}

 @media (prefers-color-scheme: dark) {
  .miller-menu{
    background-color: #000;
    box-shadow: 0 0 30px 30px #000;
  }
  
} 

