/* ═══════════════════════════════════════
   RENOLINK — Styles Formulaire Client
   ═══════════════════════════════════════ */

/* ── PROGRESS BAR ── */
.progress-wrap {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.progress-steps {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.ps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.ps-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.ps.done .ps-dot  { background: var(--success); border-color: var(--success); color: white; }
.ps.active .ps-dot { background: var(--gold); border-color: var(--gold); color: white; box-shadow: 0 0 0 4px rgba(184,130,10,0.15); }

.ps-label { font-size: 0.62rem; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: 0.02em; white-space: nowrap; }
.ps.active .ps-label { color: var(--gold); }
.ps.done .ps-label  { color: var(--success); }

.ps-line { flex: 1; height: 2px; background: var(--border); margin-bottom: 18px; transition: background 0.3s; }
.ps-line.done { background: var(--success); }

/* ── MAIN ── */
.form-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── STEP ── */
.step { display: none; animation: fadeIn 0.3s ease; }
.step.active { display: block; }

.step-header { margin-bottom: 32px; }

.step-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── FORM CARD ── */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.form-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── TYPE GRID ── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-btn {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}
.type-btn:hover { border-color: var(--gold); background: #FFFBF5; }
.type-btn.selected {
  border-color: var(--gold);
  background: #FFFBF5;
  box-shadow: 0 0 0 3px rgba(184,130,10,0.1);
}
.type-btn .ti { font-size: 1.6rem; margin-bottom: 6px; display: block; }
.type-btn .tl { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.type-btn .ts { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }

/* ── MULTI SELECT BANNER ── */
.multi-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFBF5;
  border: 1px solid rgba(184,130,10,0.3);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.multi-banner-text { font-size: 0.8rem; color: var(--gold); font-weight: 600; }
.multi-count {
  margin-left: auto;
  background: var(--gold);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  display: none;
}

/* ── SURFACE ── */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.surface-opt {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.surface-opt:hover, .surface-opt.selected { border-color: var(--gold); background: #FFFBF5; }
.surface-opt .sv { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.surface-opt .sl { font-size: 0.65rem; color: var(--muted); }

/* ── BUDGET ── */
.budget-display { text-align: center; margin-bottom: 16px; }
.budget-value {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.budget-value.too-low { color: var(--error); }
.budget-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.budget-slider {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  margin-bottom: 8px;
}
.budget-range { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); }

.budget-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.budget-opt {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
  color: var(--muted);
}
.budget-opt:hover, .budget-opt.selected { border-color: var(--gold); color: var(--gold); background: #FFFBF5; }

/* ── UPLOAD ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--gold); background: #FFFBF5; }
.upload-zone.has-files { border-color: var(--success); border-style: solid; }

#fileInput { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.upload-sub { font-size: 0.78rem; color: var(--muted); }
.upload-sub span { color: var(--gold); font-weight: 600; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.photo-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.photo-remove:hover { background: var(--error); }

.photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ── RECAP ── */
.recap-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.recap-header {
  padding: 14px 20px;
  background: #F9F6F1;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recap-header-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.recap-edit { font-size: 0.75rem; color: var(--gold); cursor: pointer; font-weight: 600; text-decoration: underline; }
.recap-body { padding: 16px 20px; }
.recap-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F5F2ED; font-size: 0.82rem; }
.recap-row:last-child { border-bottom: none; }
.recap-label { color: var(--muted); min-width: 130px; flex-shrink: 0; }
.recap-value { font-weight: 600; color: var(--text); }
.recap-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.recap-photo { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.recap-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── CGU ── */
.cgu-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.cgu-check { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.cgu-text { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.cgu-text a { color: var(--gold); }

/* ── BUTTONS ROW ── */
.btn-row { display: flex; gap: 12px; margin-top: 24px; }

.btn-next {
  flex: 1;
  padding: 16px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-next:hover { background: var(--charcoal); transform: translateY(-1px); }

.btn-prev {
  padding: 16px 24px;
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-prev:hover { border-color: var(--gold); color: var(--gold); }

.btn-submit {
  flex: 1;
  padding: 16px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── TRUST BAR ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); }

/* ── CHAR COUNT ── */
.char-count { text-align: right; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }
.char-count.warning { color: var(--error); }

/* ── SUCCESS ── */
.success-page {
  display: none;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.success-page.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  padding: 80px 20px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.success-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 700;
  margin-bottom: 12px;
}

.success-ref {
  display: inline-block;
  background: #F5F2ED;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: monospace;
}

.success-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 32px auto 0;
}

.success-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.ss-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  margin: 0 auto 10px;
}

.ss-title { font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.ss-desc  { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .budget-options { grid-template-columns: repeat(2, 1fr); }
  .surface-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .success-steps { grid-template-columns: 1fr; }
  .progress-wrap { padding: 12px 16px; }
  .ps-label { display: none; }
}
