:root {
  --dark-bg: #0C1222;
  --dark-card: #161F36;
  --indigo: #2B2E63;
  --indigo-dark: #1D1E44;
  --periwinkle: #7C8AEB;
  --green-accent: #25C974;
  --green-hover: #1FB366;
  --chalk: #F8FAFC;
  --ink: #1D1E2C;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --line: #DADCF0;
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--dark-bg);
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: inherit; }

/* Header */
.site-header {
  background: rgba(12, 18, 34, 0.659);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { 
  font-size: 22px; 
  color: #ffffff; 
  letter-spacing: -0.02em; 
}
.site-nav { 
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.site-nav a { 
  font-size: 14px; 
  font-weight: 600; 
  text-decoration: none; 
  color: var(--text-light); 
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  opacity: 0.85; 
  transition: all 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active { 
  opacity: 1; 
  color: #ffffff !important; 
  background: var(--green-accent);
  box-shadow: 0 4px 14px rgba(37, 201, 116, 0.35);
  transform: translateY(-1px);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 201, 116, 0.35);
}

/* Hero */
.hero {  
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 56px 24px 90px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.671) 0%, rgba(12, 18, 34, 0.885) 100%),
              url('Assurance.jpg') center / cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero > * {
  max-width: 860px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero__trust-badge,
.hero__eyebrow,
.hero h1,
.hero__lead,
.hero__disclaimer {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero__eyebrow { 
  color: #F1F5F9; 
  font-weight: 600; 
  font-size: 14px; 
  margin: 0 auto 16px auto; 
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); 
}
.hero h1 { 
  font-size: clamp(32px, 4.5vw, 48px); 
  margin: 0 auto 16px auto; 
  color: #FFFFFF; 
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero__lead { 
  font-size: 17px; 
  color: #E2E8F0; 
  margin: 0 auto 40px auto; 
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.hero__trust-badge {
  display: block;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  color: #F1F5F9; 
  font-weight: 600; 
  font-size: 14px; 
  margin: 0 auto 12px auto; 
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.hero__disclaimer { 
  font-size: 12px; 
  color: #CBD5E1; 
  margin: 28px auto 0 auto; 
  line-height: 1.5;
}

/* Simulator */
.simulator {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.simulator__inputs { 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  gap: 22px; 
  margin-bottom: 0; 
  padding: 8px;
}

.simulator__result {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 32px 24px;
  border-top: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-group__label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.slider-group__label output { 
  color: #FFFFFF; 
  font-family: "Space Grotesk", sans-serif; 
  font-weight: 700;
  font-size: 16px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  outline: none;
  accent-color: var(--green-accent);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--green-accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--green-accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.age-toggle__label { 
  display: block; 
  font-size: 14px; 
  font-weight: 500; 
  margin-bottom: 12px; 
  color: #FFFFFF; 
}
.age-toggle__options { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px; 
}
.age-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #1E293B;
  transition: all 0.2s ease;
}
.age-btn:hover {
  background: #FFFFFF;
}
.age-btn.is-selected { 
  background: var(--green-accent); 
  color: #FFFFFF; 
  box-shadow: 0 4px 12px rgba(37, 201, 116, 0.35);
}

.simulator__result-label { 
  display: block; 
  font-size: 15px; 
  color: #64748B; 
  font-weight: 500;
  margin-bottom: 8px; 
}
.simulator__result-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  font-weight: 700;
  color: var(--green-accent);
  background: none;
  -webkit-text-fill-color: initial;
  line-height: 1;
  margin: 8px 0 16px;
}
.simulator__result-sub { 
  display: block; 
  font-size: 13px; 
  color: #64748B; 
  margin-top: 4px; 
  min-height: 18px; 
}

.btn-reveal, .btn-submit {
  margin-top: 16px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: var(--green-accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(37, 201, 116, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-reveal:hover, .btn-submit:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 201, 116, 0.45);
}
.btn-reveal:active, .btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled { opacity: 0.6; cursor: progress; }

/* Formulaire Lead */
.lead-form {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 20px;
  text-align: left;
  box-shadow: 0 24px 48px -28px rgba(43, 46, 99, 0.35);
}
.lead-form.is-visible { display: block; }
.lead-form.is-success .lead-form__fields { display: none; }

.lead-form__success { display: none; text-align: center; padding: 8px 0; }
.lead-form.is-success .lead-form__success { display: block; }

.lead-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 26px;
  margin-bottom: 16px;
}
.lead-form__success h3 { font-size: 22px; color: var(--indigo-dark); margin: 0 0 8px; }
.lead-form__success p { font-size: 14px; color: #52546b; margin: 0; }
.lead-form__intro { font-weight: 600; color: var(--indigo-dark); margin: 0 0 18px; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lead-form__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #6b6d85;
  font-weight: 500;
}

/* Champs de saisie */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background-color: #ffffff;
  color: var(--ink);
  box-sizing: border-box;
}
.field input:focus,
.field select:focus { outline: 2px solid var(--periwinkle); outline-offset: 1px; }
.field--checkbox { flex-direction: row; align-items: flex-start; font-weight: 400; font-size: 13px; gap: 8px; }
.field--checkbox input { margin-top: 3px; }

.lead-form__feedback { font-size: 14px; margin-top: 12px; min-height: 20px; }
.lead-form__feedback.is-success { color: #1c7a4a; }
.lead-form__feedback.is-error { color: #b0402c; }

/* ---------- Barre de progression (Stepper) ---------- */
.form-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.stepper-step.is-active,
.stepper-step.is-completed {
  opacity: 1;
}

.stepper-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.stepper-step.is-active .stepper-bubble {
  background: var(--green-accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 201, 116, 0.3);
}

.stepper-step.is-completed .stepper-bubble {
  background: var(--indigo-dark);
  color: #ffffff;
}

.stepper-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo-dark);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 12px;
  transition: background 0.3s ease;
}

.stepper-line.is-active {
  background: var(--green-accent);
}

/* ---------- Gestion des panneaux d'étapes ---------- */
.form-step-pane {
  display: none; /* Masque toutes les étapes par défaut */
}

.form-step-pane.is-active {
  display: block; /* Affiche uniquement l'étape active */
}

/* ---------- Boutons d'action du Stepper ---------- */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-step {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-next {
  background: var(--indigo-dark);
  color: #ffffff;
  margin-left: auto;
}

.btn-next:hover {
  background: var(--indigo);
  transform: translateY(-1px);
}

.btn-prev {
  background: #E2E8F0;
  color: #475569;
}

.btn-prev:hover {
  background: #CBD5E1;
}

/* ---------- Style du choix Oui / Non (Fumeur) ---------- */
.lead-form__choice { margin: 12px 0 16px; }
.choice-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--indigo-dark); }
.pill-group { display: flex; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 2px solid var(--line); border-radius: 999px;
  font-weight: 600; background: #fff; color: var(--indigo-dark); transition: all .15s;
}
.pill input:checked + span { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.pill input:checked + span::before { content: "✓"; font-weight: 700; color: var(--green-accent); }
.pill input:focus-visible + span { outline: 3px solid var(--periwinkle); outline-offset: 2px; }

/* Sections */
.section { max-width: 1000px; margin: 0 auto; padding: 64px 24px; }
.section--muted {
  background: #161F36; 
  max-width: none;
}
.section--muted > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section h2 { 
  font-size: 30px; 
  color: #FFFFFF; 
  margin-bottom: 36px; 
  text-align: center;
}

/* Steps (Desktop) */
.steps { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { 
  text-align: center;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-accent);
  color: #FFFFFF;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(37, 201, 116, 0.35);
}
.step h3 { 
  font-size: 14px; 
  color: #CBD5E1; 
  line-height: 1.5;
  margin: 0;
}
.step p { font-size: 14px; color: #52546b; margin: 0; }

/* Testimonials (Desktop) */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials blockquote { 
  margin: 0; 
  padding: 24px; 
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  cursor: pointer;
}

.testimonials blockquote:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(37, 201, 116, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}
.testimonials p { 
  font-size: 14px; 
  color: #F8FAFC; 
  line-height: 1.5;
  margin: 0 0 14px;
}
.testimonials cite { 
  font-size: 13px; 
  color: #94A3B8; 
  font-style: normal;
}

/* Accordion */
.accordion details { 
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); 
  padding: 18px 0;
}
.accordion summary { 
  font-weight: 600; 
  cursor: pointer; 
  font-size: 16px; 
  color: #FFFFFF; 
  transition: color 0.2s ease;
}
.accordion summary:hover {
  color: var(--green-accent);
}
.accordion p { margin: 12px 0 0; font-size: 14px; color: #52546b; }

/* Footer */
.site-footer { 
  background: #080D1A; 
  color: #E2E8F0; 
  padding: 48px 24px; 
  margin-top: 40px; 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__inner { max-width: 1080px; margin: 0 auto; }
.site-footer__inner p { 
  font-size: 13px; 
  color: #94A3B8; 
  line-height: 1.6;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.site-footer__links a { 
  font-size: 13px; 
  text-decoration: underline; 
  color: #E2E8F0; 
  transition: color 0.2s ease;
}
.site-footer__links a:hover {
  color: var(--green-accent);
}
.site-footer__legal { 
  font-size: 12px; 
  color: #64748B; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 18, 34, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .simulator {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .lead-form {
    padding: 20px 16px;
  }

  .lead-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stepper-label {
    display: none; /* Masque les libellés texte sur mobile pour conserver de l'espace */
  }
}