@font-face { font-family: Space; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root { color-scheme: dark; --bg: #0d0d0d; --surface: #171716; --line: #ffffff1c; --ink: #faf9f5; --muted: #b5b2a8; --sun: #f2b533; --field: #111110; --bad: #ff9ca9; }
:root[data-mode="jour"] { color-scheme: light; --bg: #f4f3ef; --surface: #fff; --line: #1d1b1629; --ink: #161512; --muted: #5f5c54; --field: #fff; --bad: #b32947; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Space, system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
::selection { background: #f2b533; color: #171109; }
input { caret-color: var(--sun); }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: default; }
button:hover:not(:disabled), a.primary:hover { filter: brightness(1.1); }
header { max-width: 1320px; margin: auto; padding: 27px 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; width: 175px; height: 40px; object-fit: contain; }
:root[data-mode="jour"] .logo { background: #161615; border-radius: 8px; padding: 6px; width: 187px; height: 44px; }
.header-link { font-size: 14px; color: var(--muted); }
.header-link a { color: var(--sun); margin-left: 8px; text-decoration: none; }
.layout { max-width: 1160px; margin: 30px auto 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: start; padding: 0 32px; }
.story { padding-top: 30px; }
.story h1 { font-size: 48px; line-height: 1.12; letter-spacing: -.035em; font-weight: 500; max-width: 500px; margin: 0 0 23px; }
.story p { color: var(--muted); max-width: 405px; margin: 0; font-size: 17px; }
.house-visual { position: relative; margin: 15px 0 0; max-width: 450px; }
.house-visual img { width: 100%; height: auto; display: block; }
.house-visual figcaption { text-align: center; color: var(--muted); font-size: 12px; }
.promise { display: flex; align-items: center; gap: 10px; margin-top: 28px !important; font-size: 14px !important; }
.promise span { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
.form-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--surface); }
h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.intro { color: var(--muted); margin: 0 0 25px; font-size: 14px; }
.tag { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 500; vertical-align: middle; margin-left: 6px; }
.fields { display: grid; gap: 19px; }
label { display: grid; gap: 7px; font-size: 14px; }
input { width: 100%; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; min-height: 49px; padding: 12px 14px; font-size: 16px; }
input::placeholder { color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--bad); }
.help { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.pw { position: relative; margin-top: 7px; }
.pw input { padding-right: 83px; }
.pw button { position: absolute; right: 7px; top: 6px; min-height: 36px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.terms { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; color: var(--muted); margin: 22px 0; }
.terms input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0; accent-color: var(--sun); flex-shrink: 0; }
.primary { background: linear-gradient(100deg, #ffe29a, #f2b533 55%, #e8862a); color: #1b1305; border: 0; border-radius: 999px; min-height: 49px; padding: 12px 23px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wide { width: 100%; }
.text-button { background: transparent; border: 0; color: #f8cd6a; font-size: 14px; min-height: 44px; padding: 10px 0; }
:root[data-mode="jour"] :is(.text-button, .steps .current, .header-link a) { color: #8d5700; }
.below { text-align: center; color: var(--muted); font-size: 12px; margin: 13px 0 0; }
.msg { color: var(--muted); font-size: 13px; margin: 12px 0; overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.err { color: var(--bad); }
.hint-box { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.steps { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.steps .current { color: #f8cd6a; }
.code { letter-spacing: .38em; text-align: center; font-size: 28px; font-variant-numeric: tabular-nums; }
#verifyBtn { margin-top: 24px; }
.mailmark { height: 55px; width: 55px; border: 1px solid #f2b53366; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; color: var(--sun); }
.mailmark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.email { color: var(--ink); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-top: 20px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
@media (min-width: 1500px) { .layout { margin-top: 65px; } }
@media (max-width: 900px) { .layout { gap: 35px; } .story h1 { font-size: 38px; } .form-panel { padding: 26px; } }
@media (max-width: 650px) {
  header { padding: 20px; flex-wrap: wrap; gap: 8px; }
  .logo { width: 145px; height: 34px; }
  .header-link { font-size: 12px; }
  .layout { display: block; padding: 0 20px; margin: 12px auto 35px; }
  .story { padding-top: 5px; }
  .story h1 { font-size: 33px; max-width: 350px; margin-bottom: 14px; }
  .story p { font-size: 15px; }
  .house-visual { display: none; }
  .promise { margin-top: 16px !important; margin-bottom: 25px !important; font-size: 12px !important; }
  .form-panel { padding: 25px 22px; }
  h2 { font-size: 25px; }
  .foot { padding: 18px 20px; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .form-panel { animation: arrive .35s cubic-bezier(.16, 1, .3, 1); }
  @keyframes arrive { from { transform: translateY(7px); } to { transform: translateY(0); } }
}
/* Code ambassadeur : facultatif, replié sauf s'il arrive par le lien. */
.amb { margin: 4px 0 8px; }
.amb-gift { margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4;
  background: linear-gradient(135deg, rgba(143,124,240,.20), rgba(242,181,51,.12)); border: 1px solid rgba(143,124,240,.45); }
.amb-gift b { font-weight: 600; }
.amb input.ok { border-color: rgba(47,191,47,.7); }
.amb input[aria-invalid="true"] { border-color: var(--bad); }
.amb .help.err { color: var(--bad); }
