/* ═══════ MON PROJET — WIZARD ═══════ */

.ce-wizard { max-width: 960px; margin: 0 auto; padding: 2rem 0; text-align: center; scroll-margin-top: 130px; }
.ce-wizard__panel { scroll-margin-top: 130px; }
.ce-wizard__product-card { scroll-margin-top: 130px; }

/* Progress bar */
.ce-wizard__progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 2.5rem; padding: 0 1rem;
}
.ce-wizard__progress-step {
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0.4; transition: opacity 0.3s;
}
.ce-wizard__progress-step.active,
.ce-wizard__progress-step.completed { opacity: 1; }
.ce-wizard__progress-dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  background: #e5e5e5; color: #666; font-size: 14px; transition: all 0.3s;
}
.ce-wizard__progress-step.active .ce-wizard__progress-dot { background: #fdce23; color: #1a1a1a; }
.ce-wizard__progress-step.completed .ce-wizard__progress-dot { background: #1a1a1a; color: #fff; }
.ce-wizard__progress-label { font-size: 13px; font-weight: 500; }
.ce-wizard__progress-line { flex: 0 0 40px; height: 2px; background: #ddd; }

@media (max-width: 576px) {
  .ce-wizard__progress-label { display: none; }
  .ce-wizard__progress-line { flex: 0 0 20px; }
}

/* Panels */
.ce-wizard__panel { display: none; }
.ce-wizard__panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Questions */
.ce-wizard__question { margin-bottom: 2rem; }
.ce-wizard__question.hidden { display: none; }
.ce-wizard__question-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: #1a1a1a; text-align: center; }

/* Option buttons */
.ce-wizard__options { display: grid; gap: 0.75rem; max-width: 640px; margin: 0 auto; }
.ce-wizard__options--2col { grid-template-columns: repeat(2, 1fr); }
.ce-wizard__options--fluid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .ce-wizard__options--fluid { grid-template-columns: repeat(4, 1fr); } }
.ce-wizard__options:not(.ce-wizard__options--2col):not(.ce-wizard__options--fluid) { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.ce-wizard__option {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 1.25rem 1rem; border: 2px solid #e5e5e5; border-radius: 12px;
  background: #fff; cursor: pointer; transition: all 0.2s; text-align: center;
}
.ce-wizard__option:hover { border-color: #fdce23; background: #fffdf0; }
.ce-wizard__option.selected { border-color: #fdce23; background: #fdce23; }
.ce-wizard__option.hidden { display: none; }
.ce-wizard__option-icon { font-size: 2rem; line-height: 1; }
.ce-wizard__option-label { font-weight: 600; font-size: 0.95rem; }
.ce-wizard__option-desc { font-size: 0.8rem; color: #666; }
.ce-wizard__option.selected .ce-wizard__option-desc { color: #333; }

/* Section titles */
.ce-wizard__section-title { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 1rem; text-align: left; }
.ce-wizard__section-title small { font-weight: 400; color: #888; }

/* Reco banner */
.ce-wizard__reco-banner {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fffdf0; border: 1px solid #fdce23; border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.ce-wizard__reco-banner.hidden { display: none; }
.ce-wizard__reco-icon { font-size: 1.5rem; }

/* Product grid */
.ce-wizard__product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem; text-align: left;
}
.ce-wizard__product-card {
  position: relative; border: 2px solid #e5e5e5; border-radius: 12px;
  padding: 1rem; background: #fff; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column;
}
.ce-wizard__product-card:hover { border-color: #fdce23; background: #fffdf0; }
.ce-wizard__product-card.selected {
  border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(253, 206, 35, 0.5);
  background: #fffdf0; position: relative;
}
.ce-wizard__product-card.selected::after {
  content: '✓';
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a1a1a; color: #fdce23;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.ce-wizard__product-card.selected .ce-wizard__product-select {
  background: #1a1a1a; color: #fdce23; border-color: #1a1a1a;
}
.ce-wizard__product-card.recommended { border-color: #fdce23; }
.ce-wizard__product-card.out-of-stock { opacity: 0.85; }
.ce-wizard__product-card.out-of-stock:hover { opacity: 1; }

.ce-wizard__product-badges {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; min-height: 22px;
}
.ce-wizard__badge {
  background: #fdce23; color: #1a1a1a; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; text-transform: uppercase; line-height: 1.4;
}
.ce-wizard__badge--smart {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
  line-height: 1.4; white-space: nowrap;
}

.ce-wizard__product-img { height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.ce-wizard__product-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ce-wizard__product-noimg { color: #ccc; font-size: 3rem; }
.ce-wizard__product-info { flex: 1; }
.ce-wizard__product-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.3; }
.ce-wizard__product-volume { font-size: 0.8rem; color: #666; display: block; margin-bottom: 0.5rem; }
.ce-wizard__product-price strong { font-size: 1.1rem; color: #1a1a1a; }
.ce-wizard__product-price small { display: block; font-size: 0.75rem; color: #888; }
.ce-wizard__product-select { margin-top: 0.75rem; }

/* Recap */
.ce-wizard__recap-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem; border: 1px solid #eee; border-radius: 8px; margin-bottom: 0.5rem;
}
.ce-wizard__recap-img { width: 60px; height: 60px; flex-shrink: 0; }
.ce-wizard__recap-img img { width: 100%; height: 100%; object-fit: contain; }
.ce-wizard__recap-info { flex: 1; }
.ce-wizard__recap-label { font-size: 0.7rem; text-transform: uppercase; color: #888; display: block; }
.ce-wizard__recap-price { font-weight: 700; white-space: nowrap; }

/* Accessory suggestions */
.ce-wizard__suggestions.hidden { display: none; }
.ce-wizard__suggestions-title { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.ce-wizard__suggestions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.ce-wizard__suggestion-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem;
  border: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: border-color 0.2s;
}
.ce-wizard__suggestion-item:has(input:checked) { border-color: #fdce23; background: #fffdf0; }
.ce-wizard__suggestion-img { width: 40px; height: 40px; flex-shrink: 0; }
.ce-wizard__suggestion-img img { width: 100%; height: 100%; object-fit: contain; }
.ce-wizard__suggestion-info { flex: 1; font-size: 0.8rem; }
.ce-wizard__suggestion-info strong { display: block; }

/* Action card */
.ce-wizard__action-card {
  background: #f8f8f8; border-radius: 12px; padding: 1.5rem;
  position: sticky; top: 1rem; text-align: left;
}
.ce-wizard__savings {
  display: flex; align-items: center; gap: 0.5rem;
  background: #e8f5e9; border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem;
}
.ce-wizard__savings.hidden { display: none; }
.ce-wizard__total { margin-bottom: 1.5rem; }
.ce-wizard__total-line { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.ce-wizard__total-line--ttc { font-size: 1.2rem; border-top: 2px solid #1a1a1a; padding-top: 0.5rem; margin-top: 0.25rem; }

/* Inline quote form */
.ce-wizard__quote-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.ce-wizard__quote-form.hidden { display: none; }
.ce-wizard__quote-form h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.ce-wizard__quote-form-errors.hidden { display: none; }
.ce-wizard__quote-form-errors { margin-bottom: 0.75rem; }

/* Navigation */
.ce-wizard__nav { margin-top: 1.5rem; text-align: left; }
.ce-wizard__nav.hidden { display: none; }

/* Trust signals */
.ce-wizard__trust, .ce-devis__trust {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-top: 3rem; padding: 1.5rem; background: #f8f8f8; border-radius: 8px;
}
.ce-wizard__trust-item, .ce-devis__trust-item {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500;
}
.ce-wizard__trust-item i, .ce-devis__trust-item i { color: #fdce23; font-size: 1.2rem; }

/* Loading */
.ce-wizard__loading { text-align: center; padding: 2rem; color: #888; }

/* ═══════ QUICK QUOTE PAGE ═══════ */
.ce-devis { max-width: 800px; margin: 0 auto; }
.ce-devis__intro { font-size: 1.1rem; margin-bottom: 1.5rem; }
.ce-devis__cart-preview { background: #f8f8f8; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.ce-devis__cart-item { display: flex; justify-content: space-between; padding: 0.25rem 0; }

/* ═══════ SUCCESS PAGE ═══════ */
.ce-success { text-align: center; padding: 3rem 1rem; max-width: 600px; margin: 0 auto; }
.ce-success__icon i { font-size: 4rem; color: #4caf50; }
.ce-success__title { font-size: 1.5rem; margin: 1rem 0; }
.ce-success__ref { font-size: 1.1rem; color: #666; margin-bottom: 1.5rem; }
.ce-success__contact { background: #f8f8f8; border-radius: 12px; padding: 1.5rem; margin-top: 2rem; }

/* ═══════ OFFCANVAS ═══════ */
.ce-offcanvas {
  width: 400px !important;
  z-index: 1060;
  top: var(--ce-header-h, 116px) !important;
  height: calc(100% - var(--ce-header-h, 116px)) !important;
}
.ce-offcanvas.show { transform: none !important; visibility: visible !important; }
.ce-offcanvas .offcanvas-header { padding-top: 1rem; }
.ce-offcanvas .offcanvas-body { padding-top: 0; }
.offcanvas-backdrop { z-index: 1055 !important; }
@media (max-width: 576px) {
  .ce-offcanvas { width: 100% !important; top: 0 !important; height: 100% !important; }
}
.ce-offcanvas__product { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.ce-offcanvas__product-img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px; }
.ce-offcanvas__product-info { flex: 1; }
.ce-offcanvas__product-info strong { font-size: 0.9rem; display: block; }
.ce-offcanvas__product-price { font-size: 0.85rem; color: #666; }
.ce-offcanvas__errors.hidden { display: none; }
.ce-offcanvas__success.hidden { display: none; }
.ce-offcanvas__success { text-align: center; padding: 2rem 0; }
.ce-offcanvas__success i { font-size: 3rem; }
.ce-offcanvas__wizard-link {
  display: flex; align-items: center; gap: 0.5rem; color: #1a1a1a;
  font-weight: 500; text-decoration: none;
}
.ce-offcanvas__wizard-link:hover { color: #fdce23; }

/* ═══════ CATEGORY CTA ═══════ */
.ce-category-cta { margin: 1rem 0; }
.ce-category-cta__link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: #fffdf0; border: 1px solid #fdce23;
  border-radius: 8px; color: #1a1a1a; text-decoration: none; transition: background 0.2s;
}
.ce-category-cta__link:hover { background: #fdce23; }
.ce-category-cta__link span { flex: 1; }

/* ═══════ CART CTA ═══════ */
.ce-cart-cta { text-align: center; margin: 1.5rem 0; }

/* ═══════ PRODUCT PAGE BADGES ═══════ */
.ce-product-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0.75rem 0;
}
.ce-product-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  line-height: 1.3;
}
.ce-product-badge--green { background: #e8f5e9; color: #2e7d32; }
.ce-product-badge--blue { background: #e3f2fd; color: #1565c0; }
.ce-product-badge--steel { background: #eceff1; color: #455a64; }
.ce-product-badge--teal { background: #e0f2f1; color: #00695c; }
.ce-product-badge--purple { background: #f3e5f5; color: #6a1b9a; }
.ce-product-badge--orange { background: #fff3e0; color: #e65100; }
.ce-product-badge--gray { background: #f5f5f5; color: #616161; }

.ce-offcanvas__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.5rem; }

/* ═══════ HIDDEN UTILITY ═══════ */
.hidden { display: none !important; }
