/*
 Theme Name:     Helene Mahieu Gestalt
 Author:         hery2d
 Author URI:     https://github.com/hery2d
 Template:       ddwpbase
 Version:        1.0.0
 Description:    A Child Theme built for DD WPBase
*/

:root {
  --beige: #fffbf4;
  --accent-color: #b17e6c;
  --section-alt-bg: white;
  --section-alt-text-color: #333333;
  --section-alt-link-color: var(--accent-color);
}

/* HOMEPAGE */

.home-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.home-subcontainer {
  width: 50%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  box-sizing: border-box;
}

.home-subcontainer.home-img {
  height: 50dvh;
  position: relative;
  z-index: 1;
  align-self: stretch;
}

.home-subcontainer.home-img img {
  z-index: -1;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.home-subcontainer.home-content {
  padding: 50px;
  background-color: var(--beige);
}

.home-subcontainer.home-content > * {
  max-width: 480px;
}

/* CONTENT_SIMPLE */

.content_simple {
  padding: 0 0 56px 0;
}

.content_simple .section-content > p {
  width: 100%;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  :root {
    --section-padding-x: 30px;
  }

  #close_keywords {
    display: block;
    margin-bottom: 84px;
  }

  #close_keywords.hidden {
    display: none;
  }

  .book-list-mob {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .book-list-desk {
    display: none;
  }

  .content_simple {
    padding: 27px 0;
  }

  .content_simple .section-content img {
    object-fit: contain;
    max-width: 100%;
  }

  body:not(.home) section {
    padding: 50px var(--section-padding-x);
  }

  #previous-book,
  #next-book {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
  }

  #previous-book {
    left: 20px;
  }

  #next-book {
    right: 20px;
  }

  #booklist-slider,
  #booklist-slider-avancement {
    display: flex;
    align-items: center;
  }

  #booklist-slider {
    width: 100%;
    height: 3px;
    background-color: #e6e0d9;
  }

  #booklist-slider-avancement {
    height: 100%;
    width: 0;
    transition: all 0.3s ease-in-out;
    background-color: #5c5c5c;
  }

  footer {
    display: none;
  }

  .home-container {
    flex-direction: column;
    justify-content: flex-start;
  }

  .home-subcontainer .vertical-line {
    display: none;
  }

  .home-content .logo-title {
    font-size: 2em !important;
  }

  .home-subcontainer {
    width: 100%;
    height: 50%;
    padding: 20px 50px !important;
    min-height: unset;
    display: block;
  }

  .home-subcontainer.home-content {
    text-align: center;
  }

  .home-quote {
    font-size: 1.3em !important;
  }

  .home .more-books {
    margin-bottom: 65px;
  }
  .home .header-logo {
    margin-bottom: 45px;
    margin-top: 25px;
  }

  .home-quote-author {
    font-size: 0.8em !important;
  }

  body.home footer {
    display: none;
  }

  #next-quote {
    margin-top: 0;
  }

  .secondary-menu {
    flex-direction: column;
    border: none;
    margin-bottom: 27px;
  }

  .secondary-menu li {
    width: 100%;
    text-align: center;
    border-top: 1px solid #e6e0d9;
    padding: 8px 0px;
  }

  .secondary-menu li:last-child {
    border-bottom: 1px solid #e6e0d9;
  }

  .keywords-cloud {
    width: 100vw;
  }

  .keyword-cloud-container {
    width: 150px !important;
  }

  .keyword {
    font-size: 1.1em !important;
  }

  .keywords-cloud .keywords-secondary-container {
    transition: all 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    max-width: fit-content;
    max-width: -moz-max-content !important;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    flex-wrap: wrap;
    align-content: center;
  }
  .keywords-cloud .secondary-keyword {
    padding: 0 45px;
    margin: 10px 0;
  }

  .keyword-pole {
    font-size: 0.6em !important;
  }

  .page-title {
    font-size: 40px !important;
    line-height: 32px;
    text-align: center;
    margin-bottom: 70px;
  }

  #page > div {
    overflow-x: hidden;
  }

  .section-subtitle {
    max-width: 150px;
    margin-left: 0;
    font-size: 23px;
  }

  .section-content:not(.column) > div,
  .editorial-content > div:not(.section-portraits) {
    flex-direction: column;
  }

  .section-content:not(.column) > div img,
  .editorial-content > div img {
    margin-bottom: 20px;
  }

  .books-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100vw;
    transition: all 0.3s ease-in-out;
    margin-left: -30px;
  }

  .books-list .book-container {
    width: 100vw !important;
    min-width: 100vw;
    max-width: unset;
    box-sizing: border-box;
    padding: 10px 0;
    margin: 15px 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ressources .section-1 .section-content {
    align-items: center;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  #close_keywords {
    display: block;
    margin-bottom: 84px;
  }

  #close_keywords.hidden {
    display: none;
  }

  #site-navigation {
    max-width: 100%;
  }

  .home-container {
    flex-direction: column;
    height: 100vh;
  }

  .home-subcontainer .vertical-line {
    display: none;
  }

  .home-content .logo-title {
    font-size: 24px !important;
  }
  #site-navigation {
    position: absolute;
    transform: translatex(-200vw);
  }

  .home-subcontainer {
    width: 100%;
    height: 50%;
    padding: 20px 50px !important;
    min-height: unset;
  }
  .home .header-logo {
    margin-bottom: 65px;
    margin-top: 25px;
  }
  .home .more-books {
    margin-bottom: 65px;
  }
  .home .header-logo {
    margin-bottom: 45px;
  }
}
