/* Formulaires premium — évaluation & avis */

@keyframes ic-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section--evaluation {
  position: relative;
  overflow: hidden;
}

.section--evaluation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 10% 0%, rgba(34, 197, 94, 0.12), transparent 55%);
  pointer-events: none;
}

.eval-hero {
  position: relative;
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  animation: ic-fade-up 0.55s ease-out both;
}

.eval-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.eval-hero__badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.eval-hero h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  letter-spacing: -0.35px;
}

.eval-hero__lead {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.eval-service-banner {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.eval-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eval-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.eval-trust svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.form--premium {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  animation: ic-fade-up 0.6s ease-out 0.08s both;
}

.form--compact {
  padding: 18px 16px 20px;
  animation-delay: 0.12s;
}

.form__fieldset {
  border: none;
  margin: 0 0 22px;
  padding: 0;
}

.form__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-weight: 750;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form__legend svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.form__grid {
  display: grid;
  gap: 12px;
}

.form__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form--premium label {
  margin-bottom: 0;
}

.form--premium label > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form__hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.form__check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form__check-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(7, 18, 32, 0.45);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.form__check-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(7, 18, 32, 0.65);
}

.form__check-card:has(input:checked) {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-1px);
}

.form__check-card input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form__check-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.form__check-card small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted-2);
  font-weight: 400;
}

.form__grid--full {
  grid-column: 1 / -1;
}

.form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin: 18px 0 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.form__privacy svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.form__privacy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.form__submit-wrap {
  display: grid;
  gap: 12px;
}

.btn--evaluate {
  padding: 16px 22px;
  font-size: 1.05rem;
  width: 100%;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.28);
}

.btn--evaluate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form__status {
  min-height: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form__status--error {
  color: #f87171;
}

.form__status--success {
  color: var(--accent);
}

.form__status--loading {
  color: var(--muted);
}

/* Avis — section secondaire */
.section--reviews .section__head h2 {
  font-size: 1.35rem;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.reviews-aside {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  animation: ic-fade-up 0.55s ease-out 0.1s both;
}

.reviews-aside h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.reviews-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-stars label {
  margin: 0 !important;
}

.rating-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-stars .rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(7, 18, 32, 0.45);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.rating-stars input:checked + .rating-star,
.rating-stars input:focus-visible + .rating-star {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.15);
  transform: scale(1.05);
}

.rating-stars label:hover .rating-star {
  border-color: rgba(34, 197, 94, 0.35);
}

#feedback:target,
#evaluation:target {
  scroll-margin-top: calc(var(--sticky-cta-height) + 12px);
}

@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .form__grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .form--premium {
    padding: 16px 14px 18px;
  }
  .form__grid--2,
  .form__grid--3,
  .form__check-grid {
    grid-template-columns: 1fr;
  }
  .btn--evaluate {
    padding: 15px 18px;
  }
}

/* ——— Formulaire multi-étapes (wizard) ——— */

@keyframes wizard-step-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizard-step-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes wizard-success-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.form-wizard {
  overflow: hidden;
}

.form-wizard--done .wizard-shell {
  display: none;
}

.wizard-shell {
  display: grid;
  gap: 20px;
}

.wizard-progress {
  display: grid;
  gap: 10px;
}

.wizard-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
}

.wizard-progress__pct {
  color: var(--accent);
}

.wizard-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wizard-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-dots__item {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted-2);
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.wizard-dots__item span {
  display: block;
}

.wizard-dots__item.is-active {
  color: var(--accent);
  background: rgba(34, 197, 94, 0.1);
}

.wizard-dots__item.is-done {
  color: var(--muted);
}

.wizard-viewport {
  position: relative;
  min-height: 280px;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
  animation: wizard-step-in 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.wizard-step.is-leaving {
  display: block;
  animation: wizard-step-out 0.22s ease-in both;
}

.wizard-step__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.wizard-step__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.wizard-step__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
}

.wizard-step__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.wizard-hint {
  margin: 4px 0 10px;
}

.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  padding-top: 4px;
}

.wizard-nav__prev {
  flex: 0 1 auto;
}

.wizard-nav__next,
.wizard-nav .btn--evaluate-final {
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}

.btn--evaluate-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.35);
}

.btn--evaluate__main {
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.2;
}

.btn--evaluate__sub {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}

.wizard-reassure {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.wizard-reassure li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.wizard-reassure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.wizard-recap {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.wizard-recap__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.wizard-recap__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text);
}

.wizard-success {
  display: none;
  text-align: center;
  padding: 36px 20px;
}

.wizard-success.is-visible {
  display: block;
  animation: wizard-success-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.wizard-success__ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  border: 2px solid rgba(34, 197, 94, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.wizard-success__ring svg {
  width: 36px;
  height: 36px;
}

.wizard-success__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.wizard-success__text {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .wizard-dots__item span {
    font-size: 0.65rem;
  }

  .wizard-viewport {
    min-height: 240px;
  }

  .wizard-step__head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .wizard-step__icon {
    width: 36px;
    height: 36px;
  }

  .wizard-nav {
    flex-direction: column;
  }

  .wizard-nav__prev,
  .wizard-nav__next,
  .wizard-nav .btn--evaluate-final {
    width: 100%;
    min-width: 0;
  }

  .form--premium.form-wizard {
    padding: 14px 12px 16px;
  }

  .eval-trust {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eval-hero,
  .form--premium,
  .reviews-aside {
    animation: none;
  }
  .form__check-card:has(input:checked) {
    transform: none;
  }
  .wizard-step.is-active,
  .wizard-step.is-leaving,
  .wizard-success.is-visible {
    animation: none;
  }
  .wizard-progress__fill {
    transition: none;
  }
}
