.book_hide{
  display: none;
}

@media screen {
  :root{
    font-size: 25px;
  }
  html {
    background-color: black;
    overflow-x: hidden;
  }

  .seuil {
    width: 100% !important;
    height: auto !important;
    background-color: black !important;
    color: white;
    overflow: hidden;
  }

  .apropos {
    position: absolute;
    display: flex;
    z-index: 2;
    width: 100%;
    font-size: 1rem;
    line-height: 100%;
    margin-top: 50vh;
    /*max-width: 40em;*/
    left: 0;
    color: black;
    font-family: "Brill";
    font-weight: bold;
    /* font-style: italic; */
    z-index: 15;
    hyphens: auto;
    hyphenate-limit-chars: 15 2 4;
    pointer-events: none;
    transition: all 0.2s linear;
    translate: 0,0;
    filter: drop-shadow(6pt 6pt 12pt grey);

    &.apropos-hide{
      margin: 0;
      bottom: calc(100% - 1.5em);
      left: 0;
      transform: translateX(calc(-100% + 3.5em));
      position: fixed;
      width: unset;
      #apropos-toggle::before{
        content:"à propos";
      }
      & >div:hover{
        box-shadow: grey 6pt 6pt 12pt;
      }
    }
  }

  .apropos > div {
    --fake-padding:2em;
    background: white;
    padding: 2em;
    padding-bottom: 0;
    position: relative;
    margin: auto;
    width: 28em;
    max-width: 100vw;
    /* box-shadow: grey 6pt 6pt 12pt; */
    pointer-events: all;
    transition: all 0.2s linear;
    &::after{
      content: "";
      left: 0;
      height: var(--fake-padding);
      width: calc(100% - var(--fake-padding));
      display: block;
      position: absolute;
      top:100%;
      background-color: white;
    }
  }

  #apropos-toggle{
    --corner-size: var(--fake-padding);
    width: var(--corner-size);
    height: var(--corner-size);
    right: -1px;
    position: absolute;
    bottom: calc(var(--corner-size)*-1);
    border:none;
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s linear;
    &::before{
      right: 0.4em;
      font-size: 0.8em;
      text-wrap: nowrap;
      content: "";
      display: block;
      position: absolute;
      bottom: calc(100% + 0.2em);
    }
    &::after{
      content:"";
      display: block;
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 0;
      background-color: transparent;
      border: calc(var(--corner-size)/2 + 1px) white solid;
      border-bottom-color: transparent;
      border-right-color: transparent;
      box-shadow: -3px -3px 4px rgba(0, 0, 0, 0.5);
      z-index: 2;
    }
  }

  sup {
    line-height: 0;
  }

  .apropos p, .apropos li {
    margin-bottom: 13pt;
  }

  .apropos li {
    margin-left: 1em;
    margin-right: 1em;
    width: 50%;
  }

  .apropos ul {
    display: flex;
  }

  .apropos .data{
    padding: 0.6em;
    border: 1px solid black;
  }

  .biblio {
    color: white;
    column-fill: unset !important;
    column-count: unset !important;
    column-width: 10rem;
    font-size: 0.7rem;
    line-height: 0.8rem;
    margin: 1vw;
    margin-bottom: 4.8rem;
    margin-top: 2.4rem;
  }

  .cover {
    position: relative;
    height: 100vh;
    display: flex;
  }

  .cover4, .cover1 {
    height: 100vh;
    width: unset;
    position: relative;
    display: flex;
    height: 100vh;
    width: auto;
    max-width: 48%;
  }

  .cover1 img, .cover4 img {
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: auto;
    object-fit: cover;
  }

  .spine {
    position: relative;
    margin: auto !important;
    height: 100vh;
    width: auto;
    left: unset;
  }

  .information {
    line-height: normal;
    height: 100%;
    margin: auto;
    display: flex;
    writing-mode: tb-rl;
    transform: unset;
    width: auto;
    font-size: 1rem;
  }

  .intro {
    position: sticky;
    top: 0;
    text-align: center;
    left: 0;
    font-size: 1rem;
    line-height: 120%;
    margin-top: 1rem;
    margin-bottom: 2.4rem;
    /* background: black; */
    color: black;
    z-index: 14;
    display: flex;
    flex-direction: column;
    /* max-width: calc(100vw - 150px); */
    width: fit-content;
    margin: auto;
    filter: drop-shadow(0px 0px 8px white) drop-shadow(0px 0px 2px #f9f9f9);
  }
  .intro p{
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    max-width: calc(100vw - 300px);
    display: block;
  }

  .not-editing #form-book{
    display: none;
  }
  .not-editing:hover{
    top:0;
  }
  .not-editing:hover::after {
    color:white;
    content: "v plus de paramètres v";
    display: block;
    /* position: absolute; */
    /* top:100%; */
    /* line-height: 1rem; */
    cursor: help;
    margin-bottom: -1.2rem;
    /* width: fit-content; */
    font-size: 0.9rem;
    text-decoration: underline;
    /* padding-bottom: 1em; */
  }

  .small-text{
    font-size: 0.7rem;
    line-height: 0.7rem;
  }

  #last-element-hidden {
    /* text-decoration: underline; */
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    cursor: pointer;
    
  }

  .editing #bookboxes{
    display: block;
  }

  #bookboxes{
    /* float: right; */
    width: fit-content;
    position: absolute;
    left: calc(100% + 4vw);
    top: 0px;
    display: none;
    p{
      background-color: black;
      color: white;
      margin: 0;
      width: 100%;
    }
    input{
      font-size: 0.9rem;
      margin: 0;
      margin-bottom: -0.25rem;
      margin-left: 0.5rem;
      margin-right: 0.5rem;
    }
  }

  .bookbox{
    line-height: 100%;
    border: solid white 1px;
    width: var(--width);
    height: var(--height);
    background: black;
    display: flex;
    flex-direction: column;
    transform: skewX(-15deg) rotate(6deg);
    /* transform: translate(calc(var(--depth)*-1), calc(var(--depth)*-1)); */
    position: relative;
    justify-content: space-evenly;
    
  }
  
  .bookbox::after{
    --depth2: var(--depth);
    content: "";
    position: absolute;
    top: 100%;
    left: -1px;
    width: calc(100%);
    height: var(--depth2);
    border: solid 1px white;
    border-right: none;
    transform: skewX(45deg);
    transform-origin: top;
    background: repeating-linear-gradient( white, white calc(var(--depth2) / var(--npage)), black calc(var(--depth2) / var(--npage)), black calc(var(--depth2) / var(--npage) + 1px) );
    /* transition: 5s all; */
    /* background-color: white; */
  }

  .bookbox::before {
    --depth2: var(--depth);
    transition: 0.5s all;
    content: "";
    position: absolute;
    left: 100%;
    top: -1px;
    height: calc(100%);
    width: var(--depth2);
    border: solid 1px white;
    border-bottom: none;
    transform: skewY(45deg);
    transform-origin: left;
    background: repeating-linear-gradient( 90deg, white, white calc(var(--depth2) / var(--npage)), black calc(var(--depth2) / var(--npage)), black calc(var(--depth2) / var(--npage) + 1px) );
    /* transition: 5s all; */
    /* background-color: white; */
}

  /* .book{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
  } */

  .documents{
    margin-top: 12pt;
    margin-left: 10vw;
    margin-right: 10vw;
  }

  .book{
    position: relative;
    /* min-height: 100vh; */
    /* width: 100vw; */
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    box-shadow: 0 0 0 0 black;
    margin-bottom: 5vh;
  }

  .documents .page {
    height: calc(var(--PAGEHEIGHT) * var(--MULT));
    width: calc(var(--PAGEWIDTH) * var(--MULT));
    position: relative;
    overflow: visible;
    background-color: unset;
    border: solid grey 1px;
    transition: background .5s;
    background: rgba(0, 0, 0, 1);
    z-index: 10;
    aspect-ratio: var(--RATIO);
  }

  .documents .link{
    position: absolute;
    left: calc(100% + 2rem);
    font-size: 1rem;
    z-index: 99;
    top: 0;
    writing-mode: vertical-lr;
  }

  .page-cover img, .page-logo img{
    /* transform: scale(var(--SCALE)); */
    position: absolute;
  }

  /* .page-cover::after, .page-logo::after{
    content: "";
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M100 0 L0 100 ' stroke='red' stroke-width='1'/><path d='M0 0 L100 100 ' stroke='red' stroke-width='1'/></svg>");
    background-repeat:no-repeat;
   background-position:center center;
   background-size: 100% 100%, auto;
   border: solid red 2px;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 11;
    pointer-events: none;
  } */

  .page-cover{
    margin-right: auto;
    /* margin-left: 10vw; */
  }
  .page-logo{
    margin-left: auto ;
    /* margin-right: 10vw; */
    /* margin-bottom: 5vh; */
  }


  .book:first-child .page-cover::before {
    content:"couverture des ouvrages";
    position: absolute;
    width: auto;
    text-align: center;
    color: black;
    bottom: 100%;
    font-size: 1rem;
    line-height: normal;
    z-index: 12;
    background-color: white;
    padding: 0.1rem;
  }

  .book:first-child .page-logo::before {
    content:"page avec le pictogramme";
    position: absolute;
    width: auto;
    text-align: center;
    color: black;
    bottom: 100%;
    font-size: 1rem;
    line-height: normal;
    z-index: 12;
    background-color: white;
    padding: 0.1rem;
  }

  .cover {
    width: 100%;
    margin-bottom: 1rem;
  }

  select, input, .interactif{
    cursor: pointer;
  }

  select, input {
    /* color: white; */
    /* background: black; */
    font-family: "Averia";
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  input[type="number"]{
    width: 3rem;
    background-color: rgb(232, 232, 232);
  }

  select, input[type="number"]{
    text-align: center;
    margin: 0;
    outline: none;
    border:none;
    text-decoration: underline;
    height: 1rem;
  }

  input[type="submit"]{
    margin: 1pt;
    padding: 1pt;
  }

  #input-width, #input-height {
    width: 3em;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: textfield;
  }
  #input-width::-webkit-outer-spin-button,
  #input-width::-webkit-inner-spin-button,
  #input-height::-webkit-outer-spin-button,
  #input-height::-webkit-inner-spin-button
  {
    display: none;
  }

  .above-page {
    z-index: 10;
    background: rgba(0, 0, 0, 0);
  }

  .book:hover{
    z-index: 11;
    background: rgba(0, 0, 0, 1);
    transition: all 0.5s;
    box-shadow: 0vh 0vh 10vh 10vh black;
  }

  .page:hover{
    z-index: 12;
  }
}

@media screen and (min-width: 481px){
  .apropos > div:hover{
    box-shadow: 0 0 50vw 50vw gainsboro;
  }
}

@media screen and (max-width: 480px){
  .cover{
    flex-direction: column-reverse !important;
    height: 100%;
  }
  .cover4, .cover1{
    width: 100%;
    max-width: 100%;
  }
  .spine{
    height: auto;
    margin: 0;
    width: 100%;
  }
  .information{
    writing-mode: unset;
    width: 100%;
    font-size: 4vw;
  }

  .intro{
    margin-top: 1.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: white;
    &.editing{
      height: 100vh;
    }
    p{
      width: 100%;
      max-width: unset;
      /* text-align: left; */
    }
  }

  #form-book{
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #last-element-hidden{
    text-align: center;
    margin-top: auto;
  }

  #bookboxes{
    left: unset;
    top: unset;
    position: relative;
    margin: auto;
    margin-top: 1.2rem;
    p{
      text-align: center;
    }

  }

  .apropos{
    position: relative;
    width: 100%;
    margin: 0;
    /* font-style: 18pt;
    line-height: 16pt; */
  }
  .apropos > div{
    padding: 1em;
  }
  .apropos ul{
    flex-direction: column;
  }
  .apropos li{
    width: auto;
  }
  .biblio{
    display: none;
  }
  .documents .link{
    position: relative;
    right: unset;
    font-size: 1rem;
    top: unset;
    writing-mode: unset;
    z-index: 99;
    margin-bottom: 1rem;
    line-height: 100%;
    border-top: 1px solid blue;
    width: 100%;
  }

  .page-cover{
    margin-right: auto;
    margin-left: 0;
  }
  .page-logo{
    margin-left: auto ;
    margin-right: 0;
  }

}
