/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* PAGE */
body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background-color: #87a290;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  gap: 24px;

  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: clamp(40px, 10vh, 120px);
}

/* LOGO */
.logo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(16px, 6vh, 64px);
}

.logo {
  width: min(260px, 70vw);
  height: auto;
}

/* CARD */
.card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  position: relative;
}

/* BACK BUTTON */
.back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #233239;
  padding: 6px;
  line-height: 1;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .back-btn:hover {
    transform: translateX(-5px);
  }
}

/* TITRES */
.card-title {
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.card-subtitle {
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin-bottom: 30px;
  color: #555;
}

/* QUESTION */
.question-text {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}

/* OPTIONS */
.options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.choice-btn {
  background: #87a290;
  color: white;
  border: none;
  padding: 16px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  max-width: 520px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .choice-btn:hover {
    background: #6d8b82;
    transform: translateY(-2px);
  }
}

/* ÉTAPES */
.step-indicator {
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: #777;
}

/* RESULTATS (legacy) */
.result-text {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  text-align: center;
  margin-bottom: 22px;
}

.result-text p {
  margin-bottom: 12px;
}

.result-list {
  text-align: left;
  margin: 10px auto 18px;
  max-width: 800px;
  padding-left: 20px;
}

.result-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f7f6;
  border: 1px solid #dde3df;
  font-size: 0.98rem;
  text-align: left;
}

.result-warning .result-list {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* TABLET */
@media (min-width: 768px) {
  .card {
    max-width: 960px;
    padding: 44px 52px;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  }

  .choice-btn {
    width: auto;
    min-width: 240px;
    padding: 18px 32px;
    font-size: 1.15rem;
  }

  .options-container {
    gap: 22px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .card {
    max-width: 1100px;
    padding: 64px 80px;
    border-radius: 32px;
  }

  .options-container {
    gap: 28px;
  }

  .choice-btn {
    min-width: 280px;
    font-size: 1.2rem;
    padding: 20px 38px;
  }
}

/* LARGE SCREENS */
@media (min-width: 1200px) {
  .card {
    width: 85vw;
    max-width: 1400px;
  }
}

/* VERY SMALL SCREENS */
@media (max-width: 360px) {
  .card {
    padding: 22px 14px;
  }

  .choice-btn {
    font-size: 1rem;
    padding: 14px;
  }
}

/* ====== RESULT PAGE (amélioration UI) ====== */

.result-wrap {
  display: grid;
  gap: 18px;
}

.result-hero {
  background: #ffffff;
  border: 1px solid #eef2ef;
  border-radius: 20px;
  padding: 18px;
}

.result-hero h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #233239;
}

.result-hero p {
  color: #444;
  line-height: 1.45;
}

.result-grid {
  display: grid;
  gap: 14px;
}

.result-card {
  background: #f6f8f7;
  border: 1px solid #e1e7e3;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
}

.result-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #233239;
}

.result-card p {
  color: #444;
  line-height: 1.45;
  margin-bottom: 10px;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  background: rgba(135, 162, 144, 0.18);
  border: 1px solid rgba(135, 162, 144, 0.35);
  color: #233239;
}

.result-product {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
  margin: 10px 0 0;
}

.result-product img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2ef;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.result-model {
  width: 100%;
}

/* CTA zone */
.result-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Bouton principal (Recommencer) */
.choice-btn.primary {
  background: #87a290;
}

/* Boutons secondaires plus discrets */
.choice-btn.secondary {
  background: #233239;
  font-size: 1rem;
  padding: 14px 22px;
}

@media (hover: hover) and (pointer: fine) {
  .choice-btn.secondary:hover {
    background: #1a2429;
  }
}

/* lien produit plus petit + espacement */
.choice-btn.choice-link {
  font-size: 1rem;
  padding: 14px 22px;
  max-width: 380px;
}

.result-model a.choice-btn {
  margin-top: 18px;
}

/* listes plus propres dans les cartes */
.result-card .result-list {
  margin: 10px 0 0;
  max-width: none;
  padding-left: 18px;
}

.docs-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.docs-list li {
  margin: 10px 0;
}

.doc-link {
  color: #233239;
  text-decoration: underline;
  font-weight: 600;
}

.doc-link:focus,
.choice-btn:focus,
.back-btn:focus {
  outline: 2px solid rgba(35, 50, 57, 0.35);
  outline-offset: 3px;
}

/* ✅ demandé : boutons du bloc contact plus bas */
.contact-card p {
  margin-bottom: 0;
}
.contact-card .result-cta {
  margin-top: 18px;
  justify-content: center;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .result-wrap {
    gap: 22px;
  }

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

  .result-product {
    grid-template-columns: 420px 1fr;
    justify-items: start;
    gap: 22px;
  }

  .result-product img {
    max-width: 420px;
  }
}

.result-wrap > .choice-btn.primary {
  justify-self: center;
}

/* ===== Fix flèche retour sur mobile ===== */
@media (max-width: 480px) {
  .back-btn {
    top: 10px;
    left: 10px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .card-title {
    padding-top: 28px;
  }
}

/* ====== AJOUT : BULLE TARIFS (en bas du résultat) ====== */
.pricing-bubble {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f1b434;
  border: 1px solid #f1b434;

  color: #233239;
  text-align: left;
}

.pricing-bubble h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #233239;
}

.pricing-bubble p {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.45;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
  font-size: 0.98rem;
}

.pricing-table th,
.pricing-table td {
  padding: 10px 10px;
  border-top: 1px solid rgba(35, 50, 57, 0.12);
  vertical-align: top;
}

.pricing-table th {
  text-align: left;
  font-weight: 700;
}

.pricing-note {
  font-size: 0.92rem;
  color: #233239;
  opacity: 0.9;
}
