/* ══════════════════════════════════════════════════
   RepairPro Frontend v2.0
   Styles pour [rpro_devis] et [rpro_prices]
══════════════════════════════════════════════════ */
:root {
  --rpro-orange:    #FF6B2C;
  --rpro-orange-l:  #FF8C55;
  --rpro-orange-xl: #FFF4EF;
  --rpro-dark:      #1A1A2E;
  --rpro-border:    #E8E8F0;
  --rpro-bg:        #F7F8FC;
  --rpro-text:      #1A1A28;
  --rpro-muted:     #8888A0;
  --rpro-green:     #00C896;
  --rpro-shadow:    0 4px 20px rgba(0,0,0,.07);
  --rpro-r:         12px;
}

/* ════════════════════════════════════
   FORMULAIRE DE DEVIS
════════════════════════════════════ */
.rpro-devis-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* En-tête formulaire */
.rpro-form-header {
  text-align: center;
  padding: 32px 20px 24px;
}
.rpro-form-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.rpro-form-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--rpro-dark);
  margin: 0 0 8px;
}
.rpro-form-header p {
  color: var(--rpro-muted);
  margin: 0;
  font-size: 14px;
}

/* Indicateur d'étapes */
.rpro-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 20px;
}
.rpro-si-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rsi-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rpro-border);
  color: var(--rpro-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: .3s;
  flex-shrink: 0;
}
.rsi-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--rpro-muted);
  white-space: nowrap;
  transition: .3s;
}
.rpro-si-step.active .rsi-dot {
  background: var(--rpro-orange);
  color: #fff;
}
.rpro-si-step.active .rsi-lbl { color: var(--rpro-orange); }
.rpro-si-step.done .rsi-dot {
  background: var(--rpro-green);
  color: #fff;
}
.rpro-si-step.done .rsi-lbl { color: var(--rpro-green); }
.rsi-line {
  flex: 1;
  height: 2px;
  background: var(--rpro-border);
  margin: 0 10px;
  min-width: 30px;
  transition: .3s;
}

/* Steps */
#rpro-form {
  background: #fff;
  border-radius: var(--rpro-r);
  box-shadow: var(--rpro-shadow);
  border: 1px solid var(--rpro-border);
}
.rpro-step {
  display: none;
  padding: 28px;
}
.rpro-step.active {
  display: block;
  animation: rpro-step-in .2s ease;
}
@keyframes rpro-step-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Champs */
.rpro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rpro-field {
  margin-bottom: 18px;
}
.rpro-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rpro-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rpro-field input,
.rpro-field select,
.rpro-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--rpro-border);
  border-radius: 9px;
  font-size: 14px;
  color: var(--rpro-text);
  font-family: inherit;
  background: #fff;
  transition: .2s;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.rpro-field input:focus,
.rpro-field select:focus,
.rpro-field textarea:focus {
  border-color: var(--rpro-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, .1);
}
.rpro-field input:disabled,
.rpro-field select:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: var(--rpro-bg);
}

/* Aperçu prix */
.rpro-price-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #FFF4EF, #FFF0EA);
  border: 2px solid #FFD3BF;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  animation: rpro-step-in .25s ease;
}
.rpp-block { display: flex; flex-direction: column; gap: 2px; }
.rpp-label { font-size: 11px; font-weight: 700; color: var(--rpro-muted); text-transform: uppercase; letter-spacing: .05em; }
.rpp-value { font-size: 28px; font-weight: 900; color: var(--rpro-orange); line-height: 1; }
.rpp-dur   { font-size: 14px; font-weight: 600; color: var(--rpro-text); }
.rpp-sep   { width: 1px; height: 40px; background: #FFD3BF; }

/* Boutons */
.rpro-form-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.rpro-btn {
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rpro-btn-next,
.rpro-btn-submit {
  background: var(--rpro-orange);
  color: #fff;
}
.rpro-btn-next:hover,
.rpro-btn-submit:hover {
  background: var(--rpro-orange-l);
  transform: translateY(-1px);
}
.rpro-btn-outline {
  background: transparent;
  color: var(--rpro-text);
  border: 2px solid var(--rpro-border);
}
.rpro-btn-outline:hover {
  border-color: var(--rpro-orange);
  color: var(--rpro-orange);
}

/* RGPD */
.rpro-rgpd {
  margin: 14px 0;
  font-size: 13px;
  color: var(--rpro-muted);
}
.rpro-rgpd label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  line-height: 1.5;
}
.rpro-rgpd input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--rpro-orange);
}
.rpro-rgpd a { color: var(--rpro-orange); }

/* Succès */
.rpro-success-wrap {
  text-align: center;
  padding: 48px 24px;
}
.rpro-success-icon {
  font-size: 72px;
  display: block;
  margin-bottom: 16px;
  animation: rpro-pop .5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes rpro-pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.rpro-success-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--rpro-dark);
  margin: 0 0 8px;
}
.rpro-success-wrap p {
  color: var(--rpro-muted);
  line-height: 1.6;
  margin: 0 0 6px;
}
.rpro-success-wrap strong { color: var(--rpro-orange); }

/* Erreur */
.rpro-error-box {
  background: #FFF0F0;
  color: #C0392B;
  padding: 14px 18px;
  border-radius: 9px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* ════════════════════════════════════
   GRILLE DES PRIX
════════════════════════════════════ */
.rpro-prices-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rpro-prices-header {
  text-align: center;
  padding: 20px 0 32px;
}
.rpro-prices-header h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--rpro-dark);
  margin: 0 0 8px;
}
.rpro-prices-header p {
  color: var(--rpro-muted);
  font-size: 15px;
  margin: 0;
}

/* Filtres catégories */
.rpro-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.rpro-filter-chip {
  padding: 8px 18px;
  border-radius: 30px;
  border: 2px solid var(--rpro-border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  color: var(--rpro-text);
  font-family: inherit;
}
.rpro-filter-chip.active,
.rpro-filter-chip:hover {
  background: var(--rpro-orange);
  color: #fff;
  border-color: var(--rpro-orange);
}

/* Recherche */
.rpro-price-search-wrap {
  margin-bottom: 28px;
}
.rpro-price-search-wrap input {
  width: 100%;
  max-width: 440px;
  padding: 12px 20px 12px 44px;
  border: 2px solid var(--rpro-border);
  border-radius: 30px;
  font-size: 14px;
  font-family: inherit;
  color: var(--rpro-text);
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888A0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  transition: .2s;
  outline: none;
  box-sizing: border-box;
}
.rpro-price-search-wrap input:focus {
  border-color: var(--rpro-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, .1);
}

/* Sections catégorie */
.rpro-cat-section { margin-bottom: 40px; }
.rpro-cat-h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--rpro-dark);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rpro-border);
}
.rpro-device-group { margin-bottom: 20px; }
.rpro-device-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--rpro-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}

/* Grille cartes */
.rpro-repairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* Carte réparation */
.rpro-repair-card {
  background: #fff;
  border-radius: var(--rpro-r);
  padding: 18px;
  border: 2px solid transparent;
  box-shadow: var(--rpro-shadow);
  transition: .25s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.rpro-repair-card:hover {
  border-color: var(--rpro-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255, 107, 44, .12);
}
.rpro-repair-card.rpro-popular {
  border-color: #FFD0BC;
  background: linear-gradient(135deg, #FFF6F2, #fff);
}
.rpro-pop-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--rpro-orange);
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rpro-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rpro-text);
  line-height: 1.4;
}
.rpro-card-desc {
  font-size: 12px;
  color: var(--rpro-muted);
  line-height: 1.5;
  flex: 1;
}
.rpro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--rpro-border);
  margin-top: auto;
}
.rpro-card-dur {
  font-size: 12px;
  color: var(--rpro-muted);
}
.rpro-card-prices {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpro-price-old {
  font-size: 12px;
  color: var(--rpro-muted);
  text-decoration: line-through;
}
.rpro-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--rpro-orange);
}
.rpro-card-cta {
  display: block;
  text-align: center;
  background: var(--rpro-orange-xl);
  color: var(--rpro-orange);
  padding: 8px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  transition: .2s;
  border: none;
  width: 100%;
  font-family: inherit;
}
.rpro-card-cta:hover {
  background: var(--rpro-orange);
  color: #fff;
}

/* Aucun résultat */
.rpro-no-results {
  text-align: center;
  padding: 48px;
  color: var(--rpro-muted);
}
.rpro-no-results a { color: var(--rpro-orange); font-weight: 700; }

/* Responsive */
@media (max-width: 600px) {
  .rpro-row { grid-template-columns: 1fr; }
  .rpro-repairs-grid { grid-template-columns: 1fr; }
  .rpro-form-header h2 { font-size: 22px; }
  .rpro-step { padding: 20px; }
  .rpro-prices-header h2 { font-size: 24px; }
  .rsi-lbl { display: none; }
}
