@font-face {
  font-family: 'Publico';
  src: url('Publico-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Publico';
  src: url('Publico-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Aileron est chargé via <link> dans le <head> (preconnect + display=swap) —
   pas de @import ici (évitait un double chargement bloquant). */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:           #1A1A1A;
  --surface:      #242424;
  --surface-2:    #2C2C2C;
  --text:         #F0EDE7;
  --text-muted:   #9A9690;
  --text-light:   #C8C4BE;
  --accent:       #C17A3B;
  --accent-hover: #D4893F;
  --accent-light: rgba(193, 122, 59, 0.10);
  --accent-border:rgba(193, 122, 59, 0.28);
  --border:       rgba(240, 237, 231, 0.08);
  --border-strong:rgba(240, 237, 231, 0.14);
  --white:        #FFFFFF;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 32px rgba(0,0,0,0.45);
  --font-title:   'Publico', Georgia, serif;
  --font-body:    'Aileron', 'Helvetica Neue', Arial, sans-serif;
  --transition:   0.22s ease;
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: underline; }
a:hover { opacity: 0.8; }

/* ─── App Shell ─────────────────────────────────────── */
#app {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Progress Bar ──────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 0;
  opacity: 0;
  transition: opacity var(--transition);
}
#progress-bar.visible { opacity: 1; }

#progress-track {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}
#progress-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Back Button ───────────────────────────────────── */
#btn-back {
  position: fixed;
  top: 30px;
  left: 20px;
  z-index: 60;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), color var(--transition);
}
#btn-back.visible { opacity: 1; pointer-events: all; }
#btn-back:hover { color: var(--text); }
#btn-back svg { flex-shrink: 0; }

/* ─── Screens ───────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 72px 20px 48px;
  animation: fadeIn 0.3s ease;
}
.screen.active { display: flex; }

/* Écrans longs : toujours ancrés en haut (jamais centrés verticalement) */
#screen-result, #screen-merci { justify-content: flex-start; }

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

.screen-inner {
  width: 100%;
  max-width: 520px;
}
.screen-inner--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.screen-inner--result {
  max-width: 880px;
}

/* ─── Typography ─────────────────────────────────────── */
h1 {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

h2 {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--text);
}

h3 {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.3;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 32px;
}

.question-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

/* ─── Intro Screen ──────────────────────────────────── */
#screen-intro { text-align: center; }
#screen-intro .screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.samuel-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

.samuel-photo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--accent-border);
  box-shadow: 0 0 0 4px rgba(193,122,59,0.08);
}

.samuel-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(2.2);
  transform-origin: center 65%;
  display: block;
}

.samuel-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.samuel-info { text-align: left; }

.samuel-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 3px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.samuel-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.samuel-credential {
  font-size: 0.74rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  text-align: left;
  width: 100%;
}
.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-light);
}
.intro-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

/* ─── Option Buttons ─────────────────────────────────── */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.option-btn {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.option-btn:hover {
  border-color: var(--accent-border);
  background: var(--surface-2);
}
.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text);
  font-weight: 600;
}
.option-btn:active { transform: scale(0.99); }

.option-btn .hint-inline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  margin-left: 8px;
}

/* ─── Sub Questions ──────────────────────────────────── */
.sub-question {
  margin-top: 4px;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  animation: fadeIn 0.25s ease;
}
.sub-question.hidden { display: none; }

.sub-question-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.sub-question .options-grid {
  flex-direction: row;
  margin-bottom: 0;
}
.sub-question .option-btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 11px 14px;
  font-size: 14px;
}

/* ─── Field Groups ───────────────────────────────────── */
.field-group { margin-bottom: 22px; }

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: -6px;
}

/* Chips — pour les champs multi-valeurs */
.options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.options-chips .option-btn {
  width: auto;
  flex: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 14px;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* Grille compacte conservée pour les sous-questions uniquement */
.options-grid--compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.options-grid--compact .option-btn {
  font-size: 14px;
  padding: 12px;
  justify-content: center;
  text-align: center;
}

/* ─── CTA Buttons ────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 17px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), transform 0.1s ease;
  letter-spacing: 0.02em;
}
.btn-cta:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; }
.btn-cta:active { transform: scale(0.99); }
.btn-cta:disabled,
.btn-cta.btn-disabled {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  border: 1px solid var(--border);
}
.btn-cta--secondary {
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.btn-cta--secondary:hover { background: var(--accent-light); color: var(--accent); }

/* ─── Loading Screen ─────────────────────────────────── */
.loading-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: 28px;
}
.loading-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: aiPulse 1.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(193,122,59,0.5); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 6px rgba(193,122,59,0); }
}
.loading-text {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.loading-steps {
  list-style: none;
  text-align: left;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loading-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.loading-step-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.loading-steps li.active {
  opacity: 1;
  color: var(--text);
}
.loading-steps li.active .loading-step-icon {
  border-color: var(--accent);
}
.loading-steps li.active .loading-step-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiPulse 1.4s ease-in-out infinite;
}
.loading-steps li.done {
  opacity: 1;
  color: var(--text-light);
}
.loading-steps li.done .loading-step-icon {
  border-color: var(--accent);
  background: var(--accent);
}
.loading-steps li.done .loading-step-icon::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 700;
}
.loading-track {
  width: 340px;
  max-width: 70vw;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}
.loading-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Bandeau de preuve (chiffres réels) ────────────── */
.trust-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 4px 0 6px;
}
.trust-stat {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.trust-stat-num {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(26px, 5vw, 34px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.trust-stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.trust-stat-divider {
  width: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.trust-footnote {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 12px 0 30px;
  opacity: 0.8;
}

/* ─── Badge IA + révélation de l'analyse ────────────── */
.result-ia-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}
.ia-badge-spark { font-size: 10px; line-height: 1; }
.ia-line {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: iaReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ia-line--shown { opacity: 1; transform: none; animation: none; }
@keyframes iaReveal {
  to { opacity: 1; transform: none; }
}
.ia-dots {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.ia-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: aiPulse 1.2s ease-in-out infinite;
}
.ia-dots i:nth-child(2) { animation-delay: 0.2s; }
.ia-dots i:nth-child(3) { animation-delay: 0.4s; }

/* ─── Méthodologie (transparence / confiance) ───────── */
.result-method {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.result-method summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: color var(--transition);
}
.result-method summary::-webkit-details-marker { display: none; }
.result-method summary::before {
  content: '+';
  color: var(--accent);
  font-size: 15px;
  width: 14px;
  text-align: center;
}
.result-method[open] summary::before { content: '–'; }
.result-method summary:hover { color: var(--text); }
.result-method-body {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.result-method-body p { margin-bottom: 10px; }
.result-method-body strong { color: var(--text-light); font-weight: 600; }

/* ─── Accès direct (prospect chaud) ─────────────────── */
.convert-direct {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.convert-direct a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.convert-direct a:hover { text-decoration: underline; }

/* ─── Formulaire de capture email (écran résultat) ──── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }

.form-group--checkbox {
  margin-top: 10px;
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-label span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;        /* annule l'uppercase hérité de .form-group label */
  letter-spacing: 0;
}
.form-error {
  font-size: 13px;
  color: #E05A4A;
  margin-bottom: 12px;
  min-height: 18px;
}

/* ─── Result Screen ──────────────────────────────────── */
.result-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.result-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.result-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 0;
}
.result-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Empêche les colonnes grid de s'élargir pour absorber un montant en
   nowrap (sinon l'auto-ajustement de police ne se déclenche jamais). */
.result-col-left, .result-col-right { min-width: 0; }

.result-bloc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.result-bloc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}
.result-bloc:last-child { margin-bottom: 0; }

.result-horizon-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.result-amount {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(30px, 6vw, 46px);
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.result-amount-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result-levier {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.result-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 18px;
  font-style: italic;
  padding: 0 2px;
}
.result-tmi-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.result-tmi-note.hidden { display: none; }

/* IA text bloc */
.result-ia-bloc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.result-ia-bloc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}
.result-ia-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.result-ia-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}
.result-ia-loading {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Loi Le Meur flag */
.result-lm-flag {
  background: rgba(193,122,59,0.07);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.result-lm-flag.hidden { display: none; }
.result-lm-flag h3 {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 12px;
}
.result-lm-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}
.result-lm-amount {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 22px;
  color: var(--text);
  display: inline;
}

/* Multi-biens */
.result-multi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}
.result-multi.hidden { display: none; }

.btn-cta--result {
  max-width: 380px;
  margin: 0 auto;
  display: block;
  font-size: 16px;
  padding: 18px 28px;
}

/* ─── Bloc conversion (capture email proéminente) ───── */
.result-convert {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 32px 28px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-convert::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.convert-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.convert-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}
.convert-sub {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 22px;
}
.convert-benefits {
  list-style: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.convert-benefits li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.convert-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-convert form {
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group { flex: 1; min-width: 0; }
.convert-reassurance {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 16px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Écran merci / validation ──────────────────────── */
.merci-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1A1A;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
/* Deux chemins de conversion (page de validation) */
.merci-paths {
  width: 100%;
  max-width: 460px;
  margin: 8px auto 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.merci-path {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform 0.1s ease;
}
.merci-path:hover { border-color: var(--accent-border); background: var(--surface-2); }
.merci-path:active { transform: scale(0.99); }
.merci-path--primary {
  background: var(--accent-light);
  border-color: var(--accent-border);
}
.merci-path-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.merci-path-title { font-size: 15.5px; font-weight: 600; color: var(--text); }
.merci-path-text { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.merci-path-arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
  transition: transform var(--transition);
}
.merci-path:hover .merci-path-arrow { transform: translateX(3px); }

/* Être rappelé */
.merci-callback {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 28px;
  text-align: left;
}
.merci-callback-lead {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.merci-callback-form { display: flex; gap: 8px; }
.merci-callback-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}
.merci-callback-form input:focus { border-color: var(--accent); }
.merci-callback-form input::placeholder { color: var(--text-muted); }
.merci-callback-form .btn-cta { width: auto; flex-shrink: 0; padding: 13px 20px; }
.merci-callback-error { margin-top: 8px; }
.merci-callback-done {
  max-width: 460px;
  margin: 0 auto 28px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}
.merci-value {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.merci-value-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.merci-value-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.merci-value-points span {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
}
.merci-value-points span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.merci-cta {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.merci-cta-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ─── CTA collant (mobile) ──────────────────────────── */
.result-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;                 /* masqué par défaut (desktop) */
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
  transform: translateY(130%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-sticky .btn-cta { margin: 0; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.result-sticky.visible { transform: translateY(0); }

/* ─── Focus clavier visible (accessibilité) ─────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.option-btn:focus-visible,
.btn-cta:focus-visible,
.result-method summary:focus-visible { outline-offset: 3px; border-radius: 8px; }
.form-group input:focus-visible { outline-offset: 1px; }

/* ─── Respect de prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ia-line { opacity: 1 !important; transform: none !important; }
}

/* ─── Mobile : contenu ancré en haut ────────────────── */
@media (max-width: 679px) {
  .screen {
    justify-content: flex-start;
    padding-top: 64px;
  }
  /* Prénom / email empilés sur mobile */
  .form-row { flex-direction: column; gap: 0; }

  /* Stats de preuve empilées sur mobile */
  .trust-stats { flex-direction: column; gap: 14px; }
  .trust-stat { max-width: none; }
  .trust-stat-divider { width: 60px; height: 1px; margin: 0 auto; }

  /* CTA collant actif sur mobile uniquement */
  .result-sticky { display: block; }
  /* Espace en bas du résultat pour ne pas masquer le contenu sous le CTA */
  #screen-result { padding-bottom: 88px; }

  /* ── Intro : tout visible dès l'ouverture (CTA above the fold) ── */
  #screen-intro { padding-top: 36px; }
  #screen-intro h1 { font-size: 28px; margin-bottom: 12px; }
  #screen-intro .subtitle { font-size: 15px; margin-bottom: 20px; }
  .samuel-identity { margin-bottom: 22px; padding-bottom: 18px; }
  .intro-features { gap: 8px; margin-bottom: 20px; }
  .intro-feature { font-size: 13px; }
  .trust-stats { margin: 2px 0 0; }
  .trust-stat-num { font-size: 22px; }
  .trust-stat-label { font-size: 12px; }
  .trust-footnote { margin: 10px 0 18px; }

  /* ── Questions : dégagées de la barre fixe (progression + retour) ── */
  #screen-q1, #screen-q2, #screen-q3a, #screen-q3b,
  #screen-q4a, #screen-q4b, #screen-q5 { padding-top: 86px; }
}

/* ─── Desktop ────────────────────────────────────────── */
@media (min-width: 680px) {
  .screen { padding: 88px 40px 60px; }

  /* Intro : tout visible dès l'ouverture (CTA above the fold) sans sacrifier le premium */
  #screen-intro { padding-top: 52px; padding-bottom: 52px; }
  #screen-intro h1 { font-size: 40px; margin-bottom: 14px; }
  #screen-intro .subtitle { font-size: 17px; margin-bottom: 22px; }
  #screen-intro .samuel-identity { margin-bottom: 24px; padding-bottom: 20px; }
  #screen-intro .intro-features { gap: 9px; margin-bottom: 22px; }
  #screen-intro .trust-stats { margin: 2px 0 0; }
  #screen-intro .trust-stat-num { font-size: 28px; }
  #screen-intro .trust-footnote { margin: 10px 0 24px; }

  /* Écrans questions : « Continuer » visible dès l'ouverture sur laptop (≈800px) */
  #screen-q1, #screen-q2, #screen-q3a, #screen-q3b,
  #screen-q4a, #screen-q4b, #screen-q5 { padding-top: 58px; padding-bottom: 40px; }
  #screen-q2 h2, #screen-q3b h2, #screen-q4a h2,
  #screen-q4b h2, #screen-q5 h2 { margin-bottom: 22px; }
  #screen-q3b .field-group, #screen-q4a .field-group,
  #screen-q4b .field-group, #screen-q5 .field-group { margin-bottom: 20px; }
  #screen-q2 .field-group { margin-bottom: 14px; }
  #screen-q2 .sub-question { margin-bottom: 14px; }
  #screen-q2 .options-grid { margin-bottom: 18px; }
  #screen-q2 { padding-top: 50px; }

  .options-grid--compact { grid-template-columns: repeat(3, 1fr); }

  .result-grid { grid-template-columns: 1fr 1fr; }

  .options-grid { display: grid; grid-template-columns: 1fr; }
  #screen-q1 .options-grid, #screen-q3a .options-grid { grid-template-columns: 1fr; }

  .sub-question .options-grid { flex-direction: row; display: flex; }
}

@media (min-width: 860px) {
  /* ── Typographie ── */
  h1 { font-size: 54px; }
  h2 { font-size: 40px; margin-bottom: 40px; }
  h3 { font-size: 26px; }

  .subtitle        { font-size: 20px; margin-bottom: 44px; }
  .question-number { font-size: 13px; margin-bottom: 20px; }

  /* ── Boutons réponse ── */
  .option-btn      { font-size: 18px; padding: 20px 26px; }
  .options-chips .option-btn       { font-size: 16px; padding: 12px 22px; }
  .options-grid--compact .option-btn { font-size: 16px; padding: 16px; }
  .sub-question .option-btn        { font-size: 16px; }
  .sub-question-label              { font-size: 16px; }
  .field-label                     { font-size: 13px; margin-bottom: 14px; }
  .option-btn .hint-inline         { font-size: 13px; }

  /* ── Espacements entre les options ── */
  .options-grid        { gap: 12px; margin-bottom: 36px; }
  .options-chips       { gap: 12px; }
  .options-grid--compact { gap: 12px; }
  .field-group         { margin-bottom: 32px; }

  /* ── Résultat ── */
  .result-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .result-eyebrow   { font-size: 13px; }
  .result-header h2 { font-size: 36px; }
  .result-subtitle  { font-size: 16px; }
  .result-amount    { font-size: 52px; }
  .result-horizon-label  { font-size: 15px; }
  .result-ia-label       { font-size: 15px; }
}

/* ─── Utility ────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
