:root {
  --bg: #050505;
  --bg-soft: #0f0f0f;
  --bg-elevated: #141414;
  --text: #f4f4f4;
  --text-muted: #b8b8b8;
  --line: #262626;
  --line-strong: #434343;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #171717 0%, #090909 36%, #050505 100%);
  line-height: 1.55;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
}

.hero {
  padding: 1.8rem 8% 4rem;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 0.86rem;
  letter-spacing: 0.24rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.3rem;
  align-items: end;
  margin-top: 4.3rem;
}

.hero-content {
  padding-right: 0.8rem;
}

.eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.14rem;
  margin-bottom: 1rem;
}

.highlight {
  color: #cecece;
}

.lead {
  color: var(--text-muted);
  max-width: 54ch;
  font-size: 1.05rem;
}

.lead.small {
  margin-top: 0;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #141414, #0f0f0f 60%);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
}

.panel-label {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.hero-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: #d5d5d5;
}

.hero-panel li + li {
  margin-top: 0.45rem;
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 0.78rem 1.12rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: #080808;
}

.btn-ghost {
  background: transparent;
}

.section {
  padding: 4.4rem 8%;
  border-bottom: 1px solid var(--line);
}

.metrics {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.metrics-grid article {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #0d0d0d;
  padding: 1rem;
}

.metric {
  margin: 0 0 0.55rem;
  font-size: 1.6rem;
  color: #d0d0d0;
}

.intro-block p {
  max-width: 72ch;
  color: var(--text-muted);
}

.cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-soft) 70%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
}

.tag {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.72rem;
}

.offer-card.featured {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wip-card {
  border-style: dashed;
  border-color: #4f4f4f;
  text-align: center;
  min-height: 165px;
  display: grid;
  place-content: center;
}

.final-cta {
  text-align: center;
}

.final-cta p {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 1.2rem;
}

.page-centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.panel {
  position: relative;
  width: min(760px, 100%);
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.typeform {
  margin-top: 1.2rem;
}

.form-keyboard-hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-keyboard-hint kbd {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  margin: 0 0.1rem;
  font-size: 0.78rem;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: #111;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-progress {
  width: 100%;
  height: 7px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
}

.form-progress-bar {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, #8a8a8a, #ffffff);
  transition: width 0.35s ease;
}

.form-step-count {
  margin: 0.6rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(4px);
}

.form-step.is-active {
  display: block;
  animation: formFadeIn 0.38s ease forwards;
  /* Espace reserve pour que l'animation ne remonte pas visuellement sur les boutons */
  min-height: min(11rem, 42vh);
  padding-bottom: 0.25rem;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

#submit-step {
  display: none;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #343434;
  background: #090909;
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font: inherit;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
}
