@font-face {
  font-family: LT33;
  src: url('HELVETICA_LT_33.TTF');
  font-display: block;
}
:root {
  --ease-out: cubic-bezier(0, 0.79, 0.58, 1);
  --start: opacity 1.3s ease-out;
}
* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
body {
  margin: 0;
  font-size: 1.8vw;
  background-color: #f2f2f2;
  font-family: 'LT33', sans-serif;
  color: #505050;
}
.hideLoading {
  opacity: 0;
  transition: var(--start);
}
.shadow{
  text-shadow: 1px 1px 4px #999;
}
a {
	text-decoration: none;
}
h1 {
  margin: 0;
  font-size: 6vw;
  font-weight: 400;
}
#main {
  background: url('img/fond-fixe.jpg') center/cover fixed;
  max-width: 1600px;
  min-height: 100vh;
  margin: auto;
  height:  100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.header {
  position: relative;
  z-index: 11;
  color: #dde5c6;
  background: 0 100%/100% url('img/accueil.jpg');
  box-shadow: 0 0.2vw 0.5vw #777;
}
.header img{
  width: 100%;
  display: block;
  opacity: 1;
  transition: var(--start);
}
.header .bandeau {
  box-sizing: border-box;
  padding: 2% 0 1%;
  width: 100%;
  background: rgba(0,0,0,0.56);
  position: absolute;
  transform: translateY(-100.1%);
}
.header .titre {
  margin: auto;
  width: -moz-max-content;
  width: max-content;
  text-shadow: #444 1px 1px 4px;	
}
.bandeau p{
  margin: 0;
}
.header .bandeau p{
  text-align: right;
  font-size: 2.2vw;
}
.bandeau {
  box-shadow: 0px 0.1vw 0.4vw #222;
  transition: var(--start);
}
.hasard{
  font-family: "Great Vibes", sans-serif;
  overflow: hidden;
  text-align: center;
  font-size: 5vw;
  padding: 6vh 0 4vh;
  opacity: 1;
  transition: opacity 0.5s;
}
.hasard p{
  margin: 0;
}
#box-rubriques {
  padding: 2% 0 3%;
  display: flex;
  align-items: center;
  position: relative;
}
.rubriques {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: space-around;
  align-items: center;
}
.proses, .poesies, .nondit {
  --ease: cubic-bezier(0.15, 1, 0.50, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  max-width: 300px;
  width: 29%;
  left: 0;
  top: 0;
  transition: transform 0.3s var(--ease-out),
   opacity 0.3s var(--ease-out);
}
.proses {
  z-index: 3;
}
.poesies {
  z-index: 2;
}
.nondit {
  z-index: 1;
}
nav .rubrique-image {
  width: 100%;
  cursor: pointer;
}
figure {
  margin: 0;
  font-size: 0;
  text-align: center;

}
.rubriques .img {
  width: 100%;
  height: 250px;
}
aside {
  display: none;
  width: 54%;
  text-shadow: 1px 1px 4px #444;
}
aside p {
  margin: 0;
}
aside img {
  width: 100%;
}
#excerpt-container {
  position: absolute;
  opacity: 0;
  width: 70%;
  height: 94%;
  top: 0;
  left: 0;
  padding: 2px 3.5% 0;
  -moz-user-select: none;
  user-select: none;
  transform: translate(100vw, 0);
  transition: transform 0.3s var(--ease-out),
   opacity 0.3s var(--ease-out);
}
#excerpt {
  position: relative;
  display: flex;
  flex: auto;
  background-color:rgba(0,0,0,0.80);
  border-radius: 15px;
  height: 100%;
  padding: 3%;
  color: #dde5c6;
  font-size: 16px;
  overflow: hidden;
  box-shadow: 1px 1px 3px #777;
  margin-bottom: 3px;
}
#excerpt p {
  flex: 0 0 30px;
  margin: auto;
  text-align: center;
  cursor: pointer;
}
#excerpt-texte {
  position: relative;
  display: flex;
  width: 100%;
  height: max-content;
  height: -moz-max-content;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: auto;

}
#excerpt-close {
  position: absolute;
  top: -4px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: url('img/close.png') center no-repeat;
  cursor: pointer;
	
}
#excerpt-scrollbar, #reader-scrollbar {
  position: absolute;
  top: 15%;
  right: 9%;
  width: 2px;
  height: 70%;
  background: #aaa;
}
#reader-scrollBar {
  background: #777;
}
#excerpt-scroll, #reader-scroll {
  position: relative;
  top: -25px;
  right: 49px;
  width: 100px;
  height: 100px;
  background: url('img/btn-barre-scroll.png') center/8px 24px no-repeat;
  border-radius: 50px;
}
footer {
  position: relative;
  width: 100%;
  font-size: 1.4vw;
}
footer .bandeau {
  display: flex;
  background: rgba(0,0,0,0.4);
  justify-content: space-evenly;
  text-align: center;
  padding: 0.5%;
  color: #dde5c6;
  text-shadow: #505050 1px 1px 2px;
}
footer .design, footer .contact, footer .dev {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex: auto;
}
footer img {
  width: 46%;
  max-width: 280px;
}
footer a {
  color: #dde5c6;
}
footer .texte {
  display: none;
}
footer .txt {
  width: 33%;
}
footer .contact .txt {
  width: auto;
}
footer .stylo-txt1 {
  margin-bottom: 0.8vw;
  font-weight: 700;
  opacity: 0.9;
}
footer .stylo-txt2 {
  font-size: 1.2vw;
}
footer .copyright{
  padding: 0.6vw 0;
  font-size: 0.9vw;
  text-align: center;
  text-shadow: #333 1px 1px 2px;
}
#over {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 15;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0, 0.79, 0.58, 1);
}
.over {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  transition: all 0.2s cubic-bezier(0, 0.79, 0.58, 1);
}
#reader-container {
  font-family: "Questrial";
  font-size: 16px;
  color: #222;
  padding: 10px;
  z-index: 20;
  opacity: 1;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0, 0.79, 0.58, 1);
}
#reader-box {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  height: 100%;
  max-height: 830px;
  border-radius: 15px;
  background: url(img/reader-bg.jpg) #e4e0d8;
	background-attachment: fixed;
  text-shadow: #bbb 1px 1px 2px;
  overflow: hidden;
}
#reader {
  overflow: auto;
  overflow: hidden;
  margin: 0 auto;
  cursor: default;
  -moz-user-select: none;
  user-select: none;
}
#reader-titre, #popup-titre {
  text-align: center;
  width: 100%;
  line-height: 30px;
  font-size: 20px;
  color: #dde5c6;
  font-family: 'LT33';
  text-shadow: #a7a7a7 0.5px 0.5px 1px;
  transition: opacity 0.3s ease-in-out;
}
#reader-texte {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  min-height: 100%;
  padding: 50px;
  padding-bottom: 0;
  text-align: justify;
}
#reader-texte.page0 {
  padding-top: 25vh;
}
#reader-texte.texteVerticalCenter {
  padding-top: 0;
  justify-content: center;
}
#reader-texte h2 {
  font-size: 1.5em;
  margin: 0;
  text-align: center;
}
#reader-texte h3 {
  font-size: 1em;
  font-weight: 400;
  margin: 0;
  text-align: center;
}
#reader-texte p.center {
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
}
#reader-texte p.right {
  width: -moz-max-content;
  width: max-content;
  margin-left: auto;
}
#reader-texte p.chapitre{
	font-size: 18px;
	font-weight: 700;
}
#reader-texte p.citation{
	width: 60%;
}
#reader-texte p.italique{
	font-style: italic;
}
#reader-texte p.separateurs{
	width: 56px;
	height: 16px;
	background: url("img/separateurs.png");
	margin: 0 auto;
}
#reader-texte p {
  -webkit-user-select: none;
  margin: 0.5em 0;
}
#pageNb {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  z-index:5;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 44px;
  padding-top: 8px;
  font-size: 16px;
  bottom: 0;
  background: url(img/reader-bg.jpg);
	background-attachment: fixed;
  color: #333;
  border-radius: 10px;
}
#reader-scrollbar {
  right: 14px;
  background: #c5bcae;
}
#nav, #popup-nav {
  display: flex;
  justify-content: space-between;
	align-items: center;
  width: 200px;
  max-width: 580px;
}
#close, #prev, #next,
#popup-close, #popup-prev, #popup-next {
  display: block;
  width: 35px;
  height: 35px;
  cursor: pointer;
}
#close, #popup-close {
  width: 30px;
  height: 30px;
  background: center/30px no-repeat url(img/close.png);
}
#prev, #popup-prev {
  background: 0 center no-repeat url(img/prev.png);
}
#next, #popup-next {
  background: 100% center no-repeat url(img/next.png);
}
#reader-texte.galerie {
  flex-direction: inherit;
  justify-content: space-evenly;
  align-content: center;
  flex-wrap: wrap;
  width: 100%;
  height: -moz-max-content;
  height: max-content;
  padding: 0 16px 0 0;
}
#reader-texte.galerie h2 {
  width: 100%;
  margin-bottom: 20px;
}
figure.thumb {
  display: flex;
  flex-direction: column;
  width: 29%;
  max-width: 175px;
  margin: 10px 10px;
}
figure.thumb img {
  width:100%;
  /* height: auto; */
  min-height: 150px;
  border-radius: 8px;
  box-shadow: #777 2px 2px 5px;
  cursor: pointer;
}
.thumb figcaption {
  font-size: 15px;
  margin-top: 6px;
  text-shadow: #999 1px 1px 2px;
}
#popup-container {
  z-index: 30;
}
#popup-img {
  position: relative;
}
#popup-container img {
  width: 1px;
  margin: 0 auto 0px;
  border-radius: 10px;
}
#popup-close, #popup-prev, #popup-next {
  position: absolute;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0, 0.61, 0.58, 1);
}
#popup-close {
  right: 10px;
  top: 100%;
}
#popup-prev, #popup-next {
  height: 100%;
  width: 100px;
}
#popup-prev {
  left: 10px;
}
#popup-next {
  right: 10px;
}
#popup-img:hover #popup-next,
#popup-img:hover #popup-prev,
#popup-img:hover #popup-close {
  opacity: 1;
}
@media screen and (max-width: 600px) {
  #main {
    min-height: 100vh;
  }
  .header {
    background: 0 100%/100% url('img/accueil-mobile.jpg');
  }
  .header img{
    position: absolute;
    bottom: 0;
  }
  /* ne pas modifier !
  /* javascript indication mobile */
  .header .bandeau {
    position: relative;
    transform: translateY(0);
  }
  .hasard{
    display: none;
  }
  #box-rubriques {
    flex: auto;
    display: flex;
    align-items: normal;
    padding: 2%;
    overflow: hidden;
  }
  .rubriques {
    flex-direction: column;
    overflow: hidden;
  }
  nav .rubrique-image {
    margin: 0;
  }
  .proses, .poesies, .nondit {
    width: 100%;
    max-width: initial;
    padding: 2%;
  }
  figure {
    width: 46%;
  }
  figure.thumb{
    width: 45%;
	  margin: 10px 2px;
  }
  figure.thumb img {
    min-height: 120px;
  }
  figcaption.texte {
    display: none;
  }
  aside {
    display: block;
    text-align: center;
    font-size: 7.5vw;
  }
  #excerpt-container {
    width: 100%;
    height: 65%;
    overflow: hidden;
    transform: translate(0, 100vh);
  }
  footer .bandeau {
    padding: 2%;
    box-shadow: #999 1px 1px 2px;
  }
  footer .contact, footer .dev {
    display: none;
  }
  footer .design {
    width: 40%;
  }
  footer img {
    width: 100%;
  }
  footer .txt {
    display: none;
  }
  footer .texte {
    display: block;
    font-size: 4vw;
    width: 60%;
  }
  footer .stylo-txt1 {
    display: none;
  }
  footer .stylo-txt2 {
    display: none;
  }
  footer .copyright{
      padding: 1.5vw 0;
      font-size: 3vw;
      text-shadow: #777 1px 1px 2px;
  }
  #box-reader {
    font-size: 14px;
    padding: 14px;
  }
  #titre {
    top: -32px;
    font-size: 16px;
  }
  #reader-texte {
    padding: 12px 18px 12px 12px;
    font-size: 14px;
  }
  #reader-texte.galerie {
	  justify-content: space-around;
  }
	#reader-texte p.citation{
		width: 70%;
	}
	#reader-texte p.right{
		font-size: 12px;
	}
  #reader-titre, #popup-titre {
    font-size: 16px;
  }
  #reader-scrollbar {
    right: 10px;
    opacity: 0.5;
  }
}
@media screen and (min-width: 800px) {
  .hasard {
    font-size: 3.9vw;
  }
  #excerpt p {
    font-size: 20px;
    padding: 5px 0;
  }
}
@media screen and (min-width: 1600px) {
  body {
    background-color: black;
    font-size: 28px;
  }
  .bandeau h1 {
    font-size: 110px;
  }
  .header .bandeau p {
    font-size: 35px;
  }
  .hasard {
    font-size: 58px;
  }
  nav .texte {
    font-size: 35px;
  }
    footer .stylo-txt1 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  footer .stylo-txt2 {
    font-size: 20px;
  }
  footer .copyright {
    font-size: 14px;
    padding: 10px 0;
  }
}
@media (hover:none) {
  #popup-close, #popup-prev, #popup-next {
    display: none;
  }
}

@supports (-ms-ime-align: auto) {
  .header .titre {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer .design, footer .contact, footer .dev {
    justify-content: center;
  }
}
