/* custom */

/* Ca sert ou pas / a quoi ? */
/* html, body {
	scroll-padding-top: 100px;
	} */

	/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
	@media screen and (prefers-reduced-motion: no-preference) {
	  html {
	    scroll-behavior: smooth;
	  }
	}
	/* 1. Enable smooth scrolling */
	/* html {
		scroll-behavior: smooth;
	} */


	/* Booklet-text */

	.booklet-text {
		padding: 3px;
		font-size: 1.1rem;
	}

	@media only screen and (min-width: 768px) {
		.booklet-text {
			padding: 2em;
			max-width: 700px;
		}
	}

	/* Sticky TOC */

	.toc {
	height: 100%;
	width: 280px;
	transform: translateX(0)
}

	.toc-list {
		/* font-family: 'Open Sans', 'Noto Sans', 'Helvetica Neue', 'Arial', 'sans-serif' !important ; */
		font-size: small;
	}


	a.toc-link {
		text-decoration: none;
		color: #808080;
	}

	a.toc-link:hover {
		color: #4d4d4d;

	}

	.toc-list li {
		list-style: none,
	}

	.sticky-toc {
		position: sticky; 
		top: 80px;
		margin: 30px 50px 0 10px;
		min-width: 200px 
	}

	.toc-icon {
		position: fixed;
		top: 0;
		right: 0
	}

	#toc:checked ~ .toc {
		box-shadow: 0 0 5px #c8c8c8;
		transform: translateX(0)
	}

	.toc {
		background-color: rgba(255, 255, 255, 0.9);
		transform: translateX(-100%)
	}

	.toc.toc-right {
		transform: translateX(100%);
		right: 0
	}

	@media (min-width:52em) {
		.toc {
			transform: translateX(0)
		}

		.toc.toc-right {
			transform: translateX(0);
			right: calc((100% - 48rem - 4rem) / 2)
		}

		.toc-icon {
			display: none
		}

		.try-it-container {
			display: block
		}

		.content {
			margin-left: 280px
		}

		.toc-right ~ .content {
			margin-left: 0;
			margin-right: 280px
		}

	}
	/* Booklet Preview */

	/* card__booklet */

	.card__booklet {
		transition: all ease-out 0.2s;
		max-width: 380px; !important
		min-height: 550px; !important
	}

	.card__booklet:hover {
		box-shadow: 0.5rem 1rem 2rem rgba(0, 0, 0, 0.32) !important;
		/* background-color: #404040; */
	}

	.card-header__booklet {
		background-color: #404040; 
		padding: 0.4rem;
		margin: 0;
	}

	.booklet-title {
		margin: 0;
		padding: 0 0.6rem 0 0;
		color: #F9F9F9;
		font-weight: 600;
		text-align: end;

	}

	.booklet-title__author{
		padding: 0rem 0.6rem 0.3rem 0rem;
		margin-bottom: 0;
		font-size: 0.9rem;
		color: #F9F9F9;
		text-align: end;
	}


	.booklet-preview {
		position: relative;
		display: flex;
		width: 100%;
		height: 100%;
		overflow: hidden;
		opacity: 1;
	}

	.booklet-preview_hover {
		position: absolute;
		display: block;
		flex-direction: column;
		width: 100%;
		height: 100%;
		top: -25px;
		bottom: 0px;
		left: 0px;
		right: 0px;
		z-index: 1;
		opacity: 0;
		padding: 1em;
		background-color: #404040c4;
		transition: all ease-in-out 0.3s;
		overflow-y: auto;
	}

	.card__booklet:hover .img-fluid {
		opacity: 0;
		transition: all ease-in 0.4s;
	}

	.card__booklet:hover .booklet-preview_hover {
		background-color: #404040f7;
		opacity: 1;
		position: absolute;
		top: 0;
	}

	.booklet-preview_hover .booklet-summary {
		border: solid 1px #fff;
		padding: 1rem;
		margin: 0.6em 0;
	}
	.booklet-preview_hover .booklet-summary p {
		top: 0px;
		color: #fff;
		font-size: 0.9rem;
	}
	.booklet-preview_hover .booklet-summary .blog-tag__preview {
		color: #D4D4D4;
		font-size: 0.9em;
		margin: 0.4rem;
		/* padding: 0.2rem 0.6rem; */
		font-weight: 600;
		background-color: #4a4a4a;
		box-shadow: 0.1rem 0.1rem 0.1rem #cccccc52 !important;
		border-radius: 3px;
	}

	.booklet-preview_hover .booklet-summary .blog-tag__preview:before {
		content: "#";
	}
	.booklet-preview_hover .booklet-summary .blog-tag__preview:after {
		content: " ";
	}

	.booklet-preview_hover .booklet-summary .blog-tag__preview:hover {
		color: #fff;
	  text-decoration: none;

		box-shadow: 0.1rem 0.1rem 0.1rem #ffffff52 !important;

	}

	.card-download {
		font-family: 'Noto Sans','Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
		font-size: 0.8em;
	}

	.card-download-title {
		font-size: 0.9em;
		margin: 0 0 1px 0;
		padding: 1px 0 0 0;
	}

	.taxonomie {
			color: #fff;
			margin: 0.6rem;
			font-weight: 600;
		}
	.taxonomie a {
		color: #D4D4D4;
	  text-decoration: none;
	  padding: 0px 5px;
	}

/* 	.taxonomie a:before {
	  content: "[ ";
	}

	.taxonomie a:after {
	  content: " ]";
	} */

	.taxonomie a:hover {
		color: #fff;

	  border-radius: 2px;
	  background-color: #4a4a4a;
}

	.booklet-preview_hover .booklet-summary .taxonomie {
		color: #cccccc;
		font-size: 0.95em;
		margin: 0.2rem;
		/* padding: 0.2rem 0.6rem; */
		font-weight: 900;
		background-color: #4a4a4a;
		box-shadow: 0rem 0.1rem 0.1rem #cccccc52 !important;
		border-radius: 7px;
		text-align: center;
	}


	/*   transform: perspective(2000px) rotateY(0deg); */
/*   visibility: visible;
opacity: 1; */
}

/* TODO : a specifier; */
.btn {
	font-size: 0.9em !important;
}
/* button */

.btn--booklet {
	-webkit-border-radius: 5;
	-moz-border-radius: 5;
	border-radius: 5px;
	font-family: 'Open Sans', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
	color: #1c1c1c;
	font-size: 1em;
	background: #FFF;
	padding: 4px 10px 4px 10px;
	border: solid #D6D6D6 1px;
	text-decoration: none;
	white-space: normal;
	word-wrap: break-word;
	font-weight: 600;
}

.btn--booklet:hover {
	background: #e6e6e6;
	text-decoration: none;
}

.font-sans {
	font-family: 'Noto Sans', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Back to Top */

.back-to-top-link {
	/*  `fixed` is fallback when `sticky` not supported */
	position: fixed;
	/*  preferred positioning, requires prefixing for most support, and not supported on Safari */
	/*  @link https://caniuse.com/#search=position%3A%20sticky */
	position: sticky;
	 /* reinstate clicks */
	pointer-events: all;
	/*  achieves desired positioning within the viewport */
	/*  relative to the top of the viewport once `sticky` takes over, or always if `fixed` fallback is used */
	top: calc(100vh - 4rem);
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  line-height: 2rem;
  text-align: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 20%;
  color: #444444;
  opacity: 0.3;
}

/* How far of a scroll travel within <main> prior to the
   link appearing */
/* $scrollLength: 100vh; */

.back-to-top-wrapper {
 
  position: absolute;
  top: 300vh;
  right: 0.25rem;
  /*  Optional, extends the final link into the */
  /*  footer at the bottom of the page */
  /*  Set to `0` to stop at the end of `main` */
  bottom: 0;
  /*  Required for best support in browsers not supporting `sticky` */
  width: 4em;
  /*  Disable interaction with this element */
  pointer-events: none;
}


/* MEga Menu */
.megamenu-li {
	position: static;
}

.megamenu {
	position: absolute;
	width: 100%;
	left: 0;
	right: 0;
	padding: 15px;
}


