:root {
  --success: #10b981;
}

/* WRAPPER */
.wrap {
  max-width: 620px;
  margin: 30px auto;
  padding: 0 16px 60px;
}

/* PROGRESS BAR (linear like original) */
.prog-track {
  height: 8px;
  background: var(--lgray);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #16a34a);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* CARD */
.card {
  background: white;
  border: 2px solid #6366f1;
  border-radius: 16px;
  padding: 28px 24px;
}

/* SCREEN */
.screen { display: none; }
.screen.act { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* SLIDERS */
.sl-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.sl-title { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 12px; }
.sl-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--gray); margin-bottom: 6px; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--green) 0%, var(--green) 33%, var(--lgray) 33%, var(--lgray) 100%);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--green);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.sl-note { font-size: 0.72rem; color: var(--gray); margin-top: 8px; font-style: italic; }

/* RADIO inline */
.q-label { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 14px; }
.radio-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.radio-inline label { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; cursor: pointer; }
.radio-inline input[type=radio] {
  width: 17px; height: 17px;
  accent-color: #2563eb;
  cursor: pointer;
}
/* Radio grid for cotisation */
.radio-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 16px; margin-bottom: 8px; }
.radio-grid3 label { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; cursor: pointer; }
.radio-grid3 input[type=radio] { width:16px;height:16px;accent-color:#2563eb; }

/* TEXT INPUTS */
.inp-g { margin-bottom: 16px; }
.inp-g label {
  display: block;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.inp-g label .req { color: var(--red); }
.inp-g input, .inp-g select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.inp-g input:focus, .inp-g select:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.inp-g input.error, .inp-g select.error { border-color: var(--red); }
.inp-hint { font-size: 0.72rem; color: var(--orange); margin-top: 4px; }
.inp-hint.gray { color: var(--gray); }
.inp-shield { position: relative; }
.inp-shield input { padding-right: 40px; }
.shield-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--border); font-size: 1rem; }

/* CHECKBOX */
.chk-line { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.chk-line input[type=checkbox] { width:17px;height:17px;min-width:17px;accent-color:#2563eb;cursor:pointer;margin-top:2px; }
.chk-line label { font-size: 0.82rem; color: var(--text); line-height: 1.55; cursor: pointer; }
.chk-line label a { color: #2563eb; }
.chk-line label .req { color: var(--red); }

/* RDV SELECT */
.rdv-wrap { display: none; margin-top: 10px; }
.rdv-wrap.show { display: block; }
.rdv-wrap select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--text);
  background: white;
  outline: none;
  height: 180px;
}
.rdv-wrap select option { padding: 6px; }
.rdv-wrap select option:checked { background: #2563eb; color: white; }
.rdv-selected {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--red);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text);
  background: white;
}
.rdv-required { font-size: 0.72rem; color: var(--red); margin-top: 3px; display: none; }
.rdv-required.show { display: block; }

/* BUTTONS */
.btn-row { display: flex; gap: 12px; margin-top: 20px; }
.btn-next {
  flex: 1;
  padding: 13px;
  background: #e8f0fe;
  color: #1d4ed8;
  border: 2px solid #c7d7f9;
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-next:hover { background: #dbeafe; border-color: #93c5fd; }
.btn-next.primary {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}
.btn-next.primary:hover { background: #1e40af; }
.btn-prev {
  padding: 13px 20px;
  background: white;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-prev:hover { border-color: var(--navy); }
.btn-validate {
  width: 100%;
  padding: 14px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.btn-validate:hover { background: #1e40af; transform: translateY(-1px); }
.err-msg { font-size: 0.73rem; color: var(--red); margin-top: 3px; display: none; }
.err-msg.show { display: block; }

/* SIMULATION MSG */
.sim-msg {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}

/* LOADING */
.load-screen { display: none; }
.load-screen.act { display: block; animation: fadeUp 0.3s ease; }
.load-inner {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
}
.load-logo { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); margin-bottom: 20px; }
.load-logo span { color: var(--orange); }
.load-icon { font-size: 2.5rem; margin-bottom: 12px; }
.load-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 20px; }
.load-steps { list-style: none; text-align: left; max-width: 320px; margin: 0 auto; }
.load-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gray);
  opacity: 0.4;
  transition: all 0.4s;
}
.load-step.active { opacity: 1; color: var(--text); font-weight: 600; }
.load-step.done { opacity: 1; color: var(--success); }
.load-step-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.load-spinner {
  width: 18px; height: 18px;
  border: 3px solid var(--lgray);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.load-step.active .load-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESULT */
.res-screen { display: none; }
.res-screen.act { display: block; animation: fadeUp 0.4s ease; }
.res-inner { background: #e8f5f5; border-radius: 16px; overflow: hidden; }
.res-header {
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.res-label {
  text-align: right;
}
.res-label p { font-size: 0.85rem; color: var(--navy); margin-bottom: 4px; }
.res-label h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.3;
}
.res-label h2 span { color: var(--orange); }
.res-logo-block {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  background: white;
  text-align: center;
  margin: 0 24px;
}
.res-logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
  letter-spacing: -1px;
}
.res-logo-sub { font-size: 0.72rem; color: var(--gray); }
.res-pct-block { text-align: center; margin: 16px 24px; }
.res-pct-label {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.res-pct {
  display: inline-block;
  border: 3px solid var(--orange);
  border-radius: 40px;
  padding: 12px 32px;
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--orange);
  background: white;
}
.res-desc { padding: 16px 24px 24px; font-size: 0.82rem; color: var(--navy); line-height: 1.65; text-align: center; }
.res-desc strong { color: var(--orange); }
.res-cta {
  width: 100%;
  padding: 15px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.res-cta:hover { background: var(--orange2); transform: translateY(-2px); }

/* REASSURANCE */
.reassurance { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 20px; margin-top: 20px; background: white; border-radius: 12px; }
.re { display: flex; align-items: center; gap: 5px; font-size: 0.73rem; color: var(--gray); }


