/* ============================================================
   SimulezVotreMort.fr — Design System
   Style : Teletubbies revisité (coloré, joyeux, arrondi)
   Police : Nunito (Google Fonts)
   ============================================================ */

/* --- Variables ----------------------------------------------- */
:root {
  --cream:    #FFFBF0;
  --white:    #FFFFFF;
  --violet:   #7B5EA7;
  --violet-l: #A07CC5;
  --violet-d: #5A3E82;
  --yellow:   #FFD166;
  --yellow-d: #E6B800;
  --green:    #06D6A0;
  --green-d:  #04A87D;
  --pink:     #FF6B9D;
  --pink-d:   #E0447A;
  --sky:      #4FC3F7;
  --text:     #2D2D2D;
  --text-soft:#5A5A6A;
  --border:   #E8E0F0;
  --shadow:   0 4px 24px rgba(123,94,167,0.12);
  --shadow-lg:0 8px 48px rgba(123,94,167,0.18);
  --radius:   20px;
  --radius-sm:12px;
  --radius-lg:32px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Utilitaires --------------------------------------------- */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --- Typographie --------------------------------------------- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
p  { margin-bottom: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--text);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* --- Header / Nav -------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(123,94,167,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--pink); }
.site-logo .logo-emoji { font-size: 1.6rem; }
.nav-cta {
  background: var(--violet);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--violet-d); transform: translateY(-1px); }

/* --- Hero ---------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--violet) 0%, #9B5EA7 50%, var(--pink) 100%);
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  border-radius: 60px 60px 0 0;
}
.hero__emoji-row {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--yellow); }
.hero__sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero__cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Boutons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--text);
}
.btn--primary:hover { background: var(--yellow-d); }

.btn--secondary {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn--secondary:hover { background: rgba(255,255,255,0.3); }

.btn--violet {
  background: var(--violet);
  color: var(--white);
}
.btn--violet:hover { background: var(--violet-d); }

.btn--green {
  background: var(--green);
  color: var(--text);
}
.btn--green:hover { background: var(--green-d); }

.btn--pink {
  background: var(--pink);
  color: var(--white);
}
.btn--pink:hover { background: var(--pink-d); }

.btn--outline {
  background: transparent;
  color: var(--violet);
  border: 2px solid var(--violet);
}
.btn--outline:hover { background: var(--violet); color: var(--white); }

.btn--lg { padding: 18px 42px; font-size: 1.15rem; }
.btn--sm { padding: 8px 20px; font-size: 0.88rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Trust bar ----------------------------------------------- */
.trust-bar {
  background: var(--white);
  padding: 18px 20px;
  border-bottom: 2px solid var(--border);
}
.trust-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}
.trust-item span { font-size: 1.2rem; }

/* --- Section ------------------------------------------------- */
.section { padding: 72px 20px; }
.section--light { background: var(--white); }
.section--colored { background: linear-gradient(135deg, #F0EAFA 0%, #E8F8F4 100%); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header p { color: var(--text-soft); font-size: 1.05rem; max-width: 600px; margin: 12px auto 0; }

/* --- Simulator card ------------------------------------------ */
.simulator-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Progress bar -------------------------------------------- */
.progress-bar {
  background: var(--cream);
  padding: 24px 32px 0;
}
.progress-bar__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.progress-step {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  transition: var(--transition);
}
.progress-step.active  { background: var(--violet); }
.progress-step.done    { background: var(--green); }

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0;
}
.progress-labels span.active { color: var(--violet); }

/* --- Step content -------------------------------------------- */
.step-content {
  padding: 32px;
}
.step-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-subtitle {
  color: var(--text-soft);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* --- Form fields --------------------------------------------- */
.field-group { margin-bottom: 24px; }
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.field-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-option {
  position: relative;
}
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-option label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--cream);
}
.radio-option input[type="radio"]:checked + label {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}
.radio-option label:hover { border-color: var(--violet-l); }

/* Counter */
.counter-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.counter-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
}
.counter-btn:hover { background: var(--violet); color: var(--white); border-color: var(--violet); }
.counter-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--violet);
  min-width: 40px;
  text-align: center;
}

/* Toggle */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 4px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked ~ .toggle-slider { background: var(--violet); }
.toggle-switch input:checked ~ .toggle-slider::before { transform: translateX(24px); }
.toggle-label { font-weight: 700; font-size: 0.95rem; }

/* Money input */
.money-input-wrap {
  position: relative;
}
.money-prefix {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--text-soft);
  font-size: 1.05rem;
  pointer-events: none;
}
.money-input {
  width: 100%;
  padding: 14px 16px 14px 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.money-input:focus { border-color: var(--violet); background: var(--white); }

/* Slider */
.slider-wrap { display: flex; flex-direction: column; gap: 8px; }
.slider-row { display: flex; align-items: center; gap: 16px; }
.range-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--violet);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(123,94,167,0.4);
  transition: var(--transition);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-value {
  min-width: 120px;
  text-align: right;
  font-weight: 800;
  color: var(--violet);
  font-size: 1rem;
}

/* --- Step nav ------------------------------------------------ */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px 32px;
  gap: 12px;
}
.step-nav--end { justify-content: flex-end; }

/* --- Résultat ------------------------------------------------ */
#section-resultat { display: none; }

.result-hero {
  text-align: center;
  padding: 48px 32px 32px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.result-hero h2 { color: var(--white); margin-bottom: 8px; }
.result-amount {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin: 16px 0 8px;
}
.result-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
}

.result-body {
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.result-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.result-card__value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--violet);
}
.result-card__label {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 700;
  margin-top: 4px;
}

.chart-wrap {
  max-width: 280px;
  margin: 0 auto 28px;
}

.heritiers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.heritiers-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--border);
}
.heritiers-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.heritiers-table tr:last-child td { border-bottom: none; }
.tag-droits { color: var(--pink); font-weight: 800; }
.tag-net    { color: var(--green-d); font-weight: 800; }

.result-cta-box {
  background: linear-gradient(135deg, #F0EAFA 0%, #E8F8F4 100%);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 2px dashed var(--violet-l);
}
.result-cta-box h3 { margin-bottom: 8px; }
.result-cta-box p { color: var(--text-soft); margin-bottom: 20px; font-size: 0.95rem; }

/* --- Recommandations ---------------------------------------- */
#section-recommandations { display: none; }

.reco-hero {
  text-align: center;
  padding: 56px 32px 40px;
}
.reco-hero__savings {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--green-d);
  margin: 16px 0 8px;
}
.reco-hero__badge {
  display: inline-block;
  background: var(--green);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.reco-grid {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.reco-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.reco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.reco-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
}
.reco-card__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reco-card__icon--violet { background: #F0EAFA; }
.reco-card__icon--yellow { background: #FFF8E1; }
.reco-card__icon--green  { background: #E8F8F4; }
.reco-card__icon--pink   { background: #FFE8F2; }
.reco-card__icon--sky    { background: #E0F4FF; }

.reco-card__meta { flex: 1; }
.reco-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.reco-card__gain {
  color: var(--green-d);
  font-weight: 900;
  font-size: 1.1rem;
}
.reco-card__gain small { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }

.reco-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.badge--easy   { background: #E8F8F4; color: var(--green-d); }
.badge--medium { background: #FFF8E1; color: #B07800; }
.badge--hard   { background: #FFE8F2; color: var(--pink-d); }

.reco-card__chevron {
  font-size: 1.2rem;
  color: var(--text-soft);
  transition: var(--transition);
  margin-left: 8px;
  align-self: center;
}
.reco-card.open .reco-card__chevron { transform: rotate(180deg); }

.reco-card__body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.reco-card.open .reco-card__body { display: block; }

.reco-card__body p { color: var(--text-soft); font-size: 0.93rem; margin-top: 16px; }

.reco-steps {
  margin: 16px 0;
  list-style: none;
  counter-reset: steps;
}
.reco-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px dashed var(--border);
}
.reco-steps li:last-child { border-bottom: none; }
.reco-steps li::before {
  content: counter(steps);
  background: var(--violet);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.reco-card__affiliate {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reco-card__affiliate p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}
.affiliate-disclaimer {
  font-size: 0.72rem !important;
  font-style: italic;
  color: var(--text-soft) !important;
  margin-top: 4px !important;
}

/* --- Résultat optimisé --------------------------------------- */
.result-optimized {
  background: linear-gradient(135deg, var(--green) 0%, var(--sky) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}
.result-optimized h2 { color: var(--text); margin-bottom: 12px; }
.result-optimized .amount-new {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--text);
}
.result-optimized .saving-badge {
  display: inline-block;
  background: var(--text);
  color: var(--yellow);
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 100px;
  margin: 12px 0;
}

/* --- Section SEO --------------------------------------------- */
.seo-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 20px;
}
.seo-section h2 { margin-bottom: 16px; color: var(--violet); }
.seo-section h3 { margin: 28px 0 8px; color: var(--violet-d); font-size: 1.1rem; }
.seo-section p  { color: var(--text-soft); }
.seo-section ul { color: var(--text-soft); padding-left: 24px; margin-bottom: 16px; }
.seo-section ul li { margin-bottom: 6px; }

/* --- FAQ ---------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-q::after { content: '▾'; font-size: 1.1rem; color: var(--violet); transition: var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { display: none; padding-bottom: 16px; color: var(--text-soft); font-size: 0.93rem; }
.faq-item.open .faq-a { display: block; }

/* --- Footer -------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 48px 20px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer__logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.site-footer__logo span { color: var(--yellow); }
.site-footer__links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.site-footer__disclaimer { max-width: 600px; margin: 24px auto 0; font-size: 0.78rem; line-height: 1.6; }

/* --- Animations --------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }

@keyframes pop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.pop-in { animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ============================================================
   ACTION CARDS — recommandations concrètes
   ============================================================ */

.actions-list {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.action-card:hover { box-shadow: var(--shadow-lg); }

.action-card__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.action-card__emoji {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.action-card__main {
  flex: 1;
  min-width: 0;
}

.action-card__titre {
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 3px;
  color: var(--text);
  line-height: 1.3;
}

.action-card__sous-titre {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 6px;
  line-height: 1.4;
}

.action-card__gain {
  text-align: right;
  flex-shrink: 0;
  padding-left: 12px;
}

.action-gain-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-d);
  white-space: nowrap;
}

.action-gain-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.action-card__detail {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.action-pourquoi {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.action-etapes {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-etapes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.etape-num {
  background: var(--violet);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.action-affiliate {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.action-affiliate__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.action-affiliate__disclaimer {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

.action-toggle {
  width: 100%;
  background: var(--cream);
  border: none;
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.action-toggle:hover { background: #F0EAFA; }

.action-toggle-chevron {
  margin-left: auto;
  display: inline-block;
  transition: transform 0.2s;
}

/* ============================================================
   NOUVEAUX COMPOSANTS v2
   ============================================================ */

/* --- Skull héro --------------------------------------------- */
.hero-skull {
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  animation: skullBob 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.25));
}
@keyframes skullBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* --- Landing hooks ------------------------------------------ */
.landing-hooks {
  background: var(--white);
  padding: 64px 20px 56px;
  border-bottom: 3px solid var(--border);
}
.hooks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.hook-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.hook-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hook-card--featured {
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.04);
}
.hook-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.hook-card--featured .hook-label,
.hook-card--featured .hook-sub { color: rgba(255,255,255,0.85); }
.hook-emoji { font-size: 2.2rem; margin-bottom: 12px; }
.hook-stat  {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 8px;
}
.hook-card--featured .hook-stat { color: var(--yellow); }
.hook-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.hook-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}
.hooks-cta { text-align: center; }
.hooks-cta-sub {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* --- Section AV dédiée -------------------------------------- */
.av-section {
  background: linear-gradient(135deg, #F0EAFA 0%, #EBF9F5 100%);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--border);
  margin-bottom: 24px;
}
.av-section__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.av-section__icon { font-size: 2rem; flex-shrink: 0; }
.av-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}
.av-badge--green  { background: var(--green);  color: var(--text); }
.av-badge--orange { background: var(--yellow); color: var(--text); }

/* --- Donation rows (générées dynamiquement) ----------------- */
.donation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.donation-row:last-child { border-bottom: none; }
.donation-label {
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 100px;
  color: var(--text);
}

/* --- CTA expert patrimonial --------------------------------- */
.expert-cta-wrap {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.expert-cta {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.expert-cta__icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}
.expert-cta__content h3 { margin-bottom: 6px; }
.expert-cta__content p  { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0; }

/* --- Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .result-grid { grid-template-columns: 1fr; }
  .step-content { padding: 20px 16px; }
  .step-nav { padding: 0 16px 20px; }
  .progress-bar { padding: 16px 16px 0; }
  .result-body { padding: 20px 16px; }
  .reco-card__affiliate { flex-direction: column; }
  .hero { padding: 48px 20px 72px; }
  .result-hero { padding: 32px 20px 24px; }
  .result-optimized { padding: 24px 20px; }
  .progress-labels { font-size: 0.68rem; }
  .money-input { font-size: 1rem; }
  .hooks-grid { grid-template-columns: 1fr; }
  .hook-card--featured { transform: none; }
  .hook-card--featured:hover { transform: translateY(-4px); }
  .expert-cta { flex-direction: column; gap: 12px; }
  .donation-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .radio-group { flex-direction: column; }
  .hooks-grid { gap: 16px; }
}

/* ============================================================
   CHAT CONSEILLER — Léa
   ============================================================ */

/* --- Page shell --------------------------------------------- */
.chat-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--cream);
}

/* --- Header -------------------------------------------------- */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}

.chat-back-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
  padding: 6px 12px;
  border: 2px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition);
}
.chat-back-btn:hover { background: #F0EAFA; text-decoration: none; }

.chat-lea-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.lea-avatar-sm {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-lea-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}

.chat-lea-status {
  font-size: 0.72rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.site-logo-mini {
  font-size: 1.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* --- Bandeau "pas de simulation" ---------------------------- */
.no-ctx-banner {
  background: linear-gradient(90deg, var(--yellow) 0%, #FFE599 100%);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}
.no-ctx-link {
  color: var(--violet-d);
  font-weight: 800;
  text-decoration: underline;
}

/* --- Zone principale ---------------------------------------- */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* --- Messages ----------------------------------------------- */
.msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 85%;
  animation: fadeUp 0.3s ease both;
}

.msg--lea  { align-self: flex-start; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.msg-bubble p { margin: 0 0 8px; }
.msg-bubble p:last-child { margin-bottom: 0; }

.msg--lea .msg-bubble {
  background: var(--white);
  border: 2px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.msg--user .msg-bubble {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-d) 100%);
  color: var(--white);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(123,94,167,0.3);
}

/* --- Typing indicator --------------------------------------- */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  min-width: 56px;
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  background: var(--violet-l);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* --- Suggestions -------------------------------------------- */
.suggestions-wrap {
  padding: 4px 16px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.suggestion-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.suggestion-btn:hover {
  background: #F0EAFA;
  border-color: var(--violet-l);
}

/* --- Zone de saisie ----------------------------------------- */
.chat-footer {
  background: var(--white);
  border-top: 2px solid var(--border);
  padding: 12px 16px;
  flex-shrink: 0;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 8px 8px 14px;
  transition: var(--transition);
}
.chat-input-area:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(123,94,167,0.12);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  resize: none;
  outline: none;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.chat-input::placeholder { color: var(--text-soft); }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(123,94,167,0.35);
}
.send-btn:hover   { transform: scale(1.08); box-shadow: 0 6px 18px rgba(123,94,167,0.5); }
.send-btn:active  { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.chat-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.char-count {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.chat-disclaimer {
  font-size: 0.68rem;
  color: var(--text-soft);
  text-align: right;
}

/* --- Bouton "Parler à Léa" dans simulation.html ------------ */
.lea-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(123,94,167,0.35);
  transition: var(--transition);
}
.lea-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(123,94,167,0.5);
  text-decoration: none;
  color: var(--white);
}
.lea-cta-btn .lea-badge {
  background: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

/* --- Responsive chat ---------------------------------------- */
@media (max-width: 640px) {
  .msg { max-width: 95%; }
  .suggestions-wrap { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .suggestions-wrap::-webkit-scrollbar { display: none; }
  .chat-disclaimer { display: none; }
  .chat-lea-identity .chat-lea-name { font-size: 0.88rem; }
}
