/*
 * @file
 * Styling for the FAQ paragraphs.
 */

/* Main container for the FAQ section */
.faq-container-paragraph {
  max-width: 1300px; /* Increased width for a modern look */
  margin: 3em auto; /* More vertical spacing */
}

/* Title above the FAQ list (e.g., "Thème 1") */
.faq-container__title {
  font-size: 28px;
  font-weight: 600;
  color: #4c4c58;
  margin-bottom: 15px !important;
}

/* Search bar is not in the new design, so it's hidden */
.faq-search {
  display: none;
}

/* Individual FAQ item (the whole Q&A block) */
.faq-item-paragraph {
  background-color: #eef0f2; /* Light grey background */
  margin-bottom: 10px; /* Space between items */
  overflow: hidden; /* To contain the border-radius */
  border: none; /* Remove previous borders */
}

.faq-item-paragraph:first-of-type {
  border-top: none; /* Ensure no top border */
}

/* The clickable question part */
.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem; /* Padding */
  font-size: 16px;
  font-weight: 600;
  color: #212529; /* Dark text */
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  display: flex; /* For alignment */
  justify-content: space-between; /* Pushes text and icon apart */
  align-items: center;
}

/* Arrow icon using a pseudo-element */
.faq-item__question::after {
  content: '';
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  margin-left: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1rem;
  background-position: center;
  transition: transform 0.2s ease-in-out;
}

/* Rotate the arrow when the question is active (answer is open) */
.faq-item__question.is-active::after {
  transform: rotate(-180deg);
}

/* The answer part that slides down */
.faq-item__answer {
  display: none; /* Hidden by default for JS toggle */
  padding: 0.5rem 1.5rem 1.0rem 1.5rem; /* Padding adjusted */
  line-height: 1.7;
  color: #495057; /* Lighter text color */
  font-size: 1em;
}

.faq-item__answer p {
  color:black;
  font-weight: 400;
}

.faq-item__answer p:first-child {
  margin-top: 0;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}