:root {
  --primary: #0a7d4b;
  --primary-dark: #075c37;
  --accent: #ffb703;
  --bg: #f4f7f5;
  --card-bg: #ffffff;
  --text: #1b2b22;
  --muted: #6b7a70;
  --border: #e1e8e3;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 48px 20px 64px;
  text-align: center;
}

.hero-inner h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.hero-inner .highlight {
  color: var(--accent);
}

.hero-inner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

.container {
  max-width: 560px;
  margin: -36px auto 40px;
  padding: 0 16px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 0 0 32px;
  overflow: hidden;
}

.card > .progress {
  padding: 28px 24px 0;
}

.card > form {
  padding: 0 24px;
}

.card > #result-step {
  padding: 24px 24px 0;
}

.progress {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  width: 33%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 18px 0 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  background: #fbfdfc;
}

input:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}

.option input { width: auto; margin: 0; }

.option.consent {
  font-weight: 400;
  font-size: 0.88rem;
  flex: none;
  width: 100%;
  align-items: flex-start;
}

.option.consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -6px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
}

.next-btn, .submit-btn {
  background: var(--primary);
  color: white;
  width: 100%;
}

.next-btn:hover, .submit-btn:hover {
  background: var(--primary-dark);
}

.prev-btn {
  background: transparent;
  color: var(--muted);
  margin-right: 10px;
}

#result-step {
  text-align: center;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-bleu { background: #e3f0ff; color: #0a4f9c; }
.badge-jaune { background: #fff4d6; color: #946800; }
.badge-violet { background: #f1e3ff; color: #5b2a96; }
.badge-rose { background: #ffe1ec; color: #99214f; }
.badge-non { background: #f3f3f3; color: #555; }

.result-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
}

.result-detail {
  text-align: left;
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 0.92rem;
}

.result-detail div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.legal {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}

.cross-link {
  text-align: center;
  margin: 28px 0 0;
  font-size: 0.88rem;
}

.cross-link a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.cross-link a:hover {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer span {
  margin: 0 6px;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #f0f7f3;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--text);
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  font-size: 1.1rem;
}

@media (max-width: 540px) {
  .trust-item {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: center;
    padding: 10px 16px;
  }
  .trust-item:last-child {
    border-bottom: none;
  }
}

.inline-row {
  display: flex;
  gap: 12px;
}

.inline-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cta-btn {
  background: var(--accent);
  color: #1b2b22;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 16px 24px;
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s;
}

.cta-btn:hover { opacity: 0.9; }

.result-hero {
  text-align: center;
  padding: 8px 0 16px;
}

.result-hero h2 {
  font-size: 1.4rem;
  margin: 8px 0;
}

.result-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
  line-height: 1;
}

.result-star {
  font-size: 1.2rem;
  vertical-align: super;
}

.coords-block {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.coords-intro {
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

@media (max-width: 400px) {
  .inline-row { flex-direction: column; }
}
