/* === STRUCTURE GLOBALE === */
.temoignages-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 40px;
}

.wave-separator {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* === SECTION TÉMOIGNAGES === */
#temoignages-section {
  text-align: center;
  background-color: #f4efff;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#temoignages-section::before,
#temoignages-section::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 90%;
  background-color: #a88ff0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(5deg);
  border-radius: 12px;
  z-index: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#temoignages-section::after {
  background-color: #805cf3;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.temoignages-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.temoignage-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  flex-direction: row;
  z-index: 2;
}

.temoignage-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 60px 40px;
  margin: 0 auto;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  z-index: 1;
  animation: fadeUp 0.5s ease-in-out;
}

.temoignage-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  animation: logo-zoom 0.6s ease-in-out;
}

.temoignage-card p {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
}

.temoignage-card .auteur {
  font-weight: bold;
  font-size: 1rem;
  color: #222;
}

.temoignage-card .fonction {
  font-size: 0.9rem;
  color: #777;
}

.temoignage-pagination {
  margin-top: 20px;
  z-index: 2;
}

.temoignage-pagination span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.temoignage-pagination span.active {
  background: #6c5ce7;
  transform: scale(1.2);
}

.nav-arrow {
  background: none;
  border: none;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 3;
}

.nav-arrow:hover {
  transform: scale(1.3);
  color: #000;
}

/* === EFFETS === */
@keyframes logo-zoom {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FORMULAIRE AVIS === */
/* === Bouton d'accès rapide au formulaire === */
.avis-button-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: 40px;
  margin-top: -40px;
  margin-bottom: 20px;
  z-index: 3;
  position: relative;
}

.avis-button {
  background: linear-gradient(135deg, #805cf3, #a88ff0);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(128, 92, 243, 0.3);
  transition: all 0.3s ease-in-out;
}

.avis-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(128, 92, 243, 0.4);
}

.avis-form {
  position: relative;
  background-color: #f4efff;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.avis-form::before,
.avis-form::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 100%;
  background-color: #a88ff0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(5deg);
  border-radius: 16px;
  z-index: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.avis-form::after {
  background-color: #805cf3;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.avis-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  z-index: 2;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.avis-contact-info {
  flex: 1 1 300px;
  background: #805cf3;
  color: white;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.avis-form-fields {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
}

.avis-form-fields input,
.avis-form-fields textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.avis-form-fields input:focus,
.avis-form-fields textarea:focus {
  border-color: #805cf3;
  background-color: #fff;
  outline: none;
}

.avis-form-fields button {
  background: linear-gradient(135deg, #805cf3, #a88ff0);
  color: white;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.avis-form-fields button:hover {
  background: #6a49da;
}

/* === BOUTONS TOGGLE TYPE === */
.type-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
}

.toggle-option {
  padding: 12px 24px;
  border-radius: 40px;
  background: white;
  color: #444;
  font-weight: bold;
  border: 2px solid #805cf3;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(128, 92, 243, 0.1);
}

.toggle-option.active {
  background: linear-gradient(to right, #a88ff0, #805cf3);
  color: white;
  box-shadow: 0 6px 24px rgba(128, 92, 243, 0.35);
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease-in-out;
}

.modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: zoomFade 0.4s ease-in-out;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

@keyframes zoomFade {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .temoignage-container,
  .avis-form-wrapper,
  .form-row {
    flex-direction: column;
  }

  .temoignage-card {
    width: 100%;
    padding: 40px 20px;
  }

  .avis-button-wrapper {
    justify-content: center;
    padding: 0;
    margin-top: 0;
  }

  #temoignages-section::before,
  #temoignages-section::after,
  .avis-form::before,
  .avis-form::after {
    display: none;
  }
}
