/* ============================================
   RHIZART — devis.css
   ============================================ */

.devis-page { background: var(--off-white); }

/* ============================================
   LAYOUT
   ============================================ */
.devis-main { min-height: calc(100vh - 70px); }

.devis-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 70px);
}

/* ============================================
   ASIDE GAUCHE
   ============================================ */
.devis-aside {
  background: var(--black);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.devis-aside::-webkit-scrollbar { width: 3px; }
.devis-aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

.aside-inner {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 100%;
}

/* Top aside */
.aside-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.aside-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.aside-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.72;
}
.aside-sub strong { color: rgba(255,255,255,0.75); }

/* ---- Étapes ---- */
.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}

.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
}
.step-dot span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  transition: opacity 0.3s;
}
.step-dot svg {
  position: absolute;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.aside-step.active .step-dot {
  border-color: var(--red);
  background: var(--red);
}
.aside-step.active .step-dot span { color: #fff; }

.aside-step.done .step-dot {
  border-color: #22C55E;
  background: #22C55E;
}
.aside-step.done .step-dot span  { opacity: 0; }
.aside-step.done .step-dot svg   { opacity: 1; }

.step-label { padding-top: 4px; }
.step-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  margin-bottom: 2px;
  transition: color 0.3s;
}
.step-desc { font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.aside-step.active .step-name { color: #fff; }
.aside-step.done   .step-name { color: rgba(255,255,255,0.5); }

.step-connector {
  width: 1.5px;
  height: 18px;
  background: rgba(255,255,255,0.07);
  margin-left: 16px;
  border-radius: 2px;
}

/* ---- Garanties ---- */
.aside-garanties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
}
.garantie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
}
.garantie-item svg { color: #22C55E; flex-shrink: 0; }

/* ---- Contact rapide ---- */
.aside-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.aside-contact p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: all var(--t);
  text-decoration: none;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

/* ============================================
   ZONE FORMULAIRE
   ============================================ */
.devis-form-area {
  padding: 3rem 4rem;
  max-width: 720px;
  width: 100%;
}

/* Progress bar */
.progress-bar-wrap {
  height: 3px;
  background: var(--grey);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #FF6B6B);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.progress-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-family: var(--font-cond);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Steps */
.form-step { display: none; animation: stepIn 0.35s ease; }
.form-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-header { margin-bottom: 2.5rem; }
.step-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.step-header p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   ÉLÉMENTS FORMULAIRE
   ============================================ */
.form-group { margin-bottom: 1.75rem; }

.form-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.form-label.required::after {
  content: '*';
  color: var(--red);
  font-size: 0.85rem;
}
.optional {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}
.error-msg {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 400;
  margin-left: auto;
}
.char-count {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  margin-left: auto;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--t);
  outline: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.08);
}
.form-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.06);
}

.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.input-with-icon { padding-left: 38px; }

.select-wrap { position: relative; }
.form-select { padding-right: 34px; cursor: pointer; }
.select-arrow {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ============================================
   TYPES DE PROJET
   ============================================ */
.project-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--white);
  user-select: none;
}
.type-card:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.type-card.selected {
  border-color: var(--red);
  background: var(--red-light);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.1);
}

.type-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  color: var(--text-muted);
  transition: all var(--t);
}
.type-card.selected .type-icon,
.type-card:hover .type-icon {
  background: var(--red);
  color: #fff;
}

.type-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.type-desc { font-size: 0.7rem; color: var(--text-light); }

/* ============================================
   STYLES VISUELS
   ============================================ */
.style-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.style-card {
  cursor: pointer;
}
.style-card input { display: none; }

.style-inner {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
  transition: all var(--t);
  background: var(--white);
}
.style-card:hover .style-inner {
  border-color: var(--red);
  background: var(--red-light);
}
.style-card:has(input:checked) .style-inner {
  border-color: var(--red);
  background: var(--red-light);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.1);
}

.style-preview {
  display: block;
  width: 48px; height: 32px;
  border-radius: 4px;
  margin: 0 auto 0.6rem;
}
.style-minimal { background: linear-gradient(135deg, #F5F5F0 50%, #E0E0DA 50%); }
.style-moderne { background: linear-gradient(135deg, #0A0A0A 50%, #E31E24 50%); }
.style-luxe    { background: linear-gradient(135deg, #1A1A1A 50%, #C9A84C 50%); }
.style-color   { background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%); }

.style-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.style-desc { font-size: 0.68rem; color: var(--text-light); }

/* ============================================
   BUDGET — radio cards
   ============================================ */
.budget-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.delai-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: all var(--t);
  background: var(--white);
}
.radio-card input { display: none; }
.radio-card:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.radio-card:has(input:checked) {
  border-color: var(--red);
  background: var(--red-light);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.08);
}
.radio-card::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all var(--t);
  background: var(--white);
}
.radio-card:has(input:checked)::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}

.radio-card-sm { flex: 1; min-width: 120px; }
.radio-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}
.radio-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   CHECKBOXES LIVRABLES
   ============================================ */
.features-check {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  background: var(--white);
}
.check-item:hover { border-color: var(--red); background: var(--red-light); }
.check-item:has(input:checked) {
  border-color: var(--red);
  background: var(--red-light);
}
.check-item input {
  width: 15px; height: 15px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.check-item span { font-size: 0.82rem; color: var(--text-muted); }
.check-item:has(input:checked) span { color: var(--red); font-weight: 500; }

/* Consentement */
.check-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.check-consent input {
  width: 15px; height: 15px;
  margin-top: 2px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}
.check-consent span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.check-consent a { color: var(--red); }

/* ============================================
   NAVIGATION ÉTAPES
   ============================================ */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn-outline-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font-body);
}
.btn-outline-step:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-submit { min-width: 200px; justify-content: center; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

/* ============================================
   SUCCÈS
   ============================================ */
.success-screen {
  text-align: center;
  padding: 2rem 0;
  animation: stepIn 0.4s ease;
}
.success-icon {
  width: 70px; height: 70px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  color: #16A34A;
}
.success-screen h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.success-screen > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.72;
}
.success-details {
  background: var(--grey-light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.success-details strong { color: var(--text); }
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .devis-layout { grid-template-columns: 300px 1fr; }
  .devis-form-area { padding: 2.5rem 2rem; }
}

@media (max-width: 768px) {
  .devis-layout { grid-template-columns: 1fr; }
  .devis-aside { position: static; height: auto; }
  .aside-steps { display: none; }
  .aside-inner { padding: 2rem 1.5rem; }
  .devis-form-area { padding: 2rem 1.25rem; }
  .project-types { grid-template-columns: repeat(2, 1fr); }
  .style-options  { grid-template-columns: repeat(2, 1fr); }
  .features-check { grid-template-columns: 1fr; }
  .form-row-2     { grid-template-columns: 1fr; }
  .delai-options  { flex-direction: column; }
}

@media (max-width: 420px) {
  .project-types { grid-template-columns: 1fr; }
}