:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0c1b2b;
  color: #f5f2e9;
  --navy: #0c1b2b;
  --navy-raised: #14263a;
  --navy-card: #172b40;
  --gold: #dfc47d;
  --gold-strong: #f0d995;
  --text: #f5f2e9;
  --muted: #c0cad4;
  --line: #ffffff24;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--gold-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff0bf;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.hero__inner,
.social-proof__inner,
.pack-contents,
.legal-main {
  width: min(calc(100% - 40px), var(--container));
  margin-right: auto;
  margin-left: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 40px;
  height: 44px;
  object-fit: contain;
}

.header-social {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-social svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 64px 0 72px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1100px, 100%);
  background: url("/modeles-apercu.png") center / contain no-repeat;
  content: "";
  opacity: 0.35;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, var(--navy) 0, transparent 40px),
    linear-gradient(0deg, var(--navy) 0, transparent 80px),
    radial-gradient(ellipse at center, rgb(12 27 43 / 55%) 0%, rgb(12 27 43 / 85%) 60%, var(--navy) 100%);
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 40px), 680px);
  text-align: center;
}

.hero__copy {
  max-width: 680px;
  margin: 0 auto;
  animation: fade-in 360ms ease-out both;
}

.hero h1,
.hero__description {
  margin-right: auto;
  margin-left: auto;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
.pack-contents h2,
.legal-main h1,
.legal-main h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 660px;
  margin-bottom: 10px;
  color: #fffdf6;
  font-size: clamp(37px, 10vw, 50px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.07;
}

.headline-line {
  display: block;
  color: #fffdf6;
  white-space: nowrap;
}

.headline-line--accent {
  color: var(--gold-strong);
}

.hero__description {
  max-width: 520px;
  margin-bottom: 15px;
  color: #d4dce4;
  font-size: 17px;
  line-height: 1.5;
}

.signup-card {
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  background: rgb(18 36 56 / 94%);
  box-shadow: 0 16px 40px #00000038;
  animation: fade-in 440ms ease-out both;
}

.signup-card__title {
  margin: 0 0 2px;
  color: var(--gold-strong);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.field-label {
  color: #e1e5e9;
  font-size: 13px;
  font-weight: 600;
}

.email-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #ffffff45;
  border-radius: 8px;
  background: #091624;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.email-input::placeholder {
  color: #adb9c5;
  opacity: 1;
}

.email-input:focus {
  border-color: var(--gold);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0;
  color: #d0d8df;
  font-size: 13px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.consent a {
  color: var(--gold-strong);
  font-weight: 600;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--gold-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #e6cd8b 0%, #d4b868 100%);
  color: #142234;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: var(--gold-strong);
  box-shadow: 0 5px 16px #dfc47d2b;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 13px;
  margin: 1px 0 0;
  padding: 0;
  color: #d0d8df;
  font-size: 12px;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.trust-row svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.form-status:not(:empty) {
  margin-top: 2px;
}

.form-status.is-error {
  color: #ffd3cc;
}

.form-status.is-success {
  color: #d8eabf;
}

.form-status.is-dev {
  color: var(--gold-strong);
}

.form-status.is-loading {
  color: #d0d8df;
}

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid #14223455;
  border-top-color: #142234;
  border-radius: 50%;
}

.signup-card[aria-busy="true"] .spinner {
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.social-proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff05;
}

.social-proof__inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.social-proof__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold-strong);
}

.social-proof p {
  margin: 0;
  color: #d0d8df;
  font-size: 12px;
  text-align: center;
}

.social-proof strong {
  color: var(--text);
}

.social-proof a {
  font-weight: 700;
  white-space: nowrap;
}

.pack-contents {
  padding-top: 22px;
  padding-bottom: 18px;
}

.pack-contents h2 {
  margin: 0 0 16px;
  color: #fffdf6;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-grid li {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--navy-card);
  color: #e0e5e9;
  font-size: 13px;
  line-height: 1.4;
}

.model-grid svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.legal-note {
  margin: 14px 0 0;
  padding: 10px 12px 0;
  border-top: 1px solid var(--gold);
  color: #d0d8df;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.library-more {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  min-height: 52px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer a {
  min-height: 24px;
  color: #d0d8df;
}

.site-footer a:hover {
  color: var(--gold-strong);
}

.legal-main {
  min-height: calc(100vh - 124px);
  padding-top: 34px;
  padding-bottom: 48px;
}

.legal-main h1 {
  margin-bottom: 8px;
  color: #fffdf6;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.12;
}

.legal-updated {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
}

.legal-main h2 {
  margin: 25px 0 8px;
  color: var(--gold-strong);
  font-size: 21px;
  line-height: 1.3;
}

.legal-main p,
.legal-main address {
  max-width: 760px;
  margin-bottom: 10px;
  color: #d5dce3;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.legal-main a {
  color: var(--gold-strong);
}

.placeholder-value {
  display: inline-block;
}

.placeholder-value.is-placeholder {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #dfc47d66;
  border-radius: 4px;
  background: #dfc47d15;
  color: #ffe7a6;
  font-weight: 600;
}

.placeholder-value.is-placeholder:empty::before {
  content: "À REMPLACER";
}

html.legal-popup-open,
html.legal-popup-open body {
  overflow: hidden;
}

.legal-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: min(84dvh, 780px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(223 196 125 / 35%);
  border-radius: 18px;
  background: #102238;
  color: var(--text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.legal-dialog::backdrop {
  background: rgb(3 10 18 / 78%);
  backdrop-filter: blur(4px);
}

.legal-dialog__frame {
  display: flex;
  max-height: min(84dvh, 780px);
  flex-direction: column;
}

.legal-dialog__header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  min-height: 64px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #102238;
}

.legal-dialog__header h2 {
  margin: 0;
  color: #fffdf6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.legal-dialog__close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff0a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 25px;
  line-height: 1;
}

.legal-dialog__close:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.legal-dialog__body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-dialog__body .legal-main {
  width: 100%;
  min-height: 0;
  padding: 20px 24px 28px;
}

.legal-dialog__body .legal-main h1 {
  font-size: 30px;
}

.legal-dialog__body .legal-main h2 {
  margin-top: 20px;
}

.legal-dialog__body .legal-main p,
.legal-dialog__body .legal-main address {
  font-size: 14px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  .site-header {
    min-height: 82px;
  }

  .brand__logo {
    width: 42px;
    height: 48px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 680px);
  }

  h1 {
    font-size: clamp(48px, 4.2vw, 58px);
  }

  .signup-card {
    padding: 24px;
  }

  .social-proof__inner {
    min-height: 58px;
  }

  .social-proof p {
    font-size: 14px;
  }

  .pack-contents {
    padding-top: 32px;
    padding-bottom: 26px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .model-grid li {
    min-height: 60px;
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media (max-width: 719px) {
  .hero {
    padding: 28px 0 44px;
  }

  .hero::before {
    background-position: center top;
    opacity: 0.25;
  }

  .hero::after {
    background:
      linear-gradient(180deg, var(--navy) 0, transparent 40px),
      linear-gradient(0deg, var(--navy) 0, transparent 80px),
      radial-gradient(ellipse at center, rgb(12 27 43 / 55%) 0%, rgb(12 27 43 / 85%) 60%, var(--navy) 100%);
  }

  .hero__description {
    font-size: 15px;
  }

  .signup-card {
    padding: 18px;
  }

  .consent {
    font-size: 13px;
  }

  .trust-row {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(26px, 7.6vw, 44px);
  }
}

@media (max-width: 380px) {
  .site-header,
  .site-footer,
  .hero__inner,
  .social-proof__inner,
  .pack-contents,
  .legal-main {
    width: calc(100% - 32px);
  }

  .hero__description {
    margin-bottom: 11px;
    font-size: 14px;
  }

  .signup-card {
    gap: 7px;
    padding: 14px;
  }

  .trust-row {
    gap: 5px 9px;
    font-size: 12px;
  }

  .trust-row svg {
    width: 13px;
    height: 13px;
  }

  .pack-contents {
    padding-top: 17px;
    padding-bottom: 13px;
  }

  .pack-contents h2 {
    font-size: 21px;
  }

  .model-grid {
    gap: 6px;
  }

  .model-grid li {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .legal-dialog {
    width: calc(100% - 20px);
    max-height: 90dvh;
    border-radius: 14px;
  }

  .legal-dialog__frame {
    max-height: 90dvh;
  }

  .legal-dialog__header {
    min-height: 58px;
    padding: 9px 14px;
  }

  .legal-dialog__header h2 {
    font-size: 20px;
  }

  .legal-dialog__body .legal-main {
    padding: 16px 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
