/* Page « FAQ » */
.faq {
  h1 {
    font-size: 19px;
    color: var(--noir);
    margin: 10px 0 5px;
  }
  h2 {
    font-weight: bold;
    color: #333;
    font-size: 19px;
  }
  p {
    font-size: 15px;
  }
  a {
    color: var(--orange);
  }
  .entete {
    .titre {
      border-bottom: 3px solid var(--orange);
      padding-bottom: 10px;
      margin-bottom: 40px;

      .sous-titre {
        font-size: 12px;
        font-style: italic;
      }
    }
    .text {
      h2 {
        margin-bottom: 20px;
        font-size: 19px;
      }
    }
  }
  .contenu {
    padding-top: 100px;
  }
  .sommaire {
    display: flex;
    flex-direction: column;
    margin: 20px 12px 40px;
    padding: 25px 20px 15px 20px;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    h2 {
      margin-top: 0;
      padding: 0;
      text-align: center;
      margin-bottom: 20px;
      font-size: 19px;
    }
    a {
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      &:hover {
        text-decoration: underline;
      }
    }
  }
  .pages-utiles .liste {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 3px solid var(--orange);
    ul {
      margin-bottom: 0;
      list-style: disc;
    }
    li {
      margin-bottom: 5px;
    }
  }
  .questions {
    details {
      margin-bottom: 5px;
      padding: 0;
      overflow: hidden;
      border: 1px solid #ddd;
      border-radius: 12px;
      &:first-of-type {
        border-top: 1px solid #ddd;
      }
    }
    summary {
      padding: 10px 15px;
      line-height: 22px;
      background: #f2f2f2;
      font-size: 14px;
      font-weight: 400;
      &:hover {
        color: var(--orange);
      }
    }
    /* Filet sous la question seulement quand elle est ouverte. */
    details[open] summary {
      border-bottom: 1px solid rgb(221, 221, 221);
    }
    .reponse {
      padding: 15px;
      color: #333;
      font-weight: 400;
    }
  }
  .groupe {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
    align-items: center;
  }

  .pages-utiles {
    p {
      margin-bottom: 10px;
    }
    ul {
      padding-left: 25px;
    }
  }

  /* Mobile : moins d'espace au-dessus du contenu. */
  @media (max-width: 768px) {
    .contenu {
      padding-top: 40px;
    }
    .groupe {
      h2 {
        margin-bottom: 20px;
      }
    }
  }
}
