:root {
  --ink: #10233F;       /* encre profonde — texte, fond foncé */
  --ink-soft: #1D3A5F;
  --gold: #B8933C;      /* accent unique — laiton/économie */
  --gold-deep: #93752D;
  --paper: #EEF0E8;      /* papier — fond de page */
  --card: #FFFFFF;
  --line: #D7D9CC;
  --muted: #5B6259;
  --radius: 4px;
}

* { 
  box-sizing: border-box; 
}

html, body {
  overflow-x: hidden; /* Empêche tout défilement horizontal indésirable sur mobile */
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

h1, h2, .logo, .comparison__value {
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

a { color: inherit; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo { font-size: 21px; color: var(--ink); }

/* Navigation Desktop */
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

/* Bouton Menu Burger (visible uniquement sur mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Hero Section Desktop */
.hero {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: flex;
  justify-content: center;
  gap: 120px; /* Écart ajusté pour dévoiler le visage/sourire sans créer de trop grand vide */
  align-items: start;
  background-image: linear-gradient(180deg, rgba(16, 35, 63, 0.1), rgba(16, 35, 63, 0.15)), url("hero-bg.jpg");
  background-size: cover;
  background-position: 50% 18%; /* Positionnement vertical centré sur le visage */
  border-radius: var(--radius);
}
.hero__copy {
  background: rgba(238, 240, 232, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  width: 100%;
}
.hero__eyebrow {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 16ch;
}
.hero__lead { 
  font-size: 17px; 
  color: var(--muted); 
  max-width: 44ch; 
  margin-bottom: 28px; 
  line-height: 1.55; 
}
.hero__points { 
  list-style: none; 
  padding: 18px 0 0; 
  margin: 0; 
  border-top: 1px solid var(--line); 
  display: flex; 
  flex-direction: column; 
}
.hero__points li {
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 22px;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* Quiz Card */
.quiz-card {
  background: rgba(238, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 20px 40px -24px rgba(16, 35, 63, 0.4);
  position: relative;
  max-width: 440px;
  width: 100%;
}
.quiz-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ink);
}
.quiz-card__progress { display: flex; gap: 6px; margin-bottom: 30px; }
.quiz-card__progress .dot { height: 3px; flex: 1; background: var(--line); }
.quiz-card__progress .dot.is-active,
.quiz-card__progress .dot.is-done { background: var(--gold); }

.quiz-step { display: none; border: none; padding: 0; margin: 0; }
.quiz-step.is-active { display: block; }
.quiz-step legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quiz-step__question {
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--ink);
}

.choice-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.choice {
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  width: 100%;
}
.choice:hover { border-color: var(--ink); }
.choice.is-selected { border-color: var(--gold); background: #FBF6E9; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; font-size: 14px; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,35,63,0.08); }
.field--checkbox { flex-direction: row; align-items: flex-start; font-weight: 400; font-size: 13px; gap: 9px; color: var(--muted); }
.field--checkbox input { margin-top: 3px; }

.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.12s ease;
}
.btn-submit:hover { background: var(--ink-soft); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; }

.btn-back {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-step--success, .quiz-step--error { display: none; text-align: left; }
.quiz-step--success.is-active, .quiz-step--error.is-active { display: block; }
.quiz-step--success h2 { color: var(--ink); font-size: 24px; }
.quiz-step--error h2 { color: var(--gold-deep); font-size: 24px; }

/* Trust Bar */
.trust-bar {
  background: var(--ink);
  color: #E4E7DE;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  padding: 22px 24px;
  font-size: 14px;
}
.trust-bar__item strong { display: block; font-size: 19px; font-family: "Fraunces", serif; color: #fff; }

/* Sections */
.section { max-width: 1000px; margin: 0 auto; padding: 80px 24px; }
.section--muted { background: var(--card); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--muted > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 30px; color: var(--ink); margin-bottom: 40px; text-align: left; max-width: 20ch; }

.comparison { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.comparison__card {
  flex: 1 1 260px;
  padding: 28px 30px;
  background: var(--card);
}
.comparison__card--before { border-right: 1px solid var(--line); }
.comparison__card--after { background: #FBF6E9; }
.comparison__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.comparison__value { display: block; font-size: 32px; color: var(--ink); margin-bottom: 10px; }
.comparison__value small { font-size: 14px; font-family: "Inter", sans-serif; color: var(--muted); font-weight: 400; }
.comparison__arrow { display: none; }
.comparison__footnote { text-align: left; font-size: 12px; color: var(--muted); margin-top: 20px; max-width: 60ch; }

.testimonials { display: flex; flex-direction: column; gap: 0; }
.testimonials blockquote {
  margin: 0;
  padding: 28px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
}
.testimonials blockquote:first-child { padding-top: 0; }
.testimonials p { font-size: 16px; margin: 0; font-family: "Fraunces", serif; font-weight: 500; color: var(--ink); line-height: 1.4; }
.testimonials cite { font-size: 13px; color: var(--muted); font-style: normal; white-space: nowrap; }

.accordion details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.accordion summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 20px;
  font-weight: 400;
  margin-left: 16px;
  flex-shrink: 0;
}
.accordion details[open] summary::after { content: "–"; }
.accordion p { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 62ch; line-height: 1.6; }

/* Footer (Conteneur vide prêt à recevoir le script externe) */
.site-footer { 
  background: var(--ink); 
  color: #C9CFC1; 
  padding: 44px 24px; 
  margin-top: 40px; 
}

/* Expired state */
.expired { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.expired__card { max-width: 460px; text-align: center; }
.expired__card h1 { font-size: 24px; color: var(--ink); }

/* ==========================================================================
   ADAPTATION RESPONSIVE MOBILE ET TABLETTE (< 880px)
   ========================================================================== */

@media (max-width: 880px) {
  /* Navigation Mobile Burger */
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(16, 35, 63, 0.08);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }

  /* Hero Mobile : Disposition en colonne fluide sans chevauchement */
  .hero { 
    flex-direction: column;
    padding: 28px 16px 36px; 
    gap: 24px;
    background-position: center; 
  }
  .hero__copy {
    max-width: 100%;
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: clamp(24px, 6vw, 32px);
    max-width: 100%;
    margin-bottom: 16px;
  }
  .hero__lead {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* Carte Quiz Mobile */
  .quiz-card {
    max-width: 100%;
    padding: 22px 18px;
  }
  .quiz-step__question {
    font-size: 17px;
  }

  /* Ergonomie des boutons & formulaires sur écran tactile */
  .choice {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px; /* Taille optimale pour le clic tactile */
  }

  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] {
    font-size: 16px; /* Taille minimale de 16px pour éviter le zoom automatique iOS Safari */
    padding: 12px;
  }

  .btn-submit {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Grille 2x2 pour le bandeau de réassurance sur mobile */
  .trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    text-align: center;
    padding: 20px 14px;
  }
  .trust-bar__item strong {
    font-size: 18px;
  }

  /* Adaptations des sections */
  .comparison { flex-direction: column; }
  .comparison__card--before { border-right: none; border-bottom: 1px solid var(--line); }
  .testimonials blockquote { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 48px 18px; }
  .section h2 { font-size: 24px; max-width: 100%; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 12px 32px;
  }
  .hero__copy {
    padding: 18px 16px;
  }
  .quiz-card {
    padding: 20px 16px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .trust-bar {
    gap: 12px 8px;
    padding: 16px 12px;
  }
}

/* ==========================================================================
   STYLES CIBLÉS : ÉTAPES 2 ET 3 (Champs, Sélecteurs et Navigation)
   ========================================================================== */

/* Habillage des champs numériques, dates et sélecteurs des étapes 2 et 3 */
.quiz-step[data-step="2"] .field input,
.quiz-step[data-step="2"] .field select,
.quiz-step[data-step="3"] .field input,
.quiz-step[data-step="3"] .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background-color: var(--card);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Flèche personnalisée pour les menus déroulants <select> */
.quiz-step[data-step="2"] .field select,
.quiz-step[data-step="3"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%20%2310233F' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Focus sur les champs de saisie */
.quiz-step[data-step="2"] .field input:focus,
.quiz-step[data-step="2"] .field select:focus,
.quiz-step[data-step="3"] .field input:focus,
.quiz-step[data-step="3"] .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 35, 63, 0.08);
}

/* Bouton "Continuer →" */
.quiz-step[data-step="2"] .btn-next,
.quiz-step[data-step="3"] .btn-next {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.15s ease;
}

.quiz-step[data-step="2"] .btn-next:hover,
.quiz-step[data-step="3"] .btn-next:hover {
  background: var(--ink-soft);
}

/* Bouton "← Retour" */
.quiz-step[data-step="2"] .btn-back,
.quiz-step[data-step="3"] .btn-back {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.quiz-step[data-step="2"] .btn-back:hover,
.quiz-step[data-step="3"] .btn-back:hover {
  color: var(--ink);
}

/* Mise en page de la question Fumeur (Étape 3) */
.quiz-step[data-step="3"] .fumeur-options {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.quiz-step[data-step="3"] .fumeur-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quiz-step[data-step="3"] .fumeur-option:has(input:checked) {
  border-color: var(--gold);
  background: #FBF6E9;
  font-weight: 600;
}
/* ==========================================================================
   STYLE SPÉCIFIQUE : OPTION FUMEUR (BOUTONS RADIO ET CARTES)
   ========================================================================== */

/* Conteneur des deux choix côte à côte */
.fumeur-options {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

/* Carte de chaque option (Oui / Non) */
.fumeur-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* Style de la puce radio (Ronde) */
.fumeur-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--line);
  border-radius: 50%; /* Puce ronde */
  background-color: var(--card);
  cursor: pointer;
  margin: 0;
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease;
}

/* Point central de la puce sélectionnée */
.fumeur-option input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background-color: var(--ink);
}

.fumeur-option input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Changement de style au survol et à la sélection */
.fumeur-option:hover {
  border-color: var(--ink);
}

.fumeur-option:has(input:checked) {
  border-color: var(--gold);
  background-color: #FBF6E9;
  font-weight: 600;
}