/* Animations d'ouverture/fermeture */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Classes d'animation */

.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;
}

.accordeon-header.active {
  transform: scale(1.02);
}

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

.accordeon {
  flex: 60%;
  overflow: hidden;
}

.accordeon-item {
  position: relative;
}

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

.titre-vertical {
  transform: rotate(-90deg);
  color: #112F55;
  font-family: D-DIN;
  font-size: 6.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.titre-vertical_mot-un {
  text-align: right;
}

.accordeon-header {
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-family: D-DIN;
  font-size: 2.0625rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2.3125rem; /* 112.121% */
  border-bottom: 1px solid #FFF;
  border-top: none;
  border-right: none;
  border-left: none;
  background-color: transparent;
  color: #FFF;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordeon-header.active {
  border-bottom: none;
}

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

.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;
}

.accordeon-item_right {
  flex-shrink: 0;
  max-width: 16rem;
  display: none;
}

.accordeon-item_right.visible {
  display: block;
}

.accordeon-item_right img {
  width: 100%;
  height: auto;
  z-index: 1000;
}

/* Responsive : image sous le contenu sur mobile */
@media (max-width: 768px) {
  .accordeon-item-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .accordeon-item_right {
    max-width: 100%;
  }
}