/* =============================================================
   Review for Good — Funnel Pricing v2
   Palette : vert #0F6E56 / #E1F5EE / #085041, corail #993C1D
   Police  : DM Sans (Google Fonts)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

.rfg-funnel *,
.rfg-funnel *::before,
.rfg-funnel *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.rfg-funnel {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #1a1a18;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

/* ── Barre de progression ── */
.rfg-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  min-height: 10px;
}

.rfg-prog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8e8e2;
  flex-shrink: 0;
  transition: background .3s;
}
.rfg-prog-dot.active,
.rfg-prog-dot.done {
  background: #0F6E56;
}

.rfg-prog-seg {
  flex: 1;
  height: 3px;
  background: #d8e8e2;
  transition: background .3s;
}
.rfg-prog-seg.done {
  background: #0F6E56;
}

/* ── Carte étape ── */
.rfg-card {
  background: #fff;
  border: 0.5px solid #d8e8e2;
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  animation: rfgFadeIn .22s ease;
}

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

.rfg-step-num {
  font-size: 11px;
  font-weight: 700;
  color: #0F6E56;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.rfg-step-q {
  font-size: 17px;
  font-weight: 500;
  color: #1a1a18;
  line-height: 1.4;
  margin-bottom: .4rem;
}

.rfg-step-hint {
  font-size: 13px;
  color: #6a6a68;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

/* ── Options ── */
.rfg-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 1.4rem;
}

.rfg-opt {
  border: 0.5px solid #d8e8e2;
  border-radius: 10px;
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.rfg-opt:hover {
  border-color: #0F6E56;
  background: #E1F5EE;
}
.rfg-opt.rfg-sel {
  border: 2px solid #0F6E56;
  background: #E1F5EE;
}

.rfg-opt-icon {
  font-size: 22px;
  display: block;
  color: #6a6a68;
  line-height: 1;
}
.rfg-opt.rfg-sel .rfg-opt-icon {
  color: #085041;
}

.rfg-opt-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
}

.rfg-opt-sub {
  display: block;
  font-size: 11px;
  color: #8a8a88;
  line-height: 1.3;
}
.rfg-opt.rfg-sel .rfg-opt-sub {
  color: #0F6E56;
}

/* ── Navigation ── */
.rfg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}

.rfg-btn-back {
  background: none;
  border: 0.5px solid #d8e8e2;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #6a6a68;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.rfg-btn-back:hover {
  background: #f3faf7;
}

.rfg-btn-next {
  background: #0F6E56;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.rfg-btn-next:disabled {
  opacity: .35;
  cursor: default;
}
.rfg-btn-next:not(:disabled):hover {
  background: #085041;
}

/* ── Résultat ── */
.rfg-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: rfgFadeIn .22s ease;
}

.rfg-promise {
  background: #E1F5EE;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rfg-promise-icon {
  font-size: 18px;
  color: #0F6E56;
  flex-shrink: 0;
  margin-top: 1px;
}
.rfg-promise-text {
  font-size: 13px;
  color: #085041;
  line-height: 1.6;
}
.rfg-promise-text strong {
  color: #04342C;
  font-weight: 500;
}

.rfg-price-card {
  background: #fff;
  border: 2px solid #0F6E56;
  border-radius: 14px;
  padding: 1.5rem;
}

.rfg-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.rfg-offer-name {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a18;
}
.rfg-rec-badge {
  background: #E1F5EE;
  color: #085041;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid #9FE1CB;
}

.rfg-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.rfg-amount {
  font-size: 42px;
  font-weight: 700;
  color: #0F6E56;
  line-height: 1;
  letter-spacing: -.02em;
}
.rfg-unit {
  font-size: 15px;
  color: #6a6a68;
}

.rfg-engagement-tag {
  font-size: 12px;
  color: #6a6a68;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 0.5px solid #d8e8e2;
  line-height: 1.5;
}
.rfg-engagement-tag strong {
  color: #1a1a18;
  font-weight: 500;
}

.rfg-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 1rem;
}
.rfg-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.rfg-line-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6a6a68;
}
.rfg-line-left .rfg-licon {
  font-size: 14px;
  color: #0F6E56;
}
.rfg-line.rfg-opt-line .rfg-line-left .rfg-licon {
  color: #BA7517;
}
.rfg-line-val {
  font-weight: 500;
  color: #1a1a18;
}
.rfg-line.rfg-opt-line .rfg-line-val {
  color: #854F0B;
}

.rfg-divider {
  height: 0.5px;
  background: #d8e8e2;
  margin: 8px 0;
}

.rfg-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rfg-total-label {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a18;
}
.rfg-total-val {
  font-size: 18px;
  font-weight: 700;
  color: #0F6E56;
}

.rfg-integ-block {
  margin-top: 1rem;
  background: #f3faf7;
  border-radius: 10px;
  padding: 12px 14px;
}
.rfg-integ-label {
  font-size: 11px;
  color: #6a6a68;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.rfg-integ-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rfg-integ-pill {
  font-size: 12px;
  background: #fff;
  border: 0.5px solid #d8e8e2;
  border-radius: 20px;
  padding: 3px 10px;
  color: #6a6a68;
}

.rfg-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: .25rem;
}
.rfg-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0F6E56;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: background .15s;
}
.rfg-cta-btn:hover {
  background: #085041;
  color: #fff;
  text-decoration: none;
}
.rfg-cta-note {
  font-size: 12px;
  color: #8a8a88;
  text-align: center;
  line-height: 1.6;
}
.rfg-cta-note a {
  color: #0F6E56;
  text-decoration: none;
}
.rfg-cta-note a:hover {
  text-decoration: underline;
}

.rfg-restart-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: #8a8a88;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  display: block;
}

/* ── Icônes (dashicons fallback si Tabler non chargé) ── */
.rfg-icon {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .rfg-funnel {
    padding: 1rem 0 1.5rem;
  }
  .rfg-card {
    padding: 1.25rem 1rem 1rem;
  }
  .rfg-amount {
    font-size: 34px;
  }
  .rfg-opts {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}
