:root {
  color-scheme: light;
  --ink: #10283d;
  --muted: #5e7181;
  --teal: #0f766e;
  --teal-light: #45b8a8;
  --coral: #e59b7b;
  --line: rgba(16, 40, 61, 0.11);
  --white: rgba(255, 255, 255, 0.84);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 24%, rgba(80, 204, 190, 0.19), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(238, 174, 130, 0.16), transparent 31%),
    linear-gradient(130deg, #fbfcfd 0%, #eef9f8 58%, #f4fbfd 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.055) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  content: "";
  pointer-events: none;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(16, 40, 61, 0.14);
}

.brand span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 86px);
  padding: 18px 0 12px;
}

.content {
  max-width: 590px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  padding: 8px 15px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: #246d67;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 4.25vw, 60px);
  font-weight: 900;
  letter-spacing: -3.1px;
  line-height: 0.98;
  text-wrap: balance;
}

.lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: #237a70;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 750;
  line-height: 1.4;
}

.intro {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 19px 0 17px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 40, 61, 0.055);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.benefit-wide {
  grid-column: 1 / -1;
}

.check {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.2);
  font-size: 14px;
  font-weight: 900;
}

.signup {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 10px;
}

.signup input,
.signup button {
  min-height: 58px;
  border-radius: 13px;
  font: inherit;
}

.signup input {
  width: 100%;
  border: 1px solid rgba(16, 40, 61, 0.17);
  outline: none;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 30px rgba(16, 40, 61, 0.06);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signup input:focus {
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11), 0 12px 30px rgba(16, 40, 61, 0.06);
}

.signup button {
  border: 0;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, #0c6d66, var(--teal-light));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.signup button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.28);
}

.signup button:active {
  transform: translateY(0);
}

.reassurance {
  margin: 10px 0 0;
  color: #718190;
  font-size: 12px;
  text-align: center;
}

.reassurance span {
  margin: 0 4px;
  color: var(--coral);
}

.visual {
  position: relative;
  isolation: isolate;
}

.visual::before {
  position: absolute;
  z-index: -1;
  inset: 8% 2% 14%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38% 62% 54% 46% / 50% 34% 66% 50%;
  background: rgba(255, 255, 255, 0.27);
  box-shadow: 0 30px 80px rgba(27, 89, 98, 0.13);
  content: "";
  transform: rotate(-2deg);
}

.glow {
  position: absolute;
  z-index: -2;
  width: 62%;
  aspect-ratio: 1;
  top: 8%;
  right: 2%;
  border-radius: 50%;
  background: rgba(68, 190, 178, 0.28);
  filter: blur(52px);
}

.visual img {
  display: block;
  width: 112%;
  max-width: none;
  margin-left: -6%;
  filter: drop-shadow(0 26px 32px rgba(16, 40, 61, 0.16));
}

.visual p {
  width: fit-content;
  max-width: 420px;
  margin: -4px auto 0;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(16, 40, 61, 0.08);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.visual p strong {
  color: var(--ink);
}

.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;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(760px, calc(100% - 40px));
  }

  .brand {
    margin: 0 auto;
  }

  .page-shell,
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-top: 32px;
  }

  .content {
    max-width: 700px;
    text-align: center;
  }

  h1 {
    font-size: clamp(40px, 7vw, 56px);
    letter-spacing: -2.2px;
  }

  h1,
  .lead,
  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .visual {
    width: min(650px, 100%);
    margin: 22px auto 12px;
  }

  .visual img {
    width: 100%;
    margin-left: 0;
  }

  .visual p {
    display: none;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 520px);
    padding-top: 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 11px;
    letter-spacing: 1.05px;
  }

  .hero {
    padding-top: 22px;
  }

  .visual {
    margin-bottom: 4px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(38px, 12.6vw, 54px);
    letter-spacing: -2.3px;
  }

  .lead {
    margin-top: 22px;
    font-size: 18px;
  }

  .intro {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .benefits {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
  }

  .benefit {
    min-height: 52px;
    text-align: left;
  }

  .signup {
    grid-template-columns: 1fr;
  }

  .signup input,
  .signup button {
    min-height: 58px;
  }

  .signup button {
    padding: 0 16px;
    font-size: 13px;
  }

  .reassurance {
    padding: 0 12px;
    line-height: 1.55;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Page de confirmation indépendante */
.thanks-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.thanks-brand {
  margin-bottom: 28px;
}

.thanks-card {
  width: 100%;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(16, 40, 61, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 80px rgba(16, 40, 61, 0.11);
  backdrop-filter: blur(12px);
  text-align: center;
}

.success-check {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.23);
  font-size: 34px;
  font-weight: 900;
}

.thanks-eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.thanks-card h1 {
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(35px, 6vw, 54px);
  letter-spacing: -2.5px;
  line-height: 1.02;
}

.thanks-lead {
  margin: 20px 0 0;
  color: var(--teal);
  font-size: 19px;
  font-weight: 800;
}

.thanks-copy {
  max-width: 610px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.next-steps {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  text-align: left;
}

.next-steps div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 10px 15px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
}

.next-steps span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.next-steps p {
  margin: 0;
  color: #344c5e;
  font-size: 14px;
  line-height: 1.35;
}

.support-note {
  margin: 20px 0 0;
  color: #718190;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .thanks-shell {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .thanks-brand {
    margin-bottom: 18px;
  }

  .thanks-card {
    padding: 27px 18px;
    border-radius: 22px;
  }

  .success-check {
    width: 60px;
    height: 60px;
    font-size: 29px;
  }

  .thanks-card h1 {
    font-size: clamp(33px, 10vw, 44px);
    letter-spacing: -1.8px;
  }

  .thanks-lead {
    font-size: 17px;
  }
}
