/* =============================================================
   hmahieu-shared.css
   Règles communes aux thèmes hmahieu-gestalt et hmahieu-coaching.
   Les valeurs variables sont fournies par chaque child theme :
     --beige, --accent-color, --section-alt-bg, --section-alt-text-color,
     --section-alt-link-color (défaut: --section-alt-text-color)
   Variable interne (définie ici, pas par les child themes) :
     --section-padding-x  — padding horizontal des sections, réduit sur mobile
   ============================================================= */

/* BASE */

html {
  color-scheme: only light;
  background-color: var(--beige);
}

body {
  background-color: var(--beige);
}

:root {
  --section-padding-x: 56px;
}

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

.section-container {
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

/* SECTIONS COLORÉES */

section:has(.alt-section) {
  overflow-x: clip;
}

.alt-section {
  background: var(--section-alt-bg);
  padding: 85px 0;
  position: relative;
  margin: -85px 0;
}

.alt-section-right {
  padding: 85px 0 85px 85px;
  margin-left: -170px;
}

.alt-section-right .section-content {
  margin-left: 85px;
}

.alt-section:after {
  content: '';
  position: absolute;
  background: var(--section-alt-bg);
  height: 100%;
  width: 100%;
  top: 0;
}

.alt-section-left:after {
  left: -100%;
}

.alt-section-right:after {
  right: -100%;
}

.alt-section a,
.alt-section a:visited,
.alt-section p,
.alt-section span {
  color: var(--section-alt-text-color);
}

.alt-section .section-subtitle:before,
.alt-section .section-subtitle:after {
  background: var(--section-alt-text-color);
}

@media (max-width: 1080px) {
  .alt-section {
    width: calc(100% + var(--section-padding-x));
    margin: 0;
    padding: 50px var(--section-padding-x);
  }
  .alt-section-left {
    margin-left: calc(-1 * var(--section-padding-x));
  }
  .alt-section-right {
    margin-right: calc(-1 * var(--section-padding-x));
  }
  .alt-section-right .section-content {
    margin-left: 0;
  }
}

/* SECTION SUBTITLE */

.section-subtitle {
  position: relative;
  text-align: center;
  width: fit-content;
  width: -moz-fit-content;
  font-weight: 200;
  margin-bottom: 50px;
  max-width: 164px;
  font-size: 25px;
  line-height: 24px;
  margin-left: 0;
}

.section-subtitle:after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  margin: auto;
  bottom: -15px;
  height: 1px;
  width: 40px;
  background-color: var(--accent-color);
}

.section-subtitle:before {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  margin: auto;
  top: -15px;
  height: 1px;
  width: 40px;
  background-color: var(--accent-color);
}

/* SECTION CONTENT */

.section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-content.column {
  flex-direction: column;
}

.section-content * {
  max-width: 456px;
}

.editorial-content {
  width: 100%;
}

.section-content p,
.section-content text {
  font-weight: 300;
  line-height: 22px;
  font-size: 14px;
}

.section-portraits {
  max-width: 290px;
  margin: auto;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.section-portraits img {
  width: 32%;
  height: auto;
}

/* SECONDARY MENU */

.secondary-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 16px;
  border-top: 1px solid #e6e0d9;
  border-bottom: 1px solid #e6e0d9;
  width: fit-content;
  width: -moz-fit-content;
  margin: auto;
}

.secondary-menu li {
  list-style-type: none;
  margin: 0px 20px;
  padding: 20px 0px;
  position: relative;
}

.secondary-menu a {
  font-size: 9.5px;
  text-decoration: none;
  color: #333333;
}

.secondary-menu .active-section:after {
  content: '';
  height: 4px;
  width: 60%;
  background-color: var(--accent-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transition: all 0.3s ease-in-out;
}

/* SEE MORE */

.see-more {
  width: 100%;
  text-align: left;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.see-more p {
  display: flex;
  align-items: center;
  font-size: 9px;
  color: var(--accent-color);
  font-weight: 500;
}

.see-more svg {
  width: 20px;
  margin-right: 10px;
  border-right: 1px solid var(--accent-color);
  padding-right: 10px;
  box-sizing: content-box;
}

.alt-section .see-more p {
  color: var(--section-alt-link-color, var(--section-alt-text-color));
}

.alt-section .see-more svg {
  border-right-color: var(--section-alt-link-color, var(--section-alt-text-color));
}

/* HEADER */

.header-identity {
  background-color: white;
}

/* HOMEPAGE (éléments communs) */

.logo-title {
  font-size: 3em;
  margin: 0;
  text-align: center;
  font-weight: 100;
}

.home .header-logo {
  margin-bottom: 0;
}

.home-content .vertical-line {
  width: 0.8px;
  height: 100px;
  background-color: #333333;
  margin: 40px 0px;
}

.home-quotes {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.home-quote-container {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.home-quote-container.quote-active {
  opacity: 1;
}

.home-quote-container .home-quote {
  text-align: center;
  color: var(--accent-color);
  font-size: 27px;
  line-height: 30px;
  margin: 0px 0px 20px 0px;
}

#next-quote {
  margin-top: 20px;
  cursor: pointer;
}

.home-quote-author {
  font-size: 9.5px;
  line-height: 11px;
}

/* CONTENT_SIMPLE */

.page-title {
  font-size: 92px;
  font-weight: 200;
  margin-top: 0;
}

.content_simple:has(.secondary-menu) {
  padding-top: 56px;
}

.content_simple section {
  padding: var(--section-padding-x);
  display: flex;
  justify-content: center;
  width: 100%;
  height: fit-content;
}

.content_simple .section-content > p {
  padding: 10px 0;
  box-sizing: border-box;
  font-weight: 100;
}

.content_simple .section-content img {
  object-fit: contain;
}

.content_simple .section-document {
  display: flex;
  align-items: center;
  width: 100%;
}

/* KEYWORDS CLOUD */

.keywords-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 750px !important;
  margin: 70px 0px;
  position: relative;
}

.keywords-cloud .keyword-cloud-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  width: 250px;
}

.keywords-cloud .keyword-cloud-container p {
  color: var(--accent-color);
}

.keywords-cloud .keyword-cloud-container .keyword {
  text-transform: uppercase;
  font-size: 1.3em;
  font-weight: 100;
  margin: 0;
  z-index: 1;
}

.keywords-cloud .keyword-cloud-container .keyword.hidden,
.keywords-cloud .keyword-cloud-container .keyword-pole.hidden {
  opacity: 0.2;
}

.keywords-cloud .keywords-secondary-container {
  opacity: 0;
  pointer-events: none;
  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;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.keywords-cloud .keywords-secondary-container.visible-keywords {
  opacity: 1;
}

.keywords-cloud p.secondary-keyword {
  min-width: 120px;
  top: 0;
  left: unset;
  right: unset;
  color: #91807a;
  pointer-events: none;
  text-transform: uppercase;
  padding: 12px 45px;
  margin: -4px 0;
}

/* CONTENT_IMAGE */

.content-image {
  padding: var(--section-padding-x) 0px;
}

.content-image section {
  padding: var(--section-padding-x);
  display: flex;
  justify-content: center;
  width: 100%;
  height: fit-content;
}

.content-image .section-3 p {
  text-align: left;
  width: 100%;
}

/* INFOS PRATIQUES */

p.team-listing {
  display: flex;
  justify-content: center;
  max-width: unset;
  width: 100%;
  position: relative;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  font-weight: 100 !important;
  text-transform: uppercase;
  line-height: 15px;
  letter-spacing: 2px;
  margin-top: 80px;
}

p.team-listing:after {
  width: 60px;
  height: 1px;
  background-color: var(--accent-color);
  position: absolute;
  top: -10px;
  left: 0;
  content: '';
}

.alt-section p.team-listing:after {
  background-color: var(--section-alt-text-color);
}

/* RESSOURCES */

.ressources section {
  padding: var(--section-padding-x);
  display: flex;
  justify-content: center;
  width: 100%;
  height: fit-content;
}

.books-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin-top: 25px;
}

.ressource-list {
  margin-bottom: 64px;
}

.ressource-list:last-child {
  margin-bottom: 0;
}

.books-list .book-container {
  width: 100%;
  max-width: 200px;
  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;
}

.books-list .book-container img {
  width: 147px;
  height: 209px;
  box-sizing: border-box;
  box-shadow: 0px 0px 20px 1px rgba(119, 119, 119, 0.2);
  -moz-box-shadow: 0px 0px 20px 1px rgba(119, 119, 119, 0.2);
  -webkit-box-shadow: 0px 0px 20px 1px rgba(119, 119, 119, 0.2);
}

.books-list .book-container .author {
  text-transform: uppercase;
  font-size: 0.8em;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: #333333;
  line-height: 100%;
}

.books-list .book-container .book-title {
  font-size: 12px;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: #333333;
  font-style: italic;
  line-height: 14px;
}

.section-content p.book-categorie {
  text-align: center;
  font-weight: 500 !important;
  margin: 16px 0px 5px 0px;
  font-size: 14px;
  line-height: 18px;
}

.more-books {
  color: #333333;
  text-decoration: none;
  border: 1px solid #333333;
  padding: 8px 20px;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 12px;
  margin-top: 30px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: all 0.25s cubic-bezier(0.86, 0, 0.07, 1);
}

.more-books:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* FOOTER */

footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  background-color: var(--beige);
}

/* CONTRÔLES JS / ÉTATS */

#previous-book,
#next-book {
  display: none;
}

#booklist-slider,
#booklist-slider-avancement {
  display: none;
}

#books-more {
  display: none;
  opacity: 0;
  transition: all ease 0.25s;
}

#books-more.open {
  display: flex;
  opacity: 1;
}

#load_books {
  cursor: pointer;
}

#load_books.hide {
  visibility: hidden;
}

.book-list-mob {
  display: none;
}

.book-list-desk {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

#close_keywords {
  display: none;
}
