:root {
  --phase-1-color: #22df69;
  --phase-2-color: #1ac197;
  --phase-3-color: #15b4b6;
  --background-color-arrow: #e8e8e8;
  --modal-z-index: 999999;
}

.noous-arrow-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Conteneur pour englober la flèche et sa pointe */
.noous-arrow-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.noous-arrow {
  position: relative;
  width: calc(100% - 120px);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
  height: 120px;
  background-image: linear-gradient(90deg, #22df69 0%, #15b4b6 100%) !important;
  border-radius: 8px 0 0 8px;
}

.noous-arrow-tip {
  position: absolute;
  right: -120px;
  top: -90px;
  width: 120px;
  height: 300px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(90deg, #15b4b6 0%, #15b4b6 100%);
}

/* Style pour le logo */
.noous-arrow-tip img {
  width: 60%; /* Ajustez selon la taille souhaitée */
  height: auto;
  margin-left: -20%; /* Pour décaler légèrement le logo vers la gauche */
}

/* Phases */
.noous-arrow-phase {
  flex: 1;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.noous-arrow-phase[data-phase="1"] h3 {
  background: linear-gradient(to right, #22df69, #1dd083);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.noous-arrow-phase[data-phase="2"] h3 {
  background: linear-gradient(to right, #1dd083, #19c39c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.noous-arrow-phase[data-phase="3"] h3 {
  background: linear-gradient(to right, #19c39c, #15b4b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phase-content {
  background-color: white;
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  word-wrap: break-word; /* Permet aux longs mots de se couper */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.phase-content .icon img,
.phase-content .icon svg {
  width: auto;
  max-height: 40px;
  display: inline-block;
  height: auto;
}

.phase-content h3 {
  font-size: clamp(1.3em, 2vw, 1.1em);
  font-weight: 600;
  margin: 0;
  padding-bottom: 0;
}

.phase-content h2 {
  color: inherit;
}

.noous-arrow-phase:hover .phase-content {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: var(--background-color-arrow);
}

/* Nouveau conteneur de modales */
.noous-modals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 999999;
}

/* Modifications des styles de modal existants */
.noous-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.noous-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.noous-modal[aria-hidden="false"] .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* first modal */
#modal-phase-1 .modal-content {
  background-color: var(--background-color-arrow);
  border-top: 10px solid var(--phase-1-color);
  border-bottom: 10px solid var(--phase-1-color);
}

/* second modal */
#modal-phase-2 .modal-content {
  background-color: var(--background-color-arrow);
  border-top: 10px solid var(--phase-2-color);
  border-bottom: 10px solid var(--phase-2-color);
}

/* third modal */
#modal-phase-3 .modal-content {
  background-color: var(--background-color-arrow);
  border-top: 10px solid var(--phase-3-color);
  border-bottom: 10px solid var(--phase-3-color);
}

.noous-modal.active {
  visibility: visible;
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: var(--background-color-arrow);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-height: 90vh;
  max-width: 600px;
  border-radius: 8px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
  z-index: calc(var(--modal-z-index) + 1);
}

.noous-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
  z-index: calc(var(--modal-z-index) + 2);
}

.close-modal:hover {
  background-color: #e0e0e0;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-body li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-body li::before {
  content: url("https://www.noous.co/wp-content/uploads/2023/05/unlimited-list.png");
  margin-right: 15px;
}

.modal-body li:last-child {
  margin-bottom: 0;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h2 {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .noous-arrow {
    width: 100%;
    height: auto;
    margin-bottom: 120px;
    flex-direction: column;
    border-radius: 8px 8px 0 0;
    background-image: linear-gradient(
      180deg,
      #22df69 0%,
      #15b4b6 100%
    ) !important;
  }

  .noous-arrow-tip {
    top: -48%;
    right: 50%;
    transform: translateX(50%);
    width: 540px;
    height: 180px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background-image: linear-gradient(180deg, #22df69 0%, #22df69 100%);
  }

  .noous-arrow-phase[data-phase="3"] {
    order: 1;
  }

  .noous-arrow-phase[data-phase="2"] {
    order: 2;
  }

  .noous-arrow-phase[data-phase="1"] {
    order: 3;
  }

  .noous-arrow-tip img {
    width: 30%;
    height: auto;
    margin-left: 0%;
  }

  .phase-content {
    padding: 4px;
    justify-content: center;
  }

  .noous-arrow-phase {
    width: 100%;
    max-width: 200px;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .noous-arrow {
    padding: 15px;
  }

  .noous-arrow-tip {
    top: -32%;
    right: 50%;
    transform: translateX(50%);
    width: 360px;
    height: 120px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background-image: linear-gradient(180deg, #22df69 0%, #22df69 100%);
  }

  .phase-content h3 {
    font-size: 1em;
  }

  .modal-content {
    width: 80%;
    margin: 10% auto;
  }
}
