/* =========================================================
   ATLAS DESIGN SYSTEM - Demenageur Devis
   Direction A : Pro & rassurant. Blanc / bleu profond.
   Full-page layout, aside sticky, step pills.
   ========================================================= */

/* ===== 1. Reset + Global ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CSS custom properties - surchargeables par index.php */
:root {
  --accent: #2D4DFF;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --accent-softer: color-mix(in srgb, var(--accent) 6%, white);

  --ok: #10b981;
  --ok-soft: #dcfce7;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --err: #dc2626;
  --err-soft: #fee2e2;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== 2. Layout Atlas full-page ===== */
.atlas {
  background: #F8FAFC;
  min-height: 100vh;
  color: #0F172A;
  font-family: 'Inter', system-ui, sans-serif;
}

.atlas-header {
  border-bottom: 1px solid #E2E8F0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.atlas-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atlas-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.atlas-form-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: flex-start;
}

.atlas-form-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ===== 3. Step Pills ===== */
.step-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
  font-family: inherit;
}

.step-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent);
}

.step-pill.done {
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
  border-color: var(--accent);
}

.step-pill-num {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s;
}

.step-pill.active .step-pill-num {
  background: #fff;
  color: var(--accent);
}

.step-pill.done .step-pill-num {
  background: var(--accent);
  color: #fff;
}

.step-pill-sep {
  flex: 0 0 20px;
  height: 2px;
  background: #E2E8F0;
  border-radius: 1px;
  transition: background 0.3s;
}

.step-pill-sep.done {
  background: var(--accent);
}

/* ===== 4. Typography helpers ===== */
.atlas-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

.atlas-heading {
  font-size: 28px;
  margin: 8px 0 0;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.6px;
}

.atlas-sub {
  font-size: 14px;
  color: #475569;
  margin: 6px 0 0;
  line-height: 1.5;
}

.atlas-label {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 6px;
  display: block;
}

/* ===== Dimension inputs (item detail) ===== */
.dim-card {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
}

.dim-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.dim-card-hint {
  font-size: 12px;
  color: #64748B;
  font-weight: 400;
}

.dim-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
}

.dim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dim-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #475569;
  text-transform: uppercase;
}

.dim-field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dim-field-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.dim-field-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  font-family: inherit;
  padding: 0;
  -moz-appearance: textfield;
}

.dim-field-input input::-webkit-outer-spin-button,
.dim-field-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dim-field-input input::placeholder {
  color: #CBD5E1;
  font-weight: 500;
}

.dim-field-unit {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.dim-cross {
  font-size: 20px;
  font-weight: 700;
  color: #CBD5E1;
  padding-bottom: 14px;
  user-select: none;
}

@media (max-width: 540px) {
  .dim-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dim-cross { display: none; }
}

/* ===== 5. Buttons Atlas ===== */
.btn-atlas-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
  font-family: inherit;
  line-height: 1;
}

.btn-atlas-primary:hover {
  transform: translateY(-2px);
}

.btn-atlas-primary.lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-atlas-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  color: #475569;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.btn-atlas-ghost:hover {
  transform: translateX(-3px);
}

.btn-atlas-ghost.sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-atlas-ghost.right:hover {
  transform: translateX(3px);
}

/* ===== 6. Form fields ===== */
.form-grid { display: grid; gap: 14px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  justify-content: space-between;
}
.field-label .req { color: #94A3B8; font-size: 11px; }

.field-input,
.field-textarea {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 14px;
  color: #0F172A;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-textarea { resize: vertical; min-height: 90px; }
.field-input.err, .field-textarea.err { border-color: var(--err); }
.field-error { font-size: 11px; color: var(--err); }
.field-hint { font-size: 11px; color: #64748B; }

/* ===== 7. Icon choice buttons ===== */
.icon-choice-grid {
  display: grid;
  gap: 10px;
}

.icon-choice-btn {
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  color: #0F172A;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.icon-choice-btn:hover:not(.active) {
  transform: translateY(-1px);
}

.icon-choice-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

.icon-choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-choice-btn.active .icon-choice-icon {
  background: var(--accent);
  color: #fff;
}

/* ===== 8. Building picker ===== */
.building-picker {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
}

.floor-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  min-width: 96px;
  text-align: left;
  transition: all 0.18s ease;
  font-family: inherit;
}

.floor-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateX(-2px);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ===== 9. Belgium map ===== */
.belgium-map-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.belgium-map-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.belgium-map-tile {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  color: #0F172A;
  font-weight: 600;
  transition: all 0.18s ease;
  font-family: inherit;
}

.belgium-map-tile.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
}

/* ===== 10. Date picker tiles ===== */
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.date-tile {
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: #0F172A;
  transition: all 0.18s ease;
  font-family: inherit;
}

.date-tile:hover:not(.active) {
  transform: translateY(-1px);
}

.date-tile.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.date-tile-icon { margin-bottom: 10px; transition: color 0.2s; }
.date-tile-label { font-weight: 700; font-size: 14px; }
.date-tile-sub { font-size: 12px; opacity: 0.6; margin-top: 2px; }

/* ===== 11. Carton counter ===== */
.carton-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.carton-card {
  padding: 14px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.carton-card.has-count {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, white);
}

.carton-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.carton-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}

.carton-stepper .minus-btn {
  background: #fff;
  color: #0F172A;
}

.carton-stepper .minus-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carton-stepper .plus-btn {
  background: var(--accent);
  color: #fff;
}

.carton-stepper .count-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: #0F172A;
  font-size: 14px;
}

/* ===== 12. Photo slots ===== */
.photo-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-slot-add {
  border-radius: 14px;
  cursor: pointer;
  background: #F8FAFC;
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  color: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}

.photo-slot-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.photo-slot-filled {
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* ===== 13. Atlas aside (sticky) ===== */
.distance-auto-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, white) 0%, #F8FAFC 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px;
}
.distance-auto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.atlas-aside {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimate-gradient-card {
  padding: 18px;
  background: linear-gradient(140deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #0F172A) 100%);
  color: #fff;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.estimate-live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.2px;
  opacity: 0.9;
  font-weight: 700;
  text-transform: uppercase;
}

.estimate-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  display: inline-block;
  animation: mvPulse 1.6s ease-in-out infinite;
}

.estimate-prices {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.estimate-price-main {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}

.aside-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 12px;
}

.aside-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

/* ===== 14. Volume gauge (SVG arc dans l'aside) ===== */
.volume-gauge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.volume-gauge-text {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.volume-gauge-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.volume-gauge-unit {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

/* ===== 15. Home hero ===== */
.atlas-home {
  position: relative;
}

.atlas-home-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#E2E8F0 1px, transparent 1px),
    linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  pointer-events: none;
}

.atlas-hero-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 64px;
  line-height: 0.98;
  font-weight: 800;
  margin: 0;
  letter-spacing: -2.5px;
}

.hero-sub {
  font-size: 17px;
  color: #475569;
  margin-top: 28px;
  max-width: 500px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.hero-trust-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ===== 15b. Hero visual (photo column) ===== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  aspect-ratio: 4 / 3;
  background: #E2E8F0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
}

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.how-it-works-strip {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 32px 60px;
}

.how-it-works-inner {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ===== 16. Success screen Atlas ===== */
.atlas-success-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
}

.success-check-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.success-check-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mvPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-price-card {
  margin-top: 36px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.success-price-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.success-price-val {
  font-size: 48px;
  font-weight: 800;
  margin-top: 10px;
  color: var(--accent);
  letter-spacing: -1.8px;
  line-height: 1;
}

.success-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

.budget-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
}

.budget-btn-yes {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
  font-family: inherit;
}

.budget-btn-yes:hover {
  transform: translateY(-2px);
}

.budget-btn-no {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #0F172A;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
}

/* ===== 17. Category / item cards Atlas ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.atlas-card-btn {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  color: #0F172A;
  display: block;
  width: 100%;
  position: relative;
  font-family: inherit;
}

.atlas-card-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 14%, transparent);
}

.atlas-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.atlas-card-btn.special .atlas-card-icon {
  background: #FFFBEB;
  color: #92400E;
}

.atlas-card-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== 18. Services Atlas ===== */
.services-grid-atlas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.service-card-atlas {
  text-align: left;
  padding: 18px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.service-card-atlas:hover:not(.selected) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 10%, transparent);
}

.service-card-atlas.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 15%, transparent);
}

.service-card-atlas-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F8FAFC;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.service-card-atlas.selected .service-card-atlas-icon {
  background: var(--accent);
  color: #fff;
}

.service-check-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.service-card-atlas.selected .service-check-dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== 19. Item detail ===== */
.item-detail-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.item-detail-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
}

.item-vol-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
  padding: 4px 10px;
  background: #F8FAFC;
  border-radius: 999px;
}

.item-vol-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ===== 20. Form navigation footer ===== */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.form-nav-step-count {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

/* ===== 21. Packed question card ===== */
.packed-question-card {
  margin-top: 24px;
  padding: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, white), #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
}

.packed-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.packed-choice-btn {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: inherit;
}

.packed-choice-btn:hover {
  border-color: var(--accent);
}

.packed-choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== 22. Autocomplete address ===== */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-input-wrap {
  position: relative;
}

.autocomplete-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0F172A;
  opacity: 0.5;
  pointer-events: none;
}

.autocomplete-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #0F172A;
  transition: all 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.autocomplete-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 30;
  overflow: hidden;
}

.autocomplete-item {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.autocomplete-item:hover {
  background: #F8FAFC;
}

/* ===== 23. Misc helpers ===== */
.section-divider {
  border-top: 1px solid #E2E8F0;
  margin-top: 28px;
  padding-top: 28px;
}

.atlas-hint-warn {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.atlas-hint-blue {
  background: color-mix(in srgb, var(--accent) 5%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #0F172A;
}

.aside-info-box {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ===== 24. Animations globales ===== */
@keyframes mvFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mvPop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes mvPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.9; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mv-fade-up {
  animation: mvFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mv-pop {
  animation: mvPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mv-stagger > * {
  opacity: 0;
  animation: mvFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mv-stagger > *:nth-child(1)  { animation-delay: 0.04s; }
.mv-stagger > *:nth-child(2)  { animation-delay: 0.08s; }
.mv-stagger > *:nth-child(3)  { animation-delay: 0.12s; }
.mv-stagger > *:nth-child(4)  { animation-delay: 0.16s; }
.mv-stagger > *:nth-child(5)  { animation-delay: 0.20s; }
.mv-stagger > *:nth-child(6)  { animation-delay: 0.24s; }
.mv-stagger > *:nth-child(7)  { animation-delay: 0.28s; }
.mv-stagger > *:nth-child(8)  { animation-delay: 0.32s; }
.mv-stagger > *:nth-child(9)  { animation-delay: 0.36s; }
.mv-stagger > *:nth-child(10) { animation-delay: 0.40s; }
.mv-stagger > *:nth-child(11) { animation-delay: 0.44s; }
.mv-stagger > *:nth-child(12) { animation-delay: 0.48s; }

/* ===== 25. Language switcher header ===== */
.atlas-lang-switch {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.atlas-lang-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748B;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.atlas-lang-btn.active {
  background: #0F172A;
  color: #fff;
}

/* ===== 26. Qty stepper (conserve compatibilite JS existant) ===== */
.qty-stepper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.qty-stepper button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--accent);
}

.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-stepper .val {
  min-width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ===== 27. Radio card (conserve compatibilite) ===== */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .radio-group { grid-template-columns: 1fr; } }

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.radio-card:hover { border-color: #CBD5E1; background: #F8FAFC; }
.radio-card.active { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { display: none; }

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.radio-card.active .radio-dot { border-color: var(--accent); }
.radio-card.active .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.radio-body { flex: 1; }
.radio-title { font-size: 13px; font-weight: 600; }
.radio-desc { font-size: 11px; color: #64748B; margin-top: 2px; }

/* ===== 28. Hint (conserve compatibilite) ===== */
.hint {
  font-size: 12px;
  color: #64748B;
  margin-top: 8px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.hint svg { width: 14px; height: 14px; color: #64748B; flex-shrink: 0; margin-top: 1px; }

/* ===== 29. Progress bar (conserve compatibilite) ===== */
.progress { margin-bottom: 16px; }

.progress-track { display: flex; gap: 3px; }

.progress-seg {
  flex: 1;
  height: 3px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-seg-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.progress-seg.done .progress-seg-fill { transform: scaleX(1); }
.progress-seg.active .progress-seg-fill {
  transform: scaleX(0.5);
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #fff) 100%);
}

/* ===== 30. Responsive ===== */
@media (max-width: 900px) {
  .atlas-form-wrap {
    grid-template-columns: 1fr;
  }
  .atlas-aside {
    position: static;
  }
  .atlas-hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 42px;
    letter-spacing: -1.8px;
  }
  .how-it-works-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .hero-img-wrap {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .atlas-form-wrap {
    padding: 16px 16px 60px;
  }
  .atlas-form-card {
    padding: 20px;
    border-radius: 16px;
  }
  .hero-title {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .how-it-works-inner {
    grid-template-columns: 1fr;
  }
  .atlas-hero-section {
    padding: 32px 16px 16px;
  }
  .atlas-header-inner {
    padding: 12px 16px;
  }
}

@media (max-width: 479px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .item-detail-header {
    grid-template-columns: 1fr;
  }
  .packed-choice-grid {
    grid-template-columns: 1fr;
  }
  .success-trust-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== 31. Accessibilite ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button, [role="button"] {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
