:root {
  --color-primary: #0b3d2e;
  --color-primary-hover: #0e4a37;
  --color-secondary: #99b58f;
  --color-secondary-soft: rgba(153, 181, 143, 0.18);
  --color-text: #10221b;
  --color-muted: #5b6b63;
  --color-border: #e4e7e1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo__full {
  display: block;
  height: 26px;
  width: auto;
}

.site-logo__compact {
  display: none;
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-solid-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--color-primary);
}

.btn-solid-sm:hover {
  background: var(--color-primary-hover);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 32px 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

@media (max-width: 860px) {
  .site-nav,
  .site-header__actions .btn-solid-sm {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    padding: 14px 20px;
  }

  .site-logo__full {
    display: none;
  }

  .site-logo__compact {
    display: block;
  }
}

@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    justify-self: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - var(--header-h, 60px));
  min-height: calc(100dvh - var(--header-h, 60px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 32px;
}

.hero h1 .accent {
  color: var(--color-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary .icon {
  width: 18px;
  height: 18px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 56px auto 0;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.scroll-hint .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Section shell ---------- */

section {
  padding: 88px 24px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 48px;
}

.section-title .accent {
  color: var(--color-primary);
}

.section-alt {
  background: #f7f8f6;
}

/* ---------- Avantages ---------- */

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.perk {
  text-align: center;
}

.perk__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
}

.perk__icon .icon {
  width: 26px;
  height: 26px;
}

.perk h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.perk p {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Timeline ---------- */

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline-step {
  position: relative;
  flex: 1;
  text-align: center;
  padding-top: 44px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-step__number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-step p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* ---------- Comment s'inscrire ---------- */

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 56px;
}

.signup-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.signup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
}

.signup-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.signup-step__caption {
  font-size: 16px;
  color: var(--color-text);
  margin: 0 0 20px;
}

.signup-step__arrow {
  width: 22px;
  height: 22px;
  color: var(--color-muted);
  flex-shrink: 0;
  margin-top: 66px;
}

.signup-steps__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 56px 0 48px;
}

.signup-step--final .signup-step__caption {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.signup-step__desc {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
  max-width: 420px;
}

/* ---------- Step mockup (illustrations) ---------- */

.step-mockup {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 61, 46, 0.08);
  text-align: left;
}

.step-mockup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
}

.step-mockup__bar .icon {
  width: 14px;
  height: 14px;
}

.step-mockup__bar--form {
  color: var(--color-muted);
}

.step-mockup__bar--form span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.step-mockup__logo {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-text);
}

.step-mockup__body {
  padding: 18px 14px;
}

.step-mockup__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0 0 4px;
}

.step-mockup__heading {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
}

.step-mockup__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-mockup__btn .icon {
  width: 12px;
  height: 12px;
}

.step-mockup__wordmark {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.step-mockup__form-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.step-mockup__fields-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.step-mockup__field {
  flex: 1;
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 10px;
  color: var(--color-muted);
}

.step-mockup__field--full {
  width: 100%;
}

.step-mockup__space-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--color-secondary-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step-mockup__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
}

.step-mockup__label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0 0 6px;
}

.step-mockup__menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.step-mockup__menu-item .icon {
  width: 12px;
  height: 12px;
}

.step-mockup__menu-item--active {
  background: var(--color-secondary-soft);
  color: var(--color-primary);
}

.step-mockup__menu-item--active .icon {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .signup-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .signup-step__arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }
}

/* ---------- Formation ---------- */

.formation {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.formation h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.formation p {
  color: var(--color-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 28px;
}

.final-cta h2 .accent {
  color: var(--color-primary);
}

.final-cta__login {
  margin: 20px 0 0;
  font-size: 14.5px;
  color: var(--color-muted);
}

.link-accent {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding: 56px 20px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .perks {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline {
    flex-direction: column;
    gap: 24px;
  }

  .timeline-step {
    padding-top: 0;
    padding-left: 44px;
    text-align: left;
  }

  .timeline-step::before {
    top: 0;
    left: 15px;
    width: 1px;
    height: 100%;
  }

  .timeline-step__number {
    top: 0;
    left: 0;
    transform: none;
  }

  .final-cta h2 {
    font-size: 24px;
  }
}
