/* ============================================
   BOISEXPRESS — Styles du Simulateur, Checkout WhatsApp & Confirmation
   Mobile-First, WebKit Touch, Palette Vert Forêt & Braise
   ============================================ */

/* ─── Sélecteur de Public (Hero Tabs) ─── */
.audience-selector-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-2, 0.5rem);
  box-sizing: border-box;
}

.audience-tabs-bar {
  display: inline-flex;
  background: rgba(20, 24, 29, 0.75);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  box-sizing: border-box;
}

.audience-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: #E2D9CE;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.audience-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.audience-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(30, 63, 39, 0.5);
}

@media (min-width: 481px) and (max-width: 767px) {
  .audience-tabs-bar {
    max-width: 100%;
    display: flex;
    padding: 5px;
  }
  .audience-tab-btn {
    flex: 1 1 50%;
    padding: 10px 12px;
    font-size: 0.85rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .audience-tabs-bar {
    width: 100%;
    display: flex;
    padding: 4px;
    border-radius: var(--radius-xl);
  }
  .audience-tab-btn {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.8rem;
    gap: 4px;
    white-space: normal;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ─── Processus 3 Étapes WhatsApp (Bannière) ─── */
.whatsapp-process-section {
  padding: 4rem 1.5rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width-xl);
  margin: 2.5rem auto 0;
}

.process-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

@media (min-width: 992px) {
  .process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px;
    right: -16px;
    width: 28px;
    height: 2px;
    border-top: 2px dashed var(--primary);
    opacity: 0.5;
    z-index: 3;
    pointer-events: none;
  }
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.process-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 63, 39, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.process-card.highlight .process-icon-box {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-dark);
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ─── Bouton de Commande WhatsApp Principal ─── */
.btn-whatsapp-submit {
  width: 100%;
  background: var(--whatsapp);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-lg);
  padding: 15px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-whatsapp);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-whatsapp-submit:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-submit svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ─── Timeline 3 Étapes & Confirmation ─── */
.modal-steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
  background: var(--surface-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.timeline-step-item {
  display: flex;
  gap: 14px;
}

.timeline-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-step-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.timeline-step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.modal-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.12);
  animation: pulseSuccess 2.4s ease-in-out infinite;
}

@keyframes pulseSuccess {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.12); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(37, 211, 102, 0.22); }
}

/* ─── Smart Cross-Sell Cards & Grid ─── */
.cross-sell-section {
  margin-top: 2rem;
  background: var(--surface-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.cross-sell-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.cross-sell-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cross-sell-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cross-sell-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.cross-sell-card-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.cross-sell-card-info {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cross-sell-card-tag {
  display: inline-block;
  background: rgba(30, 63, 39, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.cross-sell-card-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cross-sell-card-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.cross-sell-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 0.6rem;
  gap: 6px;
}

.cross-sell-card-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.cross-sell-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cross-sell-add-btn:hover {
  background: var(--primary-light);
}

.cross-sell-add-btn.added {
  background: var(--success);
}

.cross-sell-add-btn svg {
  width: 14px;
  height: 14px;
}
