/* GENERIC ITEMS */

body, h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif !important;
}

body {
  font-size:16px;
  line-height: 1.8 !important;
  color: #383636;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  letter-spacing: 3px !important;
  font-weight: bolder;
  margin-top: 0px !important;
  margin-bottom: 24px !important;
  line-height: 1.3em !important;
  font-size: 2em !important;
  text-align: left !important;
}

h2 {
  font-size: 1.4em !important;
  letter-spacing: 2px !important;
}

.footer-link{
  text-decoration: none !important;
}

header {
  margin-bottom: 24px;
}

.section  {
  padding: 80px 4vw 24px 4vw !important;
}

@media (min-width: 1122px) {
  .section  {
    padding: 16px 4vw !important;
  }
}   

.bottom-section {
  padding: 32px 4vw !important;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.container-small {
  max-width: 1000px;
  margin: 0 auto;
}

a {
  text-decoration: none !important;
}

a:hover {
  font-weight: 600;
}

img {
  object-fit: cover;
}

p {
  margin-top: 0 !important;
  line-height: 1.8 !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px
}


/* NAVBAR */

#navbar-mobile {
  background-color: #eb5e35; 
  padding: 8px 12px; 
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1020;
  margin-bottom: 12px;
}

#navbar-large-top, #navbar-large-scroll {
  display: none;
}

@media (min-width: 1122px) {
  #navbar-large-top {
    display: block;
  }
  #navbar-mobile {
    display: none;
  }
}

#navbar-dropdown {
  margin-top: 120px;
}

.w3-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  text-decoration: none !important;
  vertical-align: middle;
  overflow: hidden;
  text-align: center;
}

.nav-link:hover {
  background-color: white !important;
  border-bottom: 1px solid orange !important;
  cursor: pointer;
}


.w3-bar .w3-bar-item {
  padding: 8px !important;
}

#burger-icon {
  font-size: 22px !important;
  color: white !important;
}

#burger-icon:hover {
  color: white !important;
  background-color: #eb5e35 !important;
}

/* BUTTONS */

.btn-flat {
  margin: 12px auto 0 auto;
  color: white;
  background-color: #e7562d;
  padding: 4px 24px;
  border-radius: 50px;
  font-weight: lighter;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  border: 1px solid #e7562d;
  cursor: pointer;
}

.btn-flat:hover {
  opacity: 1;
}

.btn-ghost {
  margin-top: 12px;
  color: #4A4A4A;
  border: 1px solid #4A4A4A;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: lighter;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-ghost:hover {
  opacity: 1;
}

/* FOOTER */

#footer-logo {
  width: 300px;
  margin-top: 24px;
}


/* CUSTOM PAGES */

.livres-grands, .livres-enfants, .cahiers {
  margin-bottom: 16px;
  width: 100%;
  object-fit: cover;
  border: 1px solid #ccc!important;
  cursor: pointer
}
.livres-grands {
  height: 200px;
}

.cahiers {
  height: 220px;
}

@media (min-width: 401px) {
  .livres-grands {
    height: 250px;
  }
  .cahiers {
    height: 250px;
  }
}

@media (min-width: 501px) {
  .livres-grands {
    height: 300px;
  }
  .cahiers {
    height: 370px;
  }
}

@media (min-width: 601px) {
  .livres-grands {
    height: 244px;
  }
  .cahiers {
    height: 220px;
  }
}

@media (min-width: 701px) {
  .livres-grands {
    height: 250px;
  }
}

@media (min-width: 701px) {
  .livres-grands {
    height: 300px;
  }
}

@media (min-width: 801px) {
  .livres-grands {
    height: 320px;
  }
  .cahiers {
    height: 300px;
  }
}

@media (min-width: 801px) {
  .livres-grands {
    height: 320px;
  }
}

@media (min-width: 901px) {
  .livres-grands {
    height: 340px;
  }
  .cahiers {
    height: 320px;
  }
}

@media (min-width: 993px) {
  .livres-grands {
    height: 320px;
  }
  .cahiers {
    height: 230px;
  }
}

@media (min-width: 1100px) {
  .livres-grands {
    height: 355px;
  }
  .cahiers {
    height: 240px;
  }
}

.livres-enfants {
  height: 220px;
}


.book-show-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
  margin-top: 24px;
}

.media-item {
  border: 1px solid #ccc!important;
  margin-bottom: 16px;
  padding: 16px !important;
  display: block;
  cursor: pointer;
}

.media-item img {
  object-fit: cover;
  margin-bottom: 4px;
}

.media-item h4 {
  font-size: 16px !important;
  font-weight: bold;
  margin: 0;
}

.media-item p {
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 8px;
}

.media-item .media-item-infos {
  padding: 8px;
}

.media-item:hover {
  transform: scale(1.02);
}

.article, .podcast {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center
}

@media (min-width: 601px) {
  .article {
    height: 150px;
  }
  .podcast {
    height: 140px;
  }
}



#avatar {
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}

@media (min-width: 601px) {
  #avatar {
    width: 300px;
    height: 300px;
  }
  #footer-logo {
    width: 400px;
  }
}

.w3-dropdown-content {
  border-radius: 4px;
  border: 1px solid #c5c4c4 !important;
  padding: 8px;
  box-shadow: none !important;
  z-index: 1000 !important;
}

.approche-illustration {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.show-cover {
  max-width: 100% !important;
  height: 300px !important;
  object-fit: cover;
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 601px) {
  .column-left {
    padding-right: 24px !important;
  }
  .column-right {
    padding-left: 24px !important;
  }
  .approche-illustration {
    min-height: 100%;
    height: auto !important;
  }
  .show-cover {
    max-width: 200px !important;
  }
}


@media (min-width: 901px) {
  .show-cover {
    max-width: 300px !important;
  }
}


.owl-carousel .owl-item img {
  height: 200px;
}

@media (min-width: 401px) {
  .owl-carousel .owl-item img {
    height: 300px;
  }
}

.owl-dots {
  display: none;
}

.home-cover-cards, .home-banner-cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}
 
@media(min-width: 1000px) {
  .home-cover-cards, .home-banner-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.home-cover-card {
  width: 100%; 
  margin: 12px auto;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  padding: 16px !important;
  max-width: 500px;
}

.home-cover-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.home-cover-img {
  border: 1px solid #ccc8c8;
  width: 110px;
  height: 180px
}

.bookshop-logo {
  width: 70px;
}

.author {
  color: #787c84;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8em;
}

#river-image {
  max-width: 200px;
  margin : 0 auto;
}


@media (min-width: 601px) {
 #river-image {
  max-width: inherit;
 }
}
