
.accordeon-content.opening {
  animation: slideDown 0.3s ease-out;
}

.accordeon-content.closing {
  animation: slideUp 0.3s ease-in;
}


/* Smooth transition pour le header */
.accordeon-header {
  transition: all 0.2s ease;
}


/* Smooth transition pour l'icône */
.accordeon-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordeon {
  width: 80%;
  max-width: 60rem;
  overflow: hidden;
}

.accordeon-item {
  position: relative;
}

.accordeon-item-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}


.accordeon-header {
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.9375rem;
  border-bottom: 1px solid var(--primary-900);
  border-top: none;
  border-right: none;
  border-left: none;
  background-color: transparent;
  color: var(--primary-900);
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.accordeon-header.active .accordeon-icon {
  transform: rotate(45deg);
  opacity: 1;
}

.accordeon-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordeon-item_left {
  flex: 1;
  min-width: 0;
}

.accordeon-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.1s ease;
  padding: 0 1rem;
}

.accordeon-content.open {
  display: block;
  max-height: 1000px;
  padding: 1rem;
  overflow: inherit;
}

.accordeon-content .accordeon-text {
  word-break: break-word;
  line-height: 1.6;
}




/* Responsive : image sous le contenu sur mobile */
@media (max-width: 768px) {
  .accordeon {
  width: 100%;
  overflow: hidden;
}

  .container.container-accordeon .accordeon-header,
  .container.container-accordeon .accordeon-content {
    padding: 1rem 0.2rem;
  }

   .container.container-accordeon {
    display: block;
    padding: 0;
  }
  .accordeon-item-wrapper {
    gap: 1rem;
    display: block;
  }


}