/* ============================================================
   PRAGMA — OUTIL D'ESTIMATION
   S'appuie sur style.css (tokens, nav, footer, .btn-*)
   + inclut en fallback les classes .ed-* pour autonomie
============================================================ */

/* === FALLBACK : Design system éditorial === */
/* (ces règles dupliquent celles de style.css pour garantir
   l'affichage même si style.css n'est pas à jour sur le serveur) */

.ed-marker {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.ed-marker::before {
  content: '';
  width: 42px; height: 1px;
  background: var(--blue-bright);
}
.ed-marker b { color: var(--white); font-weight: 900; }
.ed-marker--purp::before { background: var(--purp-bright); }

.ed-h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 24px;
  text-wrap: balance;
}
.ed-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-bright);
}
.ed-h2 em.purp { color: var(--purp-bright); }
.ed-h2 .grad2 {
  background: linear-gradient(130deg, var(--blue-bright), var(--purp-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ed-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

.ed-header { margin-bottom: 56px; }
.ed-header--c { text-align: center; }
.ed-header--c .ed-marker { justify-content: center; }
.ed-header--c .ed-sub { margin-left: auto; margin-right: auto; }

/* === Nav simplifiée === */
.nav--estim .nav__links { display: none; }
.nav--estim .nav__cta { display: none; }
.nav--estim .nav__burger { display: none; }

.est-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.est-nav-label {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.est-quit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}
.est-quit:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.est-quit span {
  font-size: 11px;
  opacity: 0.6;
}

/* === Main container === */
.est-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
  position: relative;
}
.est-main::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(139,92,246,0.08), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(91,143,255,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.est-container {
  position: relative;
  z-index: 1;
  padding: 40px 20px 80px;
  max-width: 920px;
}

/* === Progress bar === */
.est-progress-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  padding: 28px 0 22px;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.est-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
}
.est-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s;
  position: relative;
  flex-shrink: 0;
}
.est-step-dot:hover { opacity: 0.7; }
.est-step-dot.active,
.est-step-dot.done { opacity: 1; }

.est-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  transition: all 0.3s;
}
.est-step-dot.active .est-step-num {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.15);
}
.est-step-dot.done .est-step-num {
  color: #fff;
  background: rgba(139,92,246,0.25);
  border-color: rgba(139,92,246,0.6);
}
.est-step-dot.done .est-step-num::before {
  content: '✓';
  position: absolute;
}
.est-step-dot.done .est-step-num > * {
  display: none;
}

.est-step-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.est-step-dot.active .est-step-label { color: var(--white); }

.est-progress-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: var(--border);
  margin-top: -18px;
  position: relative;
  overflow: hidden;
}
.est-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 0.4s ease;
}

@media (max-width: 720px) {
  .est-step-label { display: none; }
  .est-progress-line { max-width: 40px; }
  .est-progress-wrap { padding: 18px 0 14px; }
}

/* === Resume prompt === */
.est-resume {
  padding: 16px 0;
}
.est-resume__box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 14px;
}
.est-resume__ico { font-size: 24px; flex-shrink: 0; }
.est-resume__txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.est-resume__txt strong {
  color: var(--white);
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
}
.est-resume__txt span {
  color: var(--muted);
  font-size: 13px;
}
.est-resume__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.est-resume__actions .btn { font-size: 13px; padding: 10px 18px; }

/* === Headers spécifiques étapes === */
.est-header { margin-bottom: 48px; text-align: center; }
.est-header .ed-marker { justify-content: center; }
.est-h1 {
  font-size: clamp(36px, 5.5vw, 72px) !important;
  margin-bottom: 16px !important;
}
.est-sub {
  margin: 0 auto 18px !important;
  font-size: 17px !important;
}
.est-time-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-top: 6px;
}

.est-help-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 20px;
  background: rgba(91,143,255,0.06);
  border: 1px solid rgba(91,143,255,0.2);
  border-radius: 12px;
  max-width: 580px;
  margin: 8px auto 0;
  text-align: left;
}
.est-help-note span { flex-shrink: 0; font-size: 16px; }

.est-section-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.est-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === ÉTAPE 1 : Category cards === */
.est-cat-grid {
  display: grid;
  gap: 14px;
}
.est-cat-grid--main { grid-template-columns: repeat(2, 1fr); }
.est-cat-grid--sec  { grid-template-columns: repeat(3, 1fr); }

.est-cat {
  position: relative;
  padding: 28px 26px;
  background: rgba(255,255,255,0.025);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.est-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(139,92,246,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.est-cat:hover {
  border-color: var(--border-purp);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
}
.est-cat:hover::before { opacity: 1; }
.est-cat.selected {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.est-cat.selected::before { opacity: 1; }

.est-cat__emoji {
  font-size: 32px;
  line-height: 1;
}
.est-cat__label {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.est-cat__desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.est-cat__examples {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.est-cat--sec {
  padding: 22px 20px;
}
.est-cat--sec .est-cat__emoji { font-size: 26px; }
.est-cat--sec .est-cat__label { font-size: 15px; }
.est-cat--sec .est-cat__desc  { font-size: 12.5px; }
.est-cat--sec .est-cat__examples { display: none; }

.est-cat__popular {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--ff-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purp-bright);
  padding: 3px 8px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 100px;
}

/* Besoin spécifique */
.est-specific {
  margin-top: 40px;
  padding: 28px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}
.est-specific__title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.est-specific__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.est-specific__actions .btn { font-size: 13px; padding: 11px 20px; }

/* === ÉTAPE 2 : Outils === */
.est-tool-family {
  margin-bottom: 32px;
}
.est-tool-family__title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.est-tool-family__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.est-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.est-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--text);
}
.est-tool:hover {
  border-color: var(--border-lit);
  background: rgba(255,255,255,0.04);
}
.est-tool input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-tool__check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.est-tool.checked {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  color: var(--white);
}
.est-tool.checked .est-tool__check {
  background: var(--purple);
  border-color: var(--purple);
}
.est-tool.checked .est-tool__check::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* Outils custom */
.est-custom-tools {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.est-custom-tools__title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.est-custom-tool-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.est-custom-tool-row input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 14px;
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s;
}
.est-custom-tool-row input:focus {
  outline: none;
  border-color: var(--purple);
}
.est-custom-tool-row input::placeholder { color: var(--muted); }
.est-custom-tool-row button {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #ef4444;
  border-radius: 10px;
  width: 42px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.est-custom-tool-row button:hover { background: rgba(239,68,68,0.15); }

.est-add-tool {
  margin-top: 6px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.est-add-tool:hover {
  border-color: var(--purple);
  color: var(--purp-bright);
}

/* "Je ne sais pas" */
.est-unsure {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.est-unsure:hover { border-color: var(--border-lit); }
.est-unsure input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-unsure__check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: all 0.2s;
}
.est-unsure input:checked + .est-unsure__check {
  background: var(--purple);
  border-color: var(--purple);
}
.est-unsure input:checked + .est-unsure__check::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.est-unsure__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.est-unsure__label strong {
  color: var(--white);
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
}
.est-unsure__label small {
  color: var(--muted);
  font-size: 12.5px;
}

/* === Navigation entre étapes === */
.est-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.est-nav__prev { font-size: 14px; padding: 12px 22px; }
.est-nav__next { font-size: 15px; padding: 14px 32px; }
.est-nav__next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* === Transitions entre étapes === */
.est-step {
  animation: estFadeIn 0.4s ease;
}
@keyframes estFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Loading screen === */
.est-loading__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 120px 20px;
  text-align: center;
}
.est-loading__spinner {
  width: 56px; height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: estSpin 0.9s linear infinite;
}
@keyframes estSpin { to { transform: rotate(360deg); } }
.est-loading__msg {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  min-height: 28px;
  letter-spacing: -0.01em;
}

/* === Responsive === */
@media (max-width: 900px) {
  .est-cat-grid--main { grid-template-columns: 1fr; }
  .est-cat-grid--sec  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .est-cat-grid--sec  { grid-template-columns: 1fr; }
  .est-h1 { font-size: clamp(28px, 8vw, 40px) !important; }
  .est-nav { flex-direction: column-reverse; gap: 10px; }
  .est-nav__prev, .est-nav__next { width: 100%; justify-content: center; }
  .est-specific__actions { flex-direction: column; }
  .est-specific__actions .btn { width: 100%; justify-content: center; }
  .est-resume__box { flex-direction: column; align-items: stretch; text-align: center; }
  .est-resume__actions { justify-content: center; }
  .est-nav-center { display: none; }
}

/* ============================================================
   ÉTAPES 3-5 — Questions, formulaires, révélation
============================================================ */

/* Blocs de questions */
.est-q-block {
  margin-bottom: 40px;
  padding: 32px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.est-q-block__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.est-q-block__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.est-q-block__dot--red { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.5); }
.est-q-block__dot--green { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.5); }

.est-q-list { display: flex; flex-direction: column; gap: 22px; }

.est-q { display: flex; flex-direction: column; gap: 10px; }
.est-q__label {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.est-q__opt {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
}

/* Input number */
.est-q__num-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.est-q__num,
.est-q__input {
  flex: 1;
  max-width: 280px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s;
}
.est-q__num:focus,
.est-q__input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(139,92,246,0.05);
}
.est-q__input { max-width: 100%; }
.est-q__num::placeholder,
.est-q__input::placeholder { color: var(--muted); }
.est-q__unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Checkbox "Je ne sais pas" */
.est-q__unknown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}
.est-q__unknown input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-q__unknown-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}
.est-q__unknown input:checked + .est-q__unknown-box {
  background: var(--purple); border-color: var(--purple);
}
.est-q__unknown input:checked + .est-q__unknown-box::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 900;
}

/* Choices (radio + multi unified) */
.est-q__choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.est-q__choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.2s;
  user-select: none;
}
.est-q__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-q__choice:hover {
  border-color: var(--border-purp);
  background: rgba(255,255,255,0.05);
}
.est-q__choice.selected {
  border-color: var(--purple);
  background: rgba(139,92,246,0.12);
  color: var(--white);
}

/* Radios column */
.est-q__radio-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.est-q__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.est-q__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-q__radio:hover {
  border-color: var(--border-purp);
  background: rgba(255,255,255,0.05);
}
.est-q__radio.selected {
  border-color: var(--purple);
  background: rgba(139,92,246,0.1);
  color: var(--white);
}
.est-q__radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.est-q__radio.selected .est-q__radio-dot {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: inset 0 0 0 3px var(--bg);
}

/* Select */
.est-q__select {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1L6 6L11 1' stroke='%236b6b90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  transition: all 0.2s;
}
.est-q__select:focus {
  outline: none;
  border-color: var(--purple);
}
.est-q__select option {
  background: var(--bg-2);
  color: var(--white);
}

/* Form layout */
.est-form {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.est-form__row { display: flex; flex-direction: column; gap: 22px; }
.est-form__row--2 { flex-direction: row; gap: 14px; }
.est-form__row--2 > * { flex: 1; }

/* RGPD */
.est-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.est-rgpd:hover { border-color: var(--border-purp); }
.est-rgpd.checked { border-color: var(--purple); background: rgba(139,92,246,0.05); }
.est-rgpd input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-rgpd__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  margin-top: 1px;
  transition: all 0.2s;
}
.est-rgpd.checked .est-rgpd__box {
  background: var(--purple); border-color: var(--purple);
}
.est-rgpd.checked .est-rgpd__box::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 900;
}
.est-rgpd__txt {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.est-rgpd.checked .est-rgpd__txt { color: var(--text); }

.est-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 28px;
  margin-top: 10px;
}

/* Révélation (placeholder) */
.est-reveal-placeholder {
  max-width: 720px;
  margin: 0 auto;
}
.est-reveal-price {
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(91,143,255,0.08));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(139,92,246,0.15);
}
.est-reveal-price__label {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.est-reveal-price__val {
  font-family: var(--ff-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--blue-bright), var(--purp-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.est-reveal-price__delai {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* Loading message transition */
.est-loading__msg {
  transition: opacity 0.2s;
}

/* Responsive */
@media (max-width: 560px) {
  .est-form__row--2 { flex-direction: column; gap: 22px; }
  .est-q-block { padding: 24px 20px; }
  .est-form { padding: 28px 22px; }
  .est-q__choices { flex-direction: column; }
  .est-q__choice { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   RÉVÉLATION COMPLÈTE — Lot 3
============================================================ */

.est-reveal {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === BLOC 1 : HERO PRIX === */
.est-reveal-hero {
  position: relative;
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(91,143,255,0.08));
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(139,92,246,0.18);
  overflow: hidden;
}
.est-reveal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139,92,246,0.2), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(91,143,255,0.12), transparent 55%);
  pointer-events: none;
}
.est-reveal-hero > * { position: relative; z-index: 1; }

.est-reveal-hero__label {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purp-bright);
  margin-bottom: 24px;
}
.est-reveal-hero__price {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.est-reveal-hero__price strong {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 68px);
  display: inline-block;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--blue-bright), var(--purp-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 4px;
}
.est-reveal-hero__delai {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-top: 18px;
  padding: 8px 20px;
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.est-reveal-included {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.est-reveal-included__title {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  text-align: center;
}
.est-reveal-included .ed-list li { font-size: 14px; }

/* === BLOCS 2 & 3 : AVANT / APRÈS === */
.est-reveal-section {
  padding: 36px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.est-reveal-section--green {
  background: linear-gradient(145deg, rgba(34,197,94,0.05), rgba(34,197,94,0.02));
  border-color: rgba(34,197,94,0.2);
}

.est-reveal-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.est-reveal-section__title--red { color: #ef4444; }
.est-reveal-section__title--green { color: #22c55e; }

.est-reveal-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.est-reveal-metric {
  padding: 20px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.est-reveal-metric--green {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}
.est-reveal-metric__ico {
  font-size: 22px;
  margin-bottom: 10px;
}
.est-reveal-metric__v {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.est-reveal-metric--green .est-reveal-metric__v { color: #4ade80; }
.est-reveal-metric__l {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* === Graphiques === */
.est-reveal-chart {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.est-reveal-chart__title {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.est-reveal-chart__wrap {
  position: relative;
  height: 200px;
}

/* === BLOC 4 : BÉNÉFICES === */
.est-reveal-benefits {
  padding: 36px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.est-benefit-block {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1.5px solid;
}
.est-benefit-block--green {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.25);
}
.est-benefit-block--purp {
  background: rgba(139,92,246,0.05);
  border-color: rgba(139,92,246,0.25);
}
.est-benefit-block__title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  color: var(--white);
}

.est-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.est-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.est-benefit-item__ico {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.est-benefit-item__v {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.est-benefit-block--green .est-benefit-item__v { color: #4ade80; }
.est-benefit-block--purp .est-benefit-item__v { color: var(--purp-bright); }
.est-benefit-item__l {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.est-benefit-disclaimer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(139,92,246,0.2);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

/* Amortissement */
.est-amort {
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.est-amort__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.est-amort__row:last-of-type { border-bottom: none; }
.est-amort__label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.est-amort__val {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.est-amort__val--green { color: #4ade80; }
.est-amort__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* === CTA FINAL === */
.est-reveal-cta {
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(91,143,255,0.05));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 22px;
  text-align: center;
}
.est-reveal-cta__hook {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.est-reveal-cta__hook strong {
  background: linear-gradient(135deg, var(--blue-bright), var(--purp-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.est-reveal-cta__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}
.est-reveal-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.est-reveal-cta__actions .btn { font-size: 15px; padding: 14px 28px; }
.est-reveal-cta__primary {
  font-size: 15px;
  padding: 14px 32px;
}

/* === Réassurance === */
.est-reveal-reassure {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.est-reveal-reassure__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.est-reveal-reassure__item span {
  color: #22c55e;
  font-weight: 900;
}

/* Animation entrée révélation (blocs séquentiels) */
.est-reveal > * {
  animation: revealUp 0.6s ease backwards;
}
.est-reveal > *:nth-child(1) { animation-delay: 0s; }
.est-reveal > *:nth-child(2) { animation-delay: 0.15s; }
.est-reveal > *:nth-child(3) { animation-delay: 0.3s; }
.est-reveal > *:nth-child(4) { animation-delay: 0.45s; }
.est-reveal > *:nth-child(5) { animation-delay: 0.6s; }
.est-reveal > *:nth-child(6) { animation-delay: 0.75s; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 680px) {
  .est-reveal-hero { padding: 40px 28px; }
  .est-reveal-section { padding: 28px 22px; }
  .est-reveal-benefits { padding: 28px 22px; }
  .est-reveal-cta { padding: 36px 24px; }
  .est-reveal-metrics { grid-template-columns: 1fr 1fr; }
  .est-reveal-chart__wrap { height: 180px; }
  .est-reveal-cta__actions { flex-direction: column; }
  .est-reveal-cta__actions .btn { width: 100%; justify-content: center; }
  .est-reveal-reassure { flex-direction: column; gap: 10px; align-items: center; }
}

/* ============================================================
   COMPARAISON HORIZONTALE — Sans / Avec Pragma
============================================================ */
.est-reveal-compare {
  padding: 44px 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.est-reveal-compare::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(239,68,68,0.04), transparent 40%),
    radial-gradient(ellipse at 100% 50%, rgba(34,197,94,0.04), transparent 40%);
  pointer-events: none;
}
.est-reveal-compare > * { position: relative; z-index: 1; }

.est-reveal-compare__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.est-reveal-compare__title {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.est-reveal-compare__sub {
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.est-reveal-compare__sub strong {
  background: linear-gradient(135deg, var(--blue-bright), var(--purp-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Grid en 3 col : gauche / flèche / droite */
.est-reveal-compare__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.est-reveal-side {
  padding: 32px 26px;
  border-radius: 16px;
  border: 1.5px solid;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.est-reveal-side--red {
  background: linear-gradient(160deg, rgba(239,68,68,0.05), rgba(239,68,68,0.02));
  border-color: rgba(239,68,68,0.3);
}
.est-reveal-side--green {
  background: linear-gradient(160deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
  border-color: rgba(34,197,94,0.3);
}

.est-reveal-side__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.est-reveal-side--red .est-reveal-side__tag {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
}
.est-reveal-side--green .est-reveal-side__tag {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
}
.est-reveal-side__tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.est-reveal-side__hook {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.est-reveal-cost-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: auto;
}
.est-reveal-cost {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
}
.est-reveal-cost__ico {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.est-reveal-cost__txt { min-width: 0; flex: 1; }
.est-reveal-cost__v {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.est-reveal-side--red .est-reveal-cost__v { color: #fca5a5; }
.est-reveal-side--green .est-reveal-cost__v { color: #4ade80; }
.est-reveal-cost__l {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.est-reveal-side__total {
  margin-top: 4px;
  padding: 16px 18px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.est-reveal-side__total span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.est-reveal-side__total strong {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ef4444;
}
.est-reveal-side__total--green {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}
.est-reveal-side__total--green strong { color: #22c55e; }

/* Flèche centrale */
.est-reveal-compare__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.est-reveal-compare__arrow-ico {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ef4444, var(--purp-bright), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,100% { transform: translateX(0); opacity: 0.85; }
  50%     { transform: translateX(4px); opacity: 1; }
}

/* Économie mise en valeur */
.est-reveal-economy {
  margin-top: 28px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  border: 1.5px solid rgba(34,197,94,0.4);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.est-reveal-economy__label {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.est-reveal-economy__val {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  color: #4ade80;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Responsive : stack vertical sur mobile */
@media (max-width: 780px) {
  .est-reveal-compare { padding: 32px 22px; }
  .est-reveal-compare__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .est-reveal-compare__arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
  .est-reveal-side { padding: 26px 22px; }
  .est-reveal-economy {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
