/**
 * FAQ 1 Section - Dioqa Model Corporate
 *
 * @package Dioqa_Model_Corporate
 */

.faq-1-section .row {
  align-items: stretch;
}

/* Image directe ou wrapper picture (Imagify) */
.faq-1-image-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* L'image à l'intérieur si picture wrapper */
.faq-1-image-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-1-content {
  height: 100%;
}

.faq-1-title h2,
.faq-1-title h3 {
  font-family: var(--font-heading);
  font-size: var(--display-md);
  color: var(--bs-gray-dark);
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
}

.faq-1-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: normal;
  color: var(--bs-gray-medium);
  margin-bottom: 0;
}

/* Accordion FAQ personnalisé */
.faq-1-accordion .accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 !important;
}

.faq-1-accordion .accordion-item:first-child {
  border-radius: 0 !important;
}

.faq-1-accordion .accordion-item:last-child {
  border-radius: 0 !important;
}

.faq-1-accordion .accordion-collapse {
  border-radius: 0 !important;
}

.faq-1-accordion .accordion-button {
  background-color: transparent;
  color: var(--bs-gray-dark);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  padding: 1.5rem 0;
  border: none;
  box-shadow: none;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Supprimer le ::after par défaut de Bootstrap */
.faq-1-accordion .accordion-button::after {
  display: none;
}

.faq-1-question-text {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  flex: 1;
}

.faq-1-chevron {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.faq-1-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--bs-primary);
  box-shadow: none;
}

.faq-1-accordion .accordion-button:not(.collapsed) .faq-1-chevron {
  transform: rotate(180deg);
}

.faq-1-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.faq-1-accordion .accordion-body {
  padding: 0 0 1.5rem 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bs-gray-medium);
  border-radius: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
  /* Réorganiser l'ordre : contenu d'abord, image en dessous */
  .faq-1-section .row {
    display: flex;
    flex-direction: column;
  }

  .faq-1-image {
    margin-bottom: 0;
    margin-top: 2rem;
    order: 2; /* Image en dessous */
  }

  .faq-1-section .row > div:not(.faq-1-image):not(:has(.faq-1-image)) {
    order: 1; /* Contenu en premier */
  }

  /* Alternative plus simple si les colonnes ont des classes spécifiques */
  .faq-1-section .row > .col-12.col-lg-4 {
    order: 2;
  }

  .faq-1-section .row > .col-12.col-lg-7 {
    order: 1;
  }
}
