@import url('https://fonts.googleapis.com/css?family=Lato');
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

.faq-section {
  padding: 6rem 0;
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-header {
  margin-bottom: 3rem;
  text-align: center;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.faq-subtitle {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faq {
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  position: relative;
  border: 1px solid #E1E1E1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq label {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 60px;
  padding: 0;
  background-color: #FAFAFA;
  border-bottom: 1px solid #E1E1E1;
  transition: all 0.3s ease;
}

.faq label:hover {
  background-color: #f5f5f5;
}

.faq-heading {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 18px;
  transition: text-indent 0.2s;
  text-indent: 20px;
  color: #333;
  padding: 18px 30px 18px 20px;
  margin: 0;
  line-height: 1.4;
}

.faq-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #666;
  width: 95%;
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.faq input[type="checkbox"] {
  display: none;
}


label:before {
  display: none;
}


.faq .faq-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.5s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 2px solid rgba(0, 0, 0, 0.5);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  float: right;
  position: relative;
  top: -35px;
  right: 27px;
  transform: rotate(45deg);
}

.faq input[type="checkbox"]:checked + label > .faq-arrow {
  transition: transform 0.5s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: rotate(135deg);
}

.faq input[type="checkbox"]:checked + label {
  display: block;
  background: rgba(255, 255, 255, 255) !important;
  color: #333;
  height: auto;
  min-height: 150px; /* Hauteur minimale pour le contenu */
  padding-bottom: 20px;
  transition: all 0.8s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq input[type='checkbox']:not(:checked) + label {
  display: block;
  transition: height 0.8s;
  height: 60px;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
  .faq {
    width: 100%;
  }
  
  .faq-heading {
    font-size: 16px;
    padding-right: 40px;
  }
  
  .faq-text {
    font-size: 14px;
  }
}
