/* FAQ - Klorel - Franck Kosellek */

/*
 * Le thème stylise tout div de .cms-content (.cms-content>div : marges -60px ;
 * .cms-content div div : texte blanc, padding 45px, largeur 75 %, liens en boutons ;
 * .cms-content div img : images en absolu). Remises à zéro ci-dessous, limitées à la FAQ
 * et plus spécifiques que les règles du thème, y compris pour le HTML saisi dans l'éditeur.
 */
.cms-content.klfaq > div,
.cms-content.klfaq .klfaq-answer,
.cms-content.klfaq .klfaq-answer div,
.cms-content.klfaq .klfaq-intro div {
  position: static;
  z-index: auto;
  overflow: visible;
  margin: 0;
  padding: 0;
  width: auto;
  font-family: 'FuturaStd-Medium', sans-serif;
  font-size: 15px;
  color: #4d4640;
}

.cms-content.klfaq .klfaq-answer p,
.cms-content.klfaq .klfaq-intro p {
  max-width: none;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 25px;
  letter-spacing: 0.3px;
  color: #4d4640;
}

.cms-content.klfaq .klfaq-answer p:last-child,
.cms-content.klfaq .klfaq-intro p:last-child {
  margin-bottom: 0;
}

.cms-content.klfaq .klfaq-answer a,
.cms-content.klfaq .klfaq-intro a {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font-size: inherit;
  text-transform: none;
  letter-spacing: inherit;
  color: #b3681c;
  text-decoration: underline;
}

.cms-content.klfaq .klfaq-answer img,
.cms-content.klfaq .klfaq-intro img {
  position: static;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- */
/* Mise en page                                                     */
/* ---------------------------------------------------------------- */

.cms-content.klfaq {
  max-width: 900px;
  counter-reset: klfaq;
}

.cms-content.klfaq > .klfaq-intro {
  margin: 0 auto 30px;
  text-align: center;
}

/* Carte question / réponse */
.klfaq-item {
  position: relative;
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid #e9e3dd;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(37, 37, 37, .04);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.klfaq-item:hover {
  border-color: #d8cbbf;
  box-shadow: 0 6px 18px rgba(37, 37, 37, .07);
}

.klfaq-item[open]:not(.is-closing) {
  border-color: #b3681c;
  box-shadow: inset 3px 0 0 #b3681c, 0 8px 24px rgba(179, 104, 28, .12);
}

/* Question */
.klfaq-question {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 76px 24px 72px;
  font-family: 'FuturaStd-Medium', sans-serif;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 0.4px;
  color: #252525;
  transition: color .2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.klfaq-question::-webkit-details-marker {
  display: none;
}

.klfaq-question::marker {
  content: '';
}

/* numéro 01, 02… */
.klfaq-question:before {
  counter-increment: klfaq;
  content: counter(klfaq, decimal-leading-zero);
  position: absolute;
  left: 28px;
  top: 25px;
  font-family: 'FuturaStd-Heavy', sans-serif;
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 1px;
  color: #b3681c;
}

/* pastille + / − */
.klfaq-question:after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 1px solid #b3681c;
  border-radius: 50%;
  box-sizing: border-box;
  font-family: 'FuturaStd-Book', sans-serif;
  font-size: 21px;
  line-height: 29px;
  text-align: center;
  color: #b3681c;
  background: #fff;
  transition: background-color .25s ease, color .25s ease, transform .35s ease;
}

.klfaq-question:hover {
  color: #b3681c;
}

.klfaq-question:hover:after {
  background: #faf3ec;
}

.klfaq-item[open]:not(.is-closing) > .klfaq-question {
  color: #b3681c;
}

.klfaq-item[open]:not(.is-closing) > .klfaq-question:after {
  content: '\2212';
  background: #b3681c;
  color: #fff;
  transform: rotate(180deg);
}

.klfaq-question:focus {
  outline: none;
}

.klfaq-question:focus-visible {
  outline: 2px solid #b3681c;
  outline-offset: -2px;
  border-radius: 4px;
}

/* Réponse (la hauteur de .klfaq-answer est animée par klfaq.js) */
.cms-content.klfaq .klfaq-answer {
  overflow: hidden;
}

.cms-content.klfaq .klfaq-answer .klfaq-answer-inner {
  margin: 0 28px;
  padding: 18px 0 24px 44px;
  border-top: 1px solid #f0e9e2;
}

/* Bouton final */
.klfaq-cta {
  text-align: center;
  margin-top: 40px;
}

.cms-content.klfaq .klfaq-cta a.cms_link1 {
  height: auto;
  padding: 15px 34px !important;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
  transition: background-color .2s ease;
}

.klfaq-empty {
  text-align: center;
}

@media (max-width: 767px) {
  .klfaq-item {
    margin-bottom: 10px;
  }

  .klfaq-question {
    padding: 18px 60px 18px 18px;
    font-size: 15px;
    line-height: 22px;
  }

  .klfaq-question:before {
    position: static;
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 16px;
  }

  .klfaq-question:after {
    right: 16px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    line-height: 27px;
  }

  .cms-content.klfaq .klfaq-answer .klfaq-answer-inner {
    margin: 0 18px;
    padding: 14px 0 18px;
  }

  .cms-content.klfaq .klfaq-answer p {
    font-size: 14px;
    line-height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .klfaq-item,
  .klfaq-question,
  .klfaq-question:after {
    transition: none;
  }
}
