@font-face{ font-family: "Luciole"; src: url("fonts/Luciole-Regular.woff2") format("woff2"); font-weight: normal; font-style: normal; }
@font-face{ font-family: "Luciole"; src: url("fonts/Luciole-Bold.woff2") format("woff2"); font-weight: bold; font-style: normal; }
@font-face{ font-family: "Luciole"; src: url("fonts/Luciole-Italic.woff2") format("woff2"); font-weight: normal; font-style: italic; }
@font-face{ font-family: "Luciole"; src: url("fonts/Luciole-BoldItalic.woff2") format("woff2"); font-weight: bold; font-style: italic; }

/*Accueil*/

#title{
	position: absolute;
	text-align: center;
	position: absolute; 
  top: 50%; left: 50%;
	transform: translate(-50%, -50%);
}

h1{
	font-weight: bold;
	font-size: 3em;
}

/*Index*/

:root{
  --gauche: 45vw;    
  --marge: 4rem;    
  --legende: 4rem;   
  --ecart: 1rem;   
  --pied: 5rem; 
}

*{
	box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body{         
	margin: 0;
	height: 100%;
	overflow: hidden;
}

body {
	line-height: 1.6;
  color: black;
  background: linear-gradient(90deg,rgba(190, 206, 237, 1) 0%, rgba(255, 255, 255, 1) 7%, rgba(255, 255, 255, 1) 34%, rgba(190, 206, 237, 1) 41%, rgba(255, 255, 255, 1) 48%, rgba(255, 255, 255, 1) 93%, rgba(190, 206, 237, 1) 100%);
  font-family: "Luciole";
}

p{
  font-weight: normal;
	font-size: 18px;
  line-height: 1.95;
	padding-bottom:1em;
  text-indent: 3em;
}

h2{
	font-weight: bold;
  font-size: 24px;
  padding-bottom:1em;
}

.bolditalic{
    font-weight: bold;
    font-style: italic;
}

h3{
	font-weight: bold;
  font-size: 20px;
  text-decoration: underline;
  padding-top:1em;
  padding-bottom:1em;
}

i{
	font-style: italic;
}

em{
	font-weight: bold;
}

q{
	font-style: italic;
}

blockquote{
  font-style: italic;
  line-height: 1.95;
  font-size: 18px;
	padding-bottom:1.2em;	
	padding-left:3em;
}

li{
  font-family: inherit;
}

aside{
  font-family: inherit;
}

.biblio{
  padding-left:3em;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--gauche);
  z-index: 5;
  display: flex;
  overflow-y: auto;   
  padding: 4vw 2rem 2rem 0rem;
  font-size: 18px;
  line-height: 1.95;
}

header nav{
  padding-left: 5vw;
}

body.figures-visibles header,
body.note-ouverte header{
  opacity: 0;
  visibility: hidden;      
  pointer-events: none;
}

main{	
  top: 0;  
  position:absolute;
  left: var(--gauche);
  width: calc(100vw - var(--gauche));
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 4vw 5vw 6vw 1vw;
}

footer{
	position:fixed;
	z-index:100;
	display:flex;
	font-size: 7rem;
  justify-content:space-between;
	align-items:center;
	bottom: -1rem;       
	height: 1em; 
	width:100%; 
	padding: 0 2rem 3rem 2rem;
}

footer a:hover{
	text-decoration: none;
}

a{
	font-weight: normal;
}

a[href^='http'] {
  padding-right: 1.25em;
}

a[href^='http']::after {
  position: absolute;
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewbox='0 0 12.2 12.2' width='14' height='14'%3E%3Cpath d='M5.7 0v1.5h4L4.5 6.7l1 1.1 5.3-5.2v3.9h1.4V0z'/%3E%3Cpath fill='none' d='M3.4 6.7l3-2.9H1.5v7h7V5.9l-3 2.9z'/%3E%3Cpath d='M8.5 5.9v4.9h-7v-7h4.9l1.5-1.6H0v10h10V4.4z'/%3E%3C/svg%3E");
  transform: translateY(0.25em);
}

a:hover{
	text-decoration: underline;
}

.buttonnotes{
  padding: 11px 6px 9px 6px;
  border-radius: 100px;
  background: linear-gradient(90deg,rgba(222, 129, 129, 1) 27%, rgba(227, 54, 54, 1) 42%);
	font-weight: bold;
	font-size: 80%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.6em;
}

.images {
  --zone: calc(var(--gauche) - 2 * var(--marge) - (var(--n, 1) - 1) * var(--ecart));
  position: fixed;
  top: 0;
  left: calc(var(--marge) + var(--zone) * var(--avant, 0) / var(--total, 1) + var(--i, 0) * var(--ecart));
  width: calc(var(--zone) * var(--r, 1) / var(--total, 1));
  height: 100vh;
  margin: 0;
  padding: 4vw 0 var(--marge);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.images.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.images img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 4vw - var(--pied) - var(--legende));
  object-fit: contain;
}

figcaption{
	font-weight: normal;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  padding-top: .75em;
  height: var(--legende); 
}

.footnote {
	font-weight: normal;
	font-size: 12px;
  position: fixed;
  top: 50%;
  left: calc(var(--gauche) / 2);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(calc(var(--gauche) - 4rem), 36rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.footnote.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/*bouton d'apparition des images*/

.buttonimages {

  font: inherit;
  border: 0;
  padding: 0;
  cursor: pointer;
  padding: 1px 8px 0px 8px;
  border-radius: 100px;
  background-image: linear-gradient(to right, rgb(232, 155, 245) 0%, rgba(0, 0, 0, 0) 30%, rgb(8, 192, 118) 100%);
  border: 0;
  cursor: pointer;
}

.buttonimages:hover {
  background-image: #fff;
}




@media (max-width: 70em){

  html, body {
    height: auto;
    overflow: visible;   
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 7%, rgba(190, 206, 237, 1) 100%);

  }

p{
  text-indent: 0em;
}


.buttonnotes,
.buttonimages {
	cursor: default;
}

  header {
  position: static;
  padding: 2rem 0rem 2rem 2rem ;
  overflow: auto;
  width: auto;
  }

  body.figures-visibles header {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  main {
  position: static;
  display: block;
  width: 100%;
  height: auto;  
  overflow: visible; 
  padding-left:2em;
  padding-right:2em;
  }

  .images {
    position: static;
    display: block;
    width: auto;
    max-width: 70%;
    height: auto;
    margin: 0;
    padding: 1rem 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    margin-left: auto; 
    margin-right: auto;
  }

  .images img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

figcaption {
  text-align: center;
  height: auto;
}

.footnote {
	font-size: 12px;
	display: block;
	margin-bottom:1em;
	position: static;
	transform: none;
	width: auto;
  height: auto;
	max-width: none;
	max-height: none;
	overflow: visible;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.footnote.is-open {
	display: block;
}

footer {
  position: static;
}

}
