/* Base styles */

a strong {
  color: inherit;
}

hr {
  background: none;
  border: none;
  border-bottom: 1px solid #d8dee9;
}

img {
  height: auto;
  max-width: 100%;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
}

footer {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 4em;
  text-align: center;
}
.fin {
	font-size: 22px;	
	text-align:center;
	padding-top:1em;
}
.fin img {
		height:300px}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 01 Centering */
.wrapper {
		position:relative;
}
main {
	  padding-left: 125px}
header,
main {
  display: block;
  margin: 0 auto;
  max-width: 46em;
  position:relative;
}

/* 02 Font family */

body {
  font-family: "Helvetica", "Arial", sans-serif;
}

/* 03 Spacing */

body {
  line-height: 1.5;
  padding: 3em 1em;
}

h2 {
  margin-top: 1em;
  padding-top: 1em;
}

/* 04 Color and contrast */

body {
  color: #555;
}

h1,
h2,
strong {
  color: #333;
}
h3 {font-weight:normal;    font-size: 1.27em;}
h3+p {margin-top:-10px}

/* 06 Primary color */

a {
  color: #3168b7;
}

/* 07 Secondary colors */

body {
  background: white;
  color: #566b78;
}

/* 08 Custom font */

body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  -moz-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
strong {
  font-weight: 500;
}

/* 09 Images */

body {
  margin: 0;
  padding: 0;
}

main {
  padding: 2em 1em 6em;
}

body>header {
  background-color: #3d5577;
  background-image: url("header.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.2;
  max-width: none;
  padding: 10vw 2em;
  text-align: center;
}

#logo {
  display: inline-block;
  height: 120px;
  vertical-align: top;
  width: 120px;
}

body>header>h1 {
  color: white;
  font-size: 2.5em;
  font-weight: 300;
  margin-bottom: 5px;
  text-shadow: black 3px 3px 7px;
}

body>header>h2 {
  color: white;
  font-size: 1.3em;
  font-weight: 200;
  padding-top:0;
  margin-top:0;
  margin-bottom:35px;
  text-shadow: black 5px 5px 10px;
}

body>header a {
  border: 1px solid white;
  border-radius: 290486px;
  color: white;
  font-size: 0.6em;
  letter-spacing: 0.2em;
  padding: 1em 2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: none 200ms ease-out;
  transition-property: color, background;
}

body>header a:hover {
  background: #3d5577;
  color: white;
}

/* Classes */

.animate {
  animation-duration: 1s;
  animation-name: blink;
}

@keyframes blink {
  from {
    background-color: lightyellow;
  }

  to {
    background-color: transparent;
  }
}

html a.button {
  border: 1px solid #3d5577;
  border-radius: 290486px;
  color: #667076;
  padding: 1em 1.5em;
  text-align: center;
  text-decoration: none;
  transition: none 200ms ease-out;
  transition-property: color, background;
}

.button:hover {
  background: #3d5577;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.8);
}
.button em {
  display: block;
  font-size: 0.6em;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button strong {
  color: #3168b7;
  transition: color 200ms ease-out;
}

.button:hover strong {
  color: white !important;
}

.button.github strong {
  color: #333;
}

.button.github:hover {
  background: #333;
}

.button.facebook strong {
  color: #3b5998;
}

.button.facebook:hover {
  background: #3b5998;
}

.button.twitter strong {
  color: #55acee;
}

.button.twitter:hover {
  background: #55acee;
}
section>header {}
section>header::before {
	content:"Récit de voyage à l'île d'Anticosti par Patrick Matte";
	color: rgb(86, 107, 120);
	font-size:0.8em}
#home section>header::before {content:""}
section>header>h2 {margin-top:0.5em;border-top: 1px solid #d8dee9;margin-bottom:0;padding-bottom:0;}
section#avant-propos>header>h2 {border:none;margin-top:0}
section>header>p {margin-top:0;font-weight:300;color:black;font-size:1.1em}

.aside {
	background-color: #eee;
    padding: 2em 2.1em;
    margin: 2em 0;	
}
.aside h3 {
    padding-top: 8px;
    margin-top: 0;}

footer .button {
  font-size: 0.8em;
  padding: 1em 2em;
}

.buttons .button {
  display: block;
  margin-bottom: 1em;
}

/* figcaption */
figure {
	margin: 0px 0px 35px;
	line-height: 1;
}
figcaption  {
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 0.875em;
    line-height: 1.7142857;
	padding: 10px 25px;
    border-bottom: 1px solid #f2f2f2;
}
figcaption strong { color: inherit}

figure.light-caption {
	margin-bottom: 1.5em;
}

figure.light-caption figcaption {
	background-color: white;
	color: #566b78;	
}


/* fotorama customization */
.fotorama {
    margin-bottom: 45px}
.fotorama__stage  {
    margin-bottom: 0;
	} 
.fotorama__caption {
    text-align: center;
}
.fotorama__caption {
    background-color: rgba(255,255,255,1);
    border-bottom: 1px solid #f2f2f2;	
}
.fotorama__caption .fotorama__caption__wrap {
	background-color:transparent;
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 14px;
    line-height: 1.7142857;
	padding: 10px 25px;

}
.fotorama__nav-wrap img {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	filter: gray;
	filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
	
}

#toc {
    color: #3168b7;
    height: 100%;
    width: 125px;
    padding-top: 3em;
  	position: absolute;	
	z-index: 9999;
	display: block;
}

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

#toc li {
    padding: 5px 10px 5px 15px;
	display: inline-block;
	margin: 2px 0;
}

#toc a {
     color: #3168b7;
    text-decoration: none;
    display: block;
	font-size: 0.9em;
	padding: 0 3px;
}

#toc .toc-h2 {
    padding-left: 10px;
}

#toc .toc-h3 {
    padding-left: 20px;
}

#toc .toc-active {
    background: #3168b7;
}
#toc .toc-active a {
    color: white;
}

/* Responsiveness */
@media (min-width: 600px) {
  .buttons {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1em 0;
  }

  .buttons .button {
    flex-grow: 1;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 1em;
  }

  .buttons .button:last-child {
    margin-right: 0;
  }
}


@media (max-width: 1000px) {
	#toc {display: none}
}

@media (max-width: 46em) {
	.annotated ul{
		margin-top: 3px;
	}	
	body {margin:0}
	.aside {
		padding: 1em;
	}
	.fotorama__caption {
    background-color: rgba(255,255,255,0.7);

	}
}
@media (min-width: 1080px) {
	.aside {
		margin: 2em 0;	
	}
}
@media (min-width: 46em) {

	main>section>header,
	main>section>h2,
	main>section>h3,
	main>section>p
	 {padding-left:75px; padding-right:75px}
	 
	figcaption  {
		text-align: center;
	}
	html a.button-next {
		font-size: 1em;
	  	padding: 1.5em 3.5em;
	}
/*------------------------------------*\
  ANNOTATIONS
\*------------------------------------*/
/*
Apply a class of annotated to any figure you would like, well, annotated!
*/
.annotated{
  position:relative;
  /*display:inline-block; If you do not need to support IE7 and below uncomment this line and remove the inline width and height styles on the <figure> in your markup. */
}
.annotated img{ /* Set this to stop white-space appearing under the image. */
  display:block;
}
.annotated b{ /* Hide the figcaption’s title. */
  position:absolute;
  left:-99999px;
}
.annotated ul{ /* Set up the canvas for the annotations to sit on. */
  list-style:none;
  position:absolute; 
  top:0;
  right:0;
  bottom:0;
  left:0;
}
.annotated li{
	color:white;
  display:block;
  padding:0 5px;
  /* Give them a width and a line-height suitable for your kind of images. I chose 50px. */
  width:40px; /* 40px + 5px padding-right  + 5px padding-left = 50px */
  line-height:50px;
  position:absolute;
  text-indent:-99999px; /* Hide the text off-screen. */
  white-space:nowrap; /* Stop the annotations breaking onto several lines. */
  cursor:default;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border 200ms ease-out;
}
.annotated:hover li{ /* When we hover the figure show us where the annotations are. */
  border:1px solid #fff;
}
.annotated li:hover { /* Show the text on hover. */
  background:#000;
  background:rgba(0,0,0,0.6);
  z-index:2; /* Bring current annotation above others. */
  /* Remove the width and text-indent to show us our text! */
  width:auto;
  text-indent:0;
  padding: 0 19px;

 
  /* A bit o’ progressive enhancement */
  -webkit-box-shadow:0 0 5px rgba(0,0,0,0.25);
     -moz-box-shadow:0 0 5px rgba(0,0,0,0.25);
         box-shadow:0 0 5px rgba(0,0,0,0.25);
}


}

@media print {
   	.wow {
		visibility: visible !important;
	}
	#toc {display:none}
	body {color: black}
	body>header {
	  background-color: transparent;
	  background-image: url(none);
	  margin-bottom:1vw;
	  opacity: 1}
	body>header>h1, body>header>h2 {
		color: black;
		text-shadow: none}
	body>header a {
		border:none;
		color:black;
		padding:0}
	#logo {
		-webkit-filter: invert(100%); 
		filter: invert(100%);
		width:25%;height:25%}
	main>section {page-break-before: always}
	section>header>h2 {border-top: none}
	.fotorama__nav-wrap {display:none}
}