@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

* {box-sizing: border-box; margin:0;}

:root
{
    --primary-color: #6dd6cd;
    --primary-color-dark: rgb(20,37,70);
    --secondary-color: #ff554d;
    --text-color: #fff;
    --site-w: 1200px;
}
 

html{font-size:62.5%;}

body {
  background: url('../images/bg.png'), linear-gradient(35deg, rgba(1,2,4,1) 17%, rgba(20,37,70,1) 63%, rgba(81,191,189,1) 100%);
  color: var(--text-color);
  font: 1.4rem/2rem Lato, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight:bold;
  margin-bottom:10px;
  color: var(--primary-color);
}

img {max-width: 100%;}

a {
  color: var(--primary-color);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 5px 8px;
  background-color: var(--primary-color);
  color: var(--primary-color-dark);
  border-radius: 5px;
}

.parent {
  width:95%;
  max-width: var(--site-w);
  margin: 0 auto;
  flex-grow:1;
  background-color: rgba(0,0,0,.7);
  padding: 20px 60px;
}
.header {
  margin-bottom: 20px;
}

/* Menu */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 40px 0;
}

.nav a {
  font-weight: bold;
  font-size: 1.6rem;;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.nav a:hover {
  color: var(--secondary-color);
}

.search_bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header .search_bar {
  max-width: 180px;
  height: 25px;
  display:flex;
  align-items: stretch;
}
.header .search_bar input {
  width: calc(100% - 25px);
  border: none;
  border-radius: 5px 0 0 5px;
  text-indent: 7px;
}
.header .search_bar input::placeholder {
  font-style: italic;
}
.header .search_bar a {
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 5px 5px 0;
  text-align: center;
  background-color: #fff;
  color: var(--primary-color);
}

/* Main */


/* Affichage livre */

.book .cover {
  border: 1px solid rgba(255,255,255,.2);
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  height: 230px;
}
.book .cover img {
  max-height: 100%;
}
.book .infos {
  margin-top: 20px;
}
.book .infos span {
  display: block;
  text-align: center;
}
.title {
  color: var(--secondary-color);
  font-weight: bold;
}
.title {
  color: var(--secondary-color);
  font-weight: bold;
}
.serie {
  color: var(--text-color);
  font-size: .9em;
  font-style: italic;
}
.book:hover .cover {
  background-color: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,.4);
}
.rating {
  display: flex;
  align-items: center;
}
.rating i {
  color: #555;
  margin-right:3px;
}
.rating i.full {
  color: var(--secondary-color);
}

/* Showcase */

.showcase .splide__arrow {
  background: none;
  top : 115px;
}
.showcase .splide__track {
  width: calc(100% - 4.4em);
  margin: 0  auto;
}
.showcase .splide__arrow--prev {
  left: 0em;
}
.showcase .splide__arrow--next {
  right: 0em;
}
.showcase .splide__arrow svg {
  width: 2.2em;
  height: 2.2em;
  fill: #fff;
}


/* Filtres */

.sort select {
  width: 100%;
  /* Reset */
  appearance: none;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  font-family: inherit;
  /* Setup */
  min-height:30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 0.25em;
  padding: 0.5em;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.2em;
  background-color: rgba(0,0,0,.5);
  color: #fff;
}
.sort select:focus {
  border: 1px solid rgba(255,255,255,.5);
}
.sort select option {
  background-color: rgba(0,0,0,.8);
  line-height: 1.2em;
  padding: 0.5em;
}
.lib_sidebar > .filter_title:first-child {
  margin-top: 0;
}
.filter_title {
  margin: 20px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.2);
  text-transform: uppercase;
  font-weight: bold;
}
.filter_checklist .filter_list {
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  border-radius: 5px;
  background-color: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
.filter_checklist label {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  display:flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  order: 2;
}
.filter_checklist label:last-child {border-bottom: 0;}
.filter_checklist label.active {
  background-color: rgba(50,50,50,0.6);
  order: 1;
}

/* checkboxes */
.filter_checklist label input {
  background-color: #000;
  border: 1px solid rgba(255,255,255,.2);
  margin-right: 10px;
}

.filter_checklist input[type=checkbox] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
}
.filter_checklist input[type=checkbox] {
  border-radius: 4px;
  height: 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: #000;
  border: 1px solid #ccc;
}
.filter_checklist input[type="checkbox"]:checked {
  background:var(--secondary-color);
  position: relative;
}
.filter_checklist input[type="checkbox"]:checked:before {
  content: '✖';
  display: block;
  color: #fff;
  font-size: 14px;
  position: absolute;
  top: -3px;
  left: 2px;
}


.filter_checklist .filter_list::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
	border-radius: 10px;
	background-color: rgba(0,0,0,.3);
}
.filter_checklist .filter_list::-webkit-scrollbar {
	width: 12px;
	background-color: rgba(0,0,0,.3);
}
.filter_checklist .filter_list::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.6);
	background-color: #101010;
}


/* Listing */

.lib_listing {
  display: flex;
  justify-content: space-between;
}

.lib_sub {
  display:flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width:100%;
  margin-bottom: 20px;
}
.lib_sub > a {
  background-color: rgba(81,191,189,.2);
  color: var(--text-color);
  margin: 0 5px 10px;
  padding: 5px 10px;
  border-radius: 15px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
}
.lib_sub > a.selected,
.lib_sub > a:hover,
.lib_sub a.active {
  background-color: rgba(81,191,189,1);
  color: var(--primary-color-dark);
}
.lib_sidebar {
  width: calc(95% / 4 * 1);
}

.lib_main {
  width: calc(95% / 4 * 3);
}

.lib_main .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.lib_main .list .book {
  width: calc(80% / 3);
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
} 

.pages {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #fff;
  margin:30px 0 0;
  padding: 15px 0 10px;
  font-size: 1.1em;
}

.pages a, .pages .current {
  margin: 5px;
  color: var(--text-color);
  padding: 5px;
}
.current {
  font-weight: bold;
}
.current::before { content: '[ '; }
.current::after { content: ' ]'; }
.current::before,
.current::after { 
  color: var(--primary-color);
  font-weight: bold;
}
.pages a i {
  color: var(--secondary-color);
}
.pages + .total {
  text-align: center;
  font-style: italic;
  margin-bottom:30px;
}

/* Fiche du livre */

.bookcard {
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.bookcard .cover {
  border: 1px solid rgba(255,255,255,.2);
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  width: 45%;
}
.bookcard .infos {
  width: 50%;
}
.bookcard .infos .title {
  font-size: 3rem;
  line-height: 3.5rem;
  margin-bottom: 5px;
}
.bookcard .infos .series {
  font-size: 1.8rem;
}
.bookcard .infos .authors {
  margin-top: 20px;
  font-size: 1.8rem;
  line-height: 2.4rem;
}
.bookcard .sub_infos {
  border-top: 1px solid rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(255,255,255,.4);
  margin: 20px 0;
  padding: 20px 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 1.6rem;
}
.bookcard .sub_infos > div:not(:last-child) {
  margin-right: 10px;
  border-right: 1px solid var(--primary-color);
  padding-right: 10px;
}
.bookcard .description {
  text-align: justify;
  line-height: 2rem;
}
.bookcard .series_tags {
  margin-top: 25px;
  font-style: italic;
  font-size: 1.2rem;
}
.bookcard .more {
  width:100%;
  margin-top: 30px;
  padding: 30px 0;
  display:flex;
  justify-content: space-between;
}
.bookcard .more > div {
  width: calc(95% / 3);
  background-color: rgba(50,50,50,0.3);
  border-radius: 8px;
  overflow: hidden;
}
.bookcard .more > div > div:first-child {
  font-weight: bold;
  text-transform: uppercase;
  background-color: #101010;
  padding: 5px 0;
  text-align:center;
}
.bookcard .more > div > div:last-child {
  padding: 10px;
}

.selections {
  border-top: 1px solid rgba(255,255,255,.4);
  padding: 30px 0;
}
.selections > div {
  margin-bottom: 40px;
}
.selections > div > div:first-child {
  width:100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}
/* Footer */

.footer {
  width: 100%;
  padding: 15px calc((100% - var(--site-w)) / 2);
  background-color: #101010;
  text-align: center;
}