@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #B5551F;
  --primary-dark: #8A3F15;
  --accent: #E08641;
  --bg: #F5F1E7;
  --card-bg: #FBF8F1;
  --text: #211D18;
  --muted: #6B6355;
  --border: #DDD5C4;
  --radius: 10px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

.hero {
  background: linear-gradient(180deg, #211D18 0%, #35291E 100%);
  color: #F5F1E7;
  padding: 48px 20px 68px;
  text-align: center;
}

.eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.hero-inner h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.3rem;
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

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

.hero-inner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(33,29,24,0.14);
  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: 50%;
  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 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}

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: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #FFFDF9;
  color: var(--text);
}

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: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  flex: 1;
  min-width: 160px;
}

.option:has(input:checked) {
  border-color: var(--primary);
  background: #FBEEE1;
}

.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: var(--radius);
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  font-family: var(--font-body);
}

.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-eligible { background: #E3F0E4; color: #2E6B37; }
.badge-verifier { background: #FFF4D6; color: #946800; }
.badge-non { background: #f3f3f3; color: #555; }

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

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

.result-amount {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
  line-height: 1.1;
}

.result-star {
  font-size: 1.1rem;
  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);
}

.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: #FBEEE1;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

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

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

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

@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(--primary);
  color: white;
  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; }

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

/* ---------- Contenu SEO ---------- */
.seo-content {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 8px;
}

.seo-content section {
  margin-bottom: 40px;
}

.seo-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  color: var(--text);
}

.seo-content p {
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--text);
}

.seo-content p.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-content .exclusions {
  background: #FBEEE1;
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2E6B37;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table th, table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

table th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.process-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.process-list li {
  line-height: 1.55;
  padding-left: 4px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--card-bg);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.back-to-quiz {
  text-align: center;
  margin-top: 48px;
}

.cta-btn-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
}

.cta-btn-link:hover {
  background: var(--primary-dark);
}
