:root {
  --bleu-encre: #07233f;
  --bleu-nuit: #03172b;
  --bleu-mer: #2f8fb7;
  --jaune-soleil: #f5b32f;
  --orange-doux: #e96f3a;
  --vert-montagne: #467545;
  --fond: #fff8ec;
  --fond-card: #ffffff;
  --texte: #172033;
  --texte-doux: #52606d;
  --bord: rgba(7, 35, 63, 0.14);
  --ombre: 0 18px 45px rgba(7, 35, 63, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 179, 47, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(47, 143, 183, 0.16), transparent 30rem),
    var(--fond);
  color: var(--texte);
  line-height: 1.6;
}

a {
  color: var(--bleu-encre);
}

img {
  max-width: 100%;
}

.test-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.85rem 1rem;
  background: var(--orange-doux);
  color: #fff;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem 2rem;
  background:
    linear-gradient(135deg, rgba(7, 35, 63, 0.94), rgba(7, 35, 63, 0.74)),
    linear-gradient(90deg, rgba(245, 179, 47, 0.18), rgba(47, 143, 183, 0.14));
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(245, 179, 47, 0.42), transparent 7rem),
    radial-gradient(circle at 82% 18%, rgba(47, 143, 183, 0.35), transparent 9rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.logo-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 179, 47, 0.18);
  color: #ffe6a3;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 12vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0 0 1rem;
  color: var(--bleu-encre);
  font-size: clamp(1.45rem, 6vw, 2.25rem);
  line-height: 1.08;
}

.slogan {
  max-width: 780px;
  margin: 1.2rem auto 0;
  color: #fff1c7;
  font-size: clamp(1.05rem, 4.5vw, 1.5rem);
  font-weight: 800;
}

.intro {
  margin: 0.7rem auto 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.actions.left {
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--jaune-soleil);
  color: var(--bleu-nuit);
}

.btn-secondary {
  background: #fff;
  color: var(--bleu-encre);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
}

.section:first-of-type {
  margin-top: 1.5rem;
}

.section-card,
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--ombre);
}

.section-card p {
  margin: 0 0 0.9rem;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.caution {
  border-left: 8px solid var(--jaune-soleil);
}

.finance {
  border-left: 8px solid var(--vert-montagne);
}

.contact {
  border-left: 8px solid var(--bleu-mer);
}

.section-title {
  margin-bottom: 1rem;
}

.section-title p {
  margin: 0;
  color: var(--texte-doux);
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  display: grid;
  gap: 0.35rem;
}

.stat-label {
  color: var(--texte-doux);
  font-weight: 700;
}

.stat-card strong {
  color: var(--bleu-encre);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 1;
}

.results-grid {
  display: grid;
  gap: 1rem;
}

.result-list {
  display: grid;
  gap: 0.85rem;
}

.result-item {
  display: grid;
  gap: 0.35rem;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-weight: 800;
}

.result-label {
  color: var(--texte);
}

.result-number {
  white-space: nowrap;
  color: var(--bleu-encre);
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(7, 35, 63, 0.09);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jaune-soleil), var(--orange-doux));
}

.empty {
  color: var(--texte-doux);
  font-style: italic;
}

.glossary {
  display: grid;
  gap: 1rem;
}

.glossary-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 35, 63, 0.045);
}

.glossary-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--bleu-encre);
}

.small-note {
  color: var(--texte-doux);
  font-size: 0.95rem;
}

.footer {
  margin-top: 2rem;
  padding: 2rem 1rem;
  background: var(--bleu-nuit);
  color: #fff;
  text-align: center;
}

.footer p {
  margin: 0.2rem 0;
}

.error-box {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 18px;
  background: #fff0df;
  color: #713600;
  border: 1px solid rgba(233, 111, 58, 0.35);
}

@media (min-width: 700px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .actions.left {
    justify-content: flex-start;
  }

  .btn {
    min-width: 210px;
  }

  .section {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .section-card,
  .stat-card {
    padding: 1.6rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .section-card,
  .stat-card {
    padding: 2rem;
  }
}
