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

:root {
  --beige: #fdfcfb;
  --accent-color: #be8917;
  --section-alt-bg: var(--accent-color);
  --section-alt-text-color: white;
}

/* SECTIONS COLORÉES — texte blanc sur fond doré */

/* SECTION CONTENT — overrides coaching */

.section-content p,
.section-content .text {
  width: 100%;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.keywords-cloud .keyword-cloud-container p {
  width: auto;
}

/* FEATURED IMAGE */

.featured_image {
  padding: 17% 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* HOMEPAGE */

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

.home-container .header-logo .logo-subtitle {
  font-size: 14px;
  font-weight: 400;
  max-width: 200px;
  text-align: center;
}

.home-subcontainer {
  width: calc(50% - 148px);
  height: 100%;
  min-height: calc(100vh - 148px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  margin: 0 74px 0 0;
  padding: 74px 0;
  box-sizing: border-box;
}

.home-subcontainer.home-img {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  left: 0;
}

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

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

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

/* CONTENT_SIMPLE */

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

.content_simple .section-content > p {
  font-size: 100;
}

/* INFOS PRATIQUES */

#section-1 {
  padding-top: 40px;
}

/* FOOTER */

.home .footer-container a {
  color: white;
}

.home .footer-container a:visited * {
  color: white;
}

.home .footer-container .line {
  background-color: white;
}

/* RESPONSIVE */

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

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

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

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

  body:not(.home) section {
    padding: 25px var(--section-padding-x);
  }
  body:not(.home) .ressources section,
  body:not(.home) .content_simple 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;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url('./static/img/mobile-homepage.jpg');
  }

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

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

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

  .home-subcontainer.home-content {
    text-align: center;
    z-index: 1;
    margin: 0 auto 32px auto;
    padding: 32px 16px;
    min-width: inherit;
    width: calc(100% - 64px);
  }
  .home-subcontainer.home-img {
    z-index: -1;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: top left;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 0;
  }
  .home-subcontainer.home-img img {
    z-index: -1;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: top left;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    visibility: hidden;
  }

  .home-quote {
    font-size: 18px !important;
    line-height: 22px !important;
    margin: 0px 0px 10px 0px;
  }

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

  .header-logo h2 {
    font-size: 8px !important;
  }

  .home-quote-author {
    font-size: 9.5px !important;
    margin-bottom: 16px;
  }

  body.home footer {
    display: none;
  }

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

  .featured_image {
    padding: 30.5% 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;
  }
  .keywords-cloud {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px !important;
    margin: 70px 0px;
    position: relative;
  }

  .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 {
    flex-direction: column;
  }

  .section-content:not(.column) > div img {
    flex-direction: column;
    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: 1080px) {
  .header-logo {
    margin: auto;
  }
  .home-quotes {
    margin: 20px auto;
  }
  #booklist-slider {
    min-width: 100%;
  }
  .home-subcontainer.home-content {
    padding: 15% 16px;
  }

  .book-list-mob {
    display: none;
  }
  .book-list-desk {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  #previous-book,
  #next-book {
    display: none;
  }

  #booklist-slider,
  #booklist-slider-avancement {
    display: none;
  }
  .books-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin-top: 25px;
    margin-left: 0;
  }
  .books-list .book-container {
    width: 100% !important;
    max-width: 200px;
    min-width: inherit;
    box-sizing: border-box;
    padding: 10px;
    margin: 15px 30px;
    text-decoration: none;
    text-align: center;
  }
  .books-list .book-container a {
    display: flex;
    justify-content: center;
  }
}
