/* ══════════════════════════════════════════
   PARCOURS D'ANALYSE — overlay plein écran
   ══════════════════════════════════════════ */

.af {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.af.open {
  opacity: 1;
  visibility: visible;
}

/* Cercle décoratif discret (cohérent avec le hero) */
.af::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.035;
  top: -240px;
  right: -200px;
  pointer-events: none;
}

/* ── BARRE SUPÉRIEURE ── */
.af__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 243, 240, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.af__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--green);
}

.af__bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.af__ref {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.af__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.af__close:hover {
  color: var(--green);
  border-color: var(--green);
}

/* Masquer le header pendant loading/result (on est proche de la conversion) */
.af[data-phase="loading"] .af__bar,
.af[data-phase="result"] .af__bar { display: none; }

/* ── BARRE DE PROGRESSION ── */
.af__progress {
  position: relative;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.af__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--green);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── ZONE DE CONTENU (scroll) ── */
.af__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 2.75rem 1.5rem;
}

.af__panel {
  width: 100%;
  max-width: 560px;
}

/* ── ÉTAPES ── */
.af-step { display: none; }

.af-step.active {
  display: block;
  animation: afStepIn 0.45s ease;
}

@keyframes afStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.af-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0.3rem 0 0.5rem;
}

.af-step__sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.85rem;
}

/* ── CHOIX (cartes sélectionnables) ── */
.af-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.af-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.af-choice:hover { border-color: var(--green-mid); }

.af-choice.selected {
  border-color: var(--green);
  background: var(--green-lt);
}

.af-choice__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green-lt);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.af-choice.selected .af-choice__icon {
  background: var(--green);
  color: var(--white);
}

.af-choice__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ── CHAMPS GROUPÉS (chips) ── */
.af-field { margin-bottom: 1.65rem; }

.af-field:last-child { margin-bottom: 0; }

.af-field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.af-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.af-chip {
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.af-chip:hover { border-color: var(--green-mid); }

.af-chip.selected {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ── CHAMPS TEXTE ── */
.af-input-group { margin-bottom: 1.1rem; }

.af-input-group:last-child { margin-bottom: 0; }

.af-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.af-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.af-input::placeholder { color: #b3b0aa; }

.af-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ── UPLOAD PHOTOS ── */
.af-upload {
  display: block;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.af-upload:hover,
.af-upload.drag {
  border-color: var(--green);
  background: var(--green-lt);
}

.af-upload__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-lt);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-upload__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0.85rem 0 0.25rem;
}

.af-upload__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.af-upload__browse { color: var(--green); text-decoration: underline; }

.af-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.af-thumb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.af-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-thumb__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── NOTE DE CONFIANCE ── */
.af-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--green-lt);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--green);
}

.af-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── RÉCAP PRIX ── */
.af-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.af-recap__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.af-recap__sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.af-recap__price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.af-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.af-divider::before,
.af-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ZONE NAVIGATION (bas) ── */
.af__nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.af__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.af__back {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.af__back[hidden] { visibility: hidden; }

.af__next {
  flex: 1;
  max-width: 280px;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* L'attribut [hidden] doit l'emporter sur .btn{display:inline-flex} */
.af__nav .btn[hidden] { display: none; }

.af__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.af__refund {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
}

/* ── ÉCRAN DE TRAITEMENT / SUCCÈS ── */
.af-done {
  display: none;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.af-done.active {
  display: block;
  animation: afStepIn 0.45s ease;
}

.af-loader {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.75rem;
}

.af-loader span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: afPulse 1.8s ease-out infinite;
}

.af-loader span:nth-child(2) { animation-delay: 0.6s; }
.af-loader span:nth-child(3) { animation-delay: 1.2s; }

.af-loader__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes afPulse {
  0%   { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1);   opacity: 0; }
}

.af-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: var(--green-lt);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: afPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes afPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.af-done__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.af-done__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.af-done__text strong { color: var(--green); }

/* ════════════════════════════════════════════
   PHASES (quiz · email · loading · result · payment · success)
   ════════════════════════════════════════════ */
.af-phase { display: none; }

.af-phase.active {
  display: block;
  animation: afStepIn 0.45s ease;
}

/* ── SÉLECTEUR VISUEL (stades) ── */
.af-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.af-visual {
  padding: 0.55rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.af-visual:hover { border-color: var(--green-mid); }

.af-visual.selected {
  border-color: var(--green);
  background: var(--green-lt);
}

.af-visual__art {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.af-visual__art svg { width: 100%; height: auto; display: block; }

.af-visual__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

/* ── CHIPS empilées (1 question / écran) ── */
.af-chips--stack {
  flex-direction: column;
  gap: 0.6rem;
}

.af-chips--stack .af-chip {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ── ÉCRAN CENTRÉ (loading / success) ── */
.af-finish {
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

/* ── LISTE D'ANALYSE PROGRESSIVE ── */
.af-anlist {
  list-style: none;
  max-width: 320px;
  margin: 1.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.af-anitem {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.4;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.af-anitem.done { opacity: 1; color: var(--text); }

.af-anitem__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.af-anitem.done .af-anitem__check {
  background: var(--green);
  color: var(--white);
}

/* ── CARTE RÉSULTAT ── */
.af-result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.af-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.af-result-card__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.af-result-card__val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}

.af-sev {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.af-sev__bar {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.af-sev__bar.on { background: var(--gold); }

.af-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.af-result-kpi {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.af-result-kpi span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.af-result-kpi strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ── EXTRAIT GRATUIT · ANALYSE DU PROFIL ── */
.af-synth {
  border-left: 3px solid var(--green);
  background: var(--green-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.af-synth__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.af-synth__icon { color: var(--green); display: flex; }

.af-synth__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
}

.af-synth__text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}

.af-synth__text strong { color: var(--green); font-weight: 600; }

/* ── PRONOSTIC À 3 MOIS ── */
.af-prog { margin-bottom: 1.5rem; }

.af-prog__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.af-prog__icon { color: var(--gold); display: flex; }

.af-prog__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.af-prog__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.82rem;
}

.af-prog__table th,
.af-prog__table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.af-prog__table thead th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: var(--bg);
}

.af-prog__col-bad { color: var(--danger); }
.af-prog__col-good { color: var(--green); }

.af-prog__table tbody tr:last-child td { border-bottom: none; }

.af-prog__rowlabel { font-weight: 500; color: var(--muted); }

.af-prog__bad {
  color: var(--danger);
  font-weight: 600;
  background: var(--danger-bg);
}

.af-prog__good {
  color: var(--green);
  font-weight: 600;
  background: var(--ok-bg);
}

.af-prog__note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ── APERÇU DU RAPPORT (thumbnails verrouillés) ── */
.af-preview { margin-bottom: 1.5rem; }

.af-preview__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}

.af-preview__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.af-thumb {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  padding: 0.4rem 0.35rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: hidden;
}

.af-thumb__bar {
  height: 5px;
  border-radius: 3px;
  background: var(--green);
  opacity: 0.85;
}

.af-thumb__lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  filter: blur(1.1px);
}

.af-thumb__lines i {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}

.af-thumb__lines i:nth-child(2) { width: 80%; }
.af-thumb__lines i:nth-child(3) { width: 92%; }
.af-thumb__lines i:nth-child(4) { width: 68%; }

.af-thumb__label {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BOUTONS ÉCRAN SUCCÈS ── */
.af-report-link {
  display: inline-flex;
  width: 100%;
  max-width: 320px;
  justify-content: center;
  margin: 0.5rem auto 0;
}

.af-done__later {
  display: block;
  margin: 0.7rem auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ── PLAN VERROUILLÉ (paywall) ── */
.af-plan__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.af-plan__locked {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.af-plan__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  min-height: 200px;
}

.af-plan__items li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}

.af-plan__items li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.af-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(244, 243, 240, 0.55) 0%, rgba(244, 243, 240, 0.96) 45%);
}

.af-lock__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-lock__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.af-lock__sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 300px;
}

.af-timer {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: 0.2rem;
}

.af-timer span { font-variant-numeric: tabular-nums; }

.af-unlock {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 540px) {
  .af-choices { grid-template-columns: 1fr; }
  .af__ref { display: none; }
  .af__stage { padding: 2rem 1.25rem; }
  .af__next { max-width: none; }
  .af-preview__thumbs { grid-template-columns: repeat(3, 1fr); }
  .af-prog__table { font-size: 0.76rem; }
  .af-prog__table th,
  .af-prog__table td { padding: 0.5rem 0.5rem; }
}

/* ── Description sous les visuels du quiz ── */
.af-visual__desc { display: block; margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }

/* ── Étape d'analyse active (spinner) + barre de progression ── */
.af-anitem.active { opacity: 1; color: var(--text); }
.af-anitem.active .af-anitem__check {
  background: transparent;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  animation: afSpin 0.7s linear infinite;
}
@keyframes afSpin { to { transform: rotate(360deg); } }
.af-anprog {
  max-width: 320px; height: 6px; margin: 1.5rem auto 0;
  background: var(--border); border-radius: 99px; overflow: hidden;
}
.af-anprog > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), #7bb88f);
  border-radius: 99px; transition: width 0.7s linear;
}

/* ── Écran d'analyse v2 (anneau %, étapes, le saviez-vous, avis) ── */
.af-an2 { max-width: 380px; margin: 0 auto; text-align: center; }
.af-an2__title { font-size: 1.5rem; margin: 0 0 0.4rem; }
.af-an2__sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.6rem; min-height: 1.3em; }
.af-an2__ringwrap { position: relative; width: 168px; height: 168px; margin: 0 auto 1.8rem; }
.af-an2__ring { width: 168px; height: 168px; transform: rotate(-90deg); }
.af-an2__track { fill: none; stroke: var(--border); stroke-width: 9; }
.af-an2__prog { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.af-an2__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: var(--text); }
.af-an2__stages { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1.4rem; }
.af-an2__stage { background: var(--green-lt); border: 1.5px solid transparent; border-radius: var(--radius); padding: 0.95rem 0.55rem; opacity: 0.5; transition: 0.3s; }
.af-an2__stage.active { opacity: 1; background: var(--white); border-color: var(--green); box-shadow: var(--shadow); }
.af-an2__stage.done { opacity: 1; }
.af-an2__stage__ic { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; color: var(--muted); }
.af-an2__stage__ic svg { width: 20px; height: 20px; }
.af-an2__stage.done .af-an2__stage__ic { background: #d6efe0; color: var(--green); }
.af-an2__stage.active .af-an2__stage__ic { background: var(--green-lt); color: var(--green); }
.af-an2__stage__t { font-size: 0.8rem; font-weight: 500; color: var(--text); line-height: 1.2; }
.af-an2__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.05rem 1.1rem; text-align: left; margin-bottom: 1rem; }
.af-an2__did__label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.af-an2__did__title { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.3rem; }
.af-an2__did__text { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.af-an2__data { display: flex; align-items: center; gap: 0.8rem; background: var(--green-lt); border: 1px solid #c0e4e0; border-radius: var(--radius); padding: 0.9rem 1rem; text-align: left; margin-bottom: 1rem; }
.af-an2__data__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; box-shadow: var(--shadow); }
.af-an2__data__title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.af-an2__data__text { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.af-an2__data__text strong { color: var(--text); }
.af-an2__review { text-align: left; }
.af-an2__review__top { display: flex; align-items: center; justify-content: space-between; }
.af-an2__review__stars { color: #f5a623; letter-spacing: 1px; font-size: 0.9rem; }
.af-an2__review__rate { font-size: 0.72rem; color: var(--green); font-weight: 600; }
.af-an2__review__quote { font-size: 0.9rem; color: var(--text); margin: 0.3rem 0; }
.af-an2__review__who { font-size: 0.76rem; color: var(--muted); }
.af-an2__dots { display: flex; justify-content: center; gap: 6px; margin: -0.3rem 0 1.1rem; }
.af-an2__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: 0.2s; }
.af-an2__dots span.on { background: var(--green); width: 16px; border-radius: 3px; }

/* Bouton « Continuer » pour les questions à choix multiples */
.af-multi-next { display: block; width: 100%; margin-top: 1rem; padding: 0.95rem; background: var(--green); color: #fff; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity .2s, background .2s; }
.af-multi-next:disabled { opacity: 0.4; cursor: not-allowed; }
.af-multi-next:not(:disabled):active { transform: scale(0.99); }

/* ── Avis dans le diagnostic gratuit ── */
.af-result-reviews { margin-top: 2.2rem; }
.af-rev__title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.7rem; }

/* ── Carte d'avis (confiance) — analyse + diagnostic ── */
.rv2__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); }
.rv2__badge { font-size: 0.82rem; font-weight: 700; color: #2e7d54; }
.rv2__count { font-size: 0.8rem; color: var(--muted); }
.rv2__who { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.rv2__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--green-lt); color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.rv2__name { font-weight: 700; font-size: 0.95rem; }
.rv2__stars { color: #f5a623; letter-spacing: 1px; font-size: 0.85rem; }
.rv2__quote { font-size: 0.95rem; color: var(--text); line-height: 1.5; margin-bottom: 0.85rem; }
.rv2__meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }

/* ── En-tête rapport (teaser) ── */
.af-rephead { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; margin-bottom: 1.3rem; border-bottom: 2px solid var(--green); }
.af-rephead__lab { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--green); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.af-rephead__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--green); position: relative; }
.af-rephead__dot::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--green); }
.af-rephead__meta { text-align: right; font-size: 0.72rem; color: var(--muted); line-height: 1.55; display: flex; flex-direction: column; }
.af-rephead__meta b { color: var(--text); }

/* ── Aperçu protocole : étape 1 révélée, le reste flouté ── */
.af-protoprev { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.2rem; margin: 1.5rem 0; }
.af-protoprev__ready { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.4rem 0.8rem; border-radius: 999px; margin-bottom: 0.9rem; }
.af-protoprev__title { font-size: 1.05rem; margin-bottom: 0.7rem; }
.af-protoprev__step { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.5rem 0; }
.af-protoprev__n { width: 26px; height: 26px; border-radius: 50%; background: var(--green-lt); color: var(--green); font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.af-protoprev__step--on .af-protoprev__n { background: var(--green); color: #fff; }
.af-protoprev__t { font-weight: 600; font-size: 0.92rem; }
.af-protoprev__d { font-size: 0.84rem; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }
.af-protoprev__locked { filter: blur(4.5px); opacity: 0.6; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000, transparent 92%); mask-image: linear-gradient(#000, transparent 92%); margin-bottom: 0.4rem; }
.af-protoprev__unlock { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 0.5rem; background: transparent; border: 1.5px solid var(--green); color: var(--green); font-family: inherit; font-weight: 600; font-size: 0.92rem; padding: 0.8rem; border-radius: 8px; cursor: pointer; }
.af-protoprev__unlock:hover { background: var(--green-lt); }

/* ── Carte d'offre (paywall) ── */
.af-offer { position: relative; background: var(--white); border: 2px solid var(--green); border-radius: 18px; box-shadow: 0 18px 48px rgba(13, 148, 136, 0.18); padding: 2.3rem 1.3rem 1.5rem; margin: 2.4rem 0 1.5rem; text-align: center; }
.af-offer__ribbon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 1.1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; box-shadow: 0 5px 16px rgba(13, 148, 136, 0.32); }
.af-offer__title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.15; font-weight: 600; margin-bottom: 0.6rem; }
.af-offer__title span { color: var(--green); display: block; }
.af-offer__sub { font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.1rem; max-width: 340px; margin-left: auto; margin-right: auto; }
.af-offer__sub strong { color: var(--text); }
.af-offer__timer { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--gold); border: 1px solid #ecd8ac; background: #fdf8ee; border-radius: 999px; padding: 0.45rem 1rem; margin-bottom: 1.4rem; }
.af-offer__timer strong { color: var(--gold); }
.af-offer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; text-align: left; }
.af-offer__feat { display: flex; align-items: center; gap: 0.55rem; border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.7rem; font-size: 0.8rem; font-weight: 500; color: var(--text); line-height: 1.2; }
.af-offer__fic { flex-shrink: 0; color: var(--green); display: flex; }
.af-offer__fic svg { width: 20px; height: 20px; }
.af-offer__cta { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 1.05rem; cursor: pointer; font-family: inherit; box-shadow: 0 12px 28px rgba(13, 148, 136, 0.38); transition: transform 0.15s ease, box-shadow 0.4s ease; animation: afCtaPulse 2.6s ease-in-out infinite; }
.af-offer__cta:hover { transform: translateY(-1px); }
@keyframes afCtaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(13, 148, 136, 0.34); }
  50%      { box-shadow: 0 14px 34px rgba(13, 148, 136, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .af-offer__cta { animation: none; } }
.af-offer__cta-main { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.af-offer__cta-sub { font-size: 0.85rem; opacity: 0.92; }
.af-offer__proof { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.af-offer__proof strong { color: var(--text); }
.af-offer__trust { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.7rem; }
.af-offer__based { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-top: 0.5rem; }
@media (max-width: 360px) { .af-offer__grid { grid-template-columns: 1fr; } }

/* ── Synthèse : badge profil + indicateurs clés ── */
.af-result-card__badge { display: inline-block; margin-top: 0.45rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--green); background: var(--green-lt); padding: 0.28rem 0.7rem; border-radius: 999px; }
.af-indic__head { display: flex; align-items: center; gap: 0.5rem; color: var(--green); margin-bottom: 0.8rem; }
.af-indic__head h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; color: var(--text); }

/* ── FAQ (teaser) ── */
.af-faq__title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 0.4rem; }
.af-faq__item { border-bottom: 1px solid var(--border); }
.af-faq__item:first-of-type { border-top: 1px solid var(--border); }
.af-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: none; padding: 1rem 0.15rem; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.af-faq__chev { color: var(--green); flex-shrink: 0; transition: transform 0.25s ease; }
.af-faq__item.open .af-faq__chev { transform: rotate(180deg); }
.af-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.af-faq__a p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; padding: 0 0.15rem 1rem; margin: 0; }

/* ── Espacement sections teaser ── */
.af-phase[data-phase="result"] > .af-result-card,
.af-phase[data-phase="result"] > .af-indic,
.af-phase[data-phase="result"] > .af-synth,
.af-phase[data-phase="result"] > .af-prog,
.af-phase[data-phase="result"] > .af-preview,
.af-phase[data-phase="result"] > .af-protoprev,
.af-phase[data-phase="result"] > .af-offer,
.af-phase[data-phase="result"] > .af-faq,
.af-phase[data-phase="result"] > .af-result-reviews { margin-top: 2.4rem; }

/* ── Reprise de l'analyse (carte) ── */
.af-resume { max-width: 400px; margin: 2rem auto; text-align: center; }
.af-resume__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green-lt); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }
.af-resume__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.6rem; }
.af-resume__sub { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.6rem; }
.af-resume__yes { width: 100%; justify-content: center; margin-bottom: 0.8rem; }
.af-resume__no { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

/* ── Footer discret dans l'analyse ── */
.af-foot { margin-top: 2.6rem; padding: 1.2rem 0 0.4rem; text-align: center; background: transparent; }
.af-foot__brand { font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 7px; font-size: 1.05rem; }
.af-foot__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--green); position: relative; display: inline-block; }
.af-foot__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.af-foot__tag { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 0.8rem; }
.af-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1rem; margin-bottom: 0.7rem; }
.af-foot__links a { font-size: 0.8rem; color: var(--muted); }
.af-foot__copy { font-size: 0.7rem; color: var(--muted); opacity: 0.85; }
