/* Zonga — UX pass 22/09 : plus dynamique / intuitif, sans redesign */

/* ── Bannière devis : visible, CTA vivant ── */
.book-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 8px 20px rgba(57, 49, 39, 0.06);
}

.book-banner__cta {
  animation: ctaGlow 2.8s ease-in-out infinite;
}

.book-banner__cta:hover,
.book-banner__cta:focus-visible {
  animation: none;
  transform: translateY(-1px);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(154, 120, 72, 0.18); }
  50% { box-shadow: 0 6px 18px rgba(154, 120, 72, 0.38); }
}

/* ── Hero : une action, preuve à côté ── */
.hero-copy {
  animation: fadeUp 0.45s ease both;
}

.hero-price strong {
  animation: priceIn 0.5s ease 0.12s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes priceIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hero-actions .button-primary {
  min-height: 54px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-actions .button-primary:active {
  transform: scale(0.98);
}

.g-reviews--hero {
  margin-top: 14px !important;
  opacity: 1 !important;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 149, 106, 0.22);
}

/* ── Hero simple & intuitif ── */
.hero-cta-hint {
  margin: 10px 0 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6b645a;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 360px);
  margin-top: 8px !important;
}

.hero-path {
  margin: 18px 0 6px !important;
}

.hero-proof-simple {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 149, 106, 0.28);
  text-decoration: none !important;
  color: #3a3329 !important;
  font-size: 13px;
  font-weight: 600;
}

.hero-proof-simple__stars {
  display: inline-flex;
  gap: 1px;
}

.hero-proof-simple__stars svg {
  width: 12px;
  height: 12px;
  display: block;
}

.hero-proof-simple strong {
  font-weight: 800;
}

.preuve-ba-title {
  margin: 32px 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #1f1b16;
}

.g-reviews--nav .g-reviews-txt strong {
  font-weight: 800;
  color: #1f1b16;
}

/* Cache le gros bloc premium si restant */
.hero-proof,
.reviews-scoreboard {
  display: none !important;
}

/* ── Wizard focus : on cache le reste, on avance ── */
body.wizard-open .hero-shell,
body.wizard-open .book-banner,
body.wizard-open .offre-section,
body.wizard-open .preuve-section,
body.wizard-open .zones-section,
body.wizard-open .faq-section,
body.wizard-open footer,
body.wizard-open .mobile-cta-bar {
  display: none !important;
}

body.wizard-open .configurator-section {
  padding-top: 20px !important;
  padding-bottom: 40px !important;
  min-height: 100dvh;
}

body.wizard-open .section-intro {
  display: none;
}

body.wizard-open {
  padding-bottom: 12px !important;
}

body.wizard-open .whatsapp-float {
  display: none !important;
}

.pack-step-title {
  display: none !important;
}

/* ── Progression : étape X / 5 + barre ── */
.progress-wrap {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px !important;
}

body:not(.wizard-open) .progress-head,
body:not(.wizard-open) .progress-rail {
  display: none;
}

body:not(.wizard-open) .wiz-wa-chip {
  display: none !important;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-count {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #3a3329;
}

.progress-rail {
  height: 4px;
  border-radius: 999px;
  background: rgba(184, 149, 106, 0.22);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: #1a5c3a;
  transition: width 0.28s ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.progress-wrap .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.progress-wrap .progress-step:not(:last-child)::after {
  display: none !important;
}

.progress-wrap .progress-step small {
  display: block !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8a8478;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.progress-wrap .progress-step.active small,
.progress-wrap .progress-step.complete small {
  color: #1a5c3a;
}

.wiz-wa-chip {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
}

body.wizard-open .wiz-wa-chip {
  display: inline-flex;
}

.wiz-wa-chip .wa-ico {
  width: 14px;
  height: 14px;
}

/* ── Récap collant ── */
.wiz-recap {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 10px 16px;
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid rgba(184, 149, 106, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wiz-recap[hidden] {
  display: none !important;
}

.wiz-recap-text {
  font-size: 13px;
  font-weight: 600;
  color: #4a4740;
  line-height: 1.35;
  min-width: 0;
  flex: 1 1 160px;
}

.wiz-recap-price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a5c3a;
}

/* ── Transitions d’étape ── */
.panel-shell .panel.active {
  animation: stepIn 0.24s ease;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── Cibles + feedback immédiat ── */
.brand-choice,
.model-choice,
.repair-choice,
.screen-option,
.pack-card,
.addon-option {
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.brand-choice:active,
.model-choice:active,
.repair-choice:active,
.screen-option:active,
.pack-card:active,
.addon-option:active {
  transform: scale(0.985);
}

.brand-choice.is-picked,
.model-choice.is-picked,
.repair-choice.is-picked,
.screen-option.is-picked,
.screen-option--selected {
  border-color: #1a5c3a;
  background: #e5f3eb;
  box-shadow: 0 0 0 1px rgba(26, 92, 58, 0.25);
}

.pack-card--selected {
  border-width: 2px;
  border-color: #1a5c3a !important;
  background: #e5f3eb !important;
  box-shadow: 0 0 0 2px rgba(26, 92, 58, 0.18);
  transform: none;
}

.pack-card--selected .pack-card-title::after {
  content: " · choisi";
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #1a5c3a;
}

.back-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #3a3329;
  text-decoration: none;
  border: 1px solid rgba(184, 149, 106, 0.35);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.panel-actions .button-primary,
.button-wide.button-primary {
  min-height: 54px;
}

/* ── Protection = oui / non ── */
.protection-photos--lg img {
  width: 88px !important;
  height: 88px !important;
}

.protection-offer-copy strong {
  font-size: 18px;
}

.protection-cta-col .button-primary,
.protection-cta-col .button-secondary {
  min-height: 52px;
  font-size: 15px;
  font-weight: 800;
}

.protection-cta-col .button-secondary {
  background: #fff;
  border: 1px solid rgba(184, 149, 106, 0.35);
  color: #4a4740;
}

.payment-confirm-note {
  display: none;
}

/* ── Mobile first ── */
@media (max-width: 767px) {
  .hero-shell .hero-lead {
    display: block !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    text-align: left;
    max-width: 20em;
  }

  .hero-lead--short {
    margin-top: 10px !important;
  }

  .hero-shell .hero-price small {
    display: block !important;
    font-size: 12px;
    color: #6d6b64;
  }

  .g-reviews--hero {
    align-self: flex-start;
    margin-top: 16px !important;
  }

  .progress-wrap .progress-step small {
    display: none !important;
  }

  .wiz-recap {
    top: 0;
  }

  .wiz-recap-text {
    font-size: 12px;
  }

  body.wizard-open .whatsapp-float {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .progress-wrap .progress-step small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-price strong,
  .book-banner__cta,
  .panel-shell .panel.active {
    animation: none;
  }
}
