@charset "UTF-8";

/* Same design tokens as src/index.css. Standalone to avoid loading the app. */
:root {
  --terra: #D85A38;
  --terra-ink: #C24A2A;
  --navy: #1A2B49;
  --logo: #1B5C9E;
  --sand: #F3EDE3;
  --sand-2: #F7F3EC;
  --line: #EDE5D8;
  --line-2: #E3D9CA;
  --muted-ink: #5B6475;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--navy);
  background: var(--sand-2);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--terra-ink); outline-offset: 6px; border-radius: 4px; }
.waiting-page { max-width: 1480px; margin: auto; padding: 32px 6vw 22px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo); }
.brand img { object-fit: contain; }
.brand-wordmark { display: block; height: 22px; width: auto; }
.header-note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted-ink); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
main { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 6%; padding: 58px 0; }
.intro { padding: 20px 0; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: var(--terra-ink); margin: 0 0 26px; }
h1 { font-size: clamp(38px, 4vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -2px; margin: 0 0 24px; }
h1 em { color: var(--terra-ink); font-style: normal; }
.description { font-size: 15px; color: var(--muted-ink); line-height: 1.85; margin: 0 0 28px; }
.launch-date { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; border: 1px solid var(--line-2); background: white; border-radius: 30px; padding: 11px 17px; font-size: 13px; }
.launch-date > span { color: var(--terra-ink); font-size: 20px; margin-right: 3px; }
.launch-date strong { font-weight: 700; }
.countdown-note { font-size: 11px; line-height: 1.6; color: var(--muted-ink); margin: 21px 0 0; }
.promises { display: flex; flex-wrap: wrap; gap: 9px 16px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 11px; color: var(--muted-ink); }
.promises span::before { content: "✦"; color: var(--terra-ink); margin-right: 7px; }
.visual { position: relative; min-height: 570px; height: 100%; max-height: 720px; border-radius: 160px 160px 18px 18px; overflow: hidden; background: var(--navy); isolation: isolate; }
.travel-photo, .photo-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-shade { background: linear-gradient(180deg, rgba(26,43,73,.15), transparent 35%, rgba(26,43,73,.85)); }
.postcard-label { position: absolute; top: 48px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: 3px; color: white; }
.photo-caption { position: absolute; bottom: 45px; left: 32px; right: 24px; color: white; }
.photo-kicker { font-size: 24px; }
.photo-caption p { font-size: 44px; font-weight: 800; margin: 0 0 16px; letter-spacing: -1px; }
.photo-caption > span:last-child { font-size: 11px; line-height: 1.6; }
.date-stamp { position: absolute; right: 24px; top: 36%; height: 92px; width: 92px; border-radius: 50%; background: var(--sand); transform: rotate(10deg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--terra-ink); box-shadow: 0 4px 20px #0002; }
.date-stamp strong { font-size: 42px; line-height: 1.1; font-weight: 800; }
.date-stamp span { font-size: 8px; letter-spacing: 1.3px; }
footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10px; color: var(--muted-ink); }
footer a { text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-links a:last-child { text-decoration: none; }
.footer-links a:last-child:hover { color: var(--terra-ink); text-decoration: underline; }
.waitlist { margin-top: 28px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 20px; text-align: left; }
.waitlist h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.5px; }
.waitlist p { margin: 0 0 16px; font-size: 12px; line-height: 1.65; color: var(--muted-ink); }
.waitlist-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.waitlist-fields label { min-width: 0; font-size: 11px; font-weight: 700; }
.waitlist-fields label span { font-weight: 400; }
.waitlist-fields input { display: block; width: 100%; min-height: 44px; border: 1px solid #C9BFB0; border-radius: 10px; padding: 10px; font: inherit; font-size: 13px; margin-top: 7px; color: var(--navy); background: white; }
.waitlist input:focus-visible, .waitlist button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.waitlist-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.7; margin: 16px 0; }
.waitlist-consent input { margin: 2px 0 0; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--terra-ink); }
.waitlist button { width: 100%; min-height: 46px; display: flex; justify-content: center; align-items: center; gap: 12px; font: inherit; font-size: 13px; font-weight: 700; background: var(--terra-ink); color: white; padding: 12px; border: 0; border-radius: 12px; cursor: pointer; }
.waitlist button:hover { background: #9E3A20; }
.waitlist button:disabled { opacity: .65; cursor: wait; }
.waitlist .waitlist-privacy { font-size: 10px; margin: 12px 0 0; }
.waitlist-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist #waitlist-status { margin: 12px 0 0; }
#waitlist-status[data-state="error"] { color: #9B1C1C; }
#waitlist-status[data-state="success"] { color: #14532D; }

/* ---------- Motion ---------- */
/* Opening sequence: each block rises in, in reading order (delay set inline as --d). */
.reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.reveal-photo { animation: photo-in 1.4s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes photo-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* Brush stroke drawn under « bientôt. » */
h1 em { position: relative; display: inline-block; }
.brush { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.brush path { fill: none; stroke: var(--terra); stroke-width: 5; stroke-linecap: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.status-dot { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(216, 90, 56, .18); } }

/* Photo: slow film zoom, soft glow behind, gentle tilt with the mouse. */
main { position: relative; }
.glow { position: absolute; z-index: -1; right: 4%; top: 50%; width: 44%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(216, 90, 56, .32), rgba(27, 92, 158, .16) 55%, transparent 70%); filter: blur(40px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-8%, 6%) scale(1.12); } }
.travel-photo { animation: film 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes film { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.visual { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s ease-out; }

/* Travel route drawn over the photo (built by ouverture.js). */
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; transition: opacity .9s ease; }
.route.fading { opacity: 0; }
.route-line { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .9; }
.route-mask { fill: none; stroke: #fff; stroke-width: 8; }
.city-dot { fill: #fff; }
.city-pulse { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.city text { fill: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; paint-order: stroke; stroke: rgba(26, 43, 73, .35); stroke-width: 3px; opacity: 0; transition: opacity .5s ease, transform .5s ease; transform: translateY(4px); }
.city.on text { opacity: 1; transform: none; }
.city.on .city-pulse { animation: pulse 1.8s ease-out infinite; }
.city .city-dot { transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.city.on .city-dot { transform: scale(1); }
@keyframes pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.plane { fill: #fff; filter: drop-shadow(0 2px 3px rgba(26, 43, 73, .45)); }

/* « 16 NOVEMBRE » lands like a passport stamp when the plane arrives. */
.date-stamp { z-index: 2; }
.date-stamp::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sand); opacity: 0; }
.date-stamp.stamped { animation: stamp .75s cubic-bezier(.3, 1.4, .5, 1); }
.date-stamp.stamped::after { animation: ink .9s ease-out; }
@keyframes stamp { 0% { transform: rotate(10deg) scale(1); } 30% { transform: rotate(2deg) scale(1.28); } 60% { transform: rotate(13deg) scale(.9); } 100% { transform: rotate(10deg) scale(1); } }
@keyframes ink { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brush path { stroke-dashoffset: 0; }
  .visual { transform: none; }
}

@media (min-width: 1500px) {
  .waiting-page { padding-left: 70px; padding-right: 70px; }
}

.cta-mobile { display: none; }

/* ---------- Phone & small tablet: photo-first hero, form in a sheet below ---------- */
@media (max-width: 800px) {
  html { scroll-behavior: smooth; }
  .waiting-page { padding: 0; position: relative; overflow-x: clip; }
  .header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: 18px 20px; }
  .brand { color: #fff; }
  .brand img { width: 38px; height: 38px; }
  .brand-wordmark { height: 19px; }
  .header-note { font-size: 11px; color: rgba(255, 255, 255, .9); white-space: nowrap; }
  .glow { display: none; }

  /* The intro's children join main's grid so the headline sits on the photo. */
  main { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(max(280px, calc(100svh - 430px)), auto); align-items: start; gap: 0; padding: 0; }
  .visual, main::after { align-self: stretch; }
  .intro { display: contents; }
  .intro > * { grid-column: 1; position: relative; z-index: 2; margin-left: 20px; margin-right: 20px; }
  .visual { grid-row: 1 / 4; grid-column: 1; z-index: 0; height: auto; min-height: 0; max-height: none; border-radius: 0; transform: none; }
  .photo-shade { background: linear-gradient(180deg, rgba(26, 43, 73, .55) 0, transparent 20%, transparent 38%, rgba(26, 43, 73, .55) 60%, rgba(26, 43, 73, .94) 100%); }
  .postcard-label, .photo-caption { display: none; }
  .date-stamp { top: 84px; right: 18px; height: 74px; width: 74px; }
  .date-stamp strong { font-size: 32px; }

  .eyebrow { grid-row: 2; margin-bottom: 12px; font-size: 9px; letter-spacing: 1.6px; color: #FFD2C2; text-shadow: 0 1px 10px rgba(26, 43, 73, .75); }
  h1 { grid-row: 3; color: #fff; font-size: clamp(32px, 9.2vw, 46px); letter-spacing: -1.4px; margin-bottom: 104px; text-shadow: 0 2px 18px rgba(26, 43, 73, .35); }
  h1 em { color: #F7A584; }

  /* The sheet: page-coloured panel with rounded top that overlaps the photo. */
  main::after { content: ""; grid-row: 4 / span 6; grid-column: 1; z-index: 1; margin-top: -30px; border-radius: 28px 28px 0 0; background: var(--sand-2); box-shadow: 0 -10px 30px rgba(26, 43, 73, .18); }
  .launch-date { grid-row: 4; justify-self: start; margin-top: 2px; }
  .description { grid-row: 5; margin: 18px 20px 0; font-size: 14px; line-height: 1.75; }
  .countdown-note { grid-row: 6; margin-top: 10px; }
  .waitlist { grid-row: 7; margin-top: 22px; scroll-margin-top: 20px; }
  .waitlist-fields { grid-template-columns: 1fr; }
  .promises { grid-row: 8; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; gap: 10px; margin: 24px 0 0; padding: 0 20px 24px; border-top: 0; scrollbar-width: none; }
  .promises::-webkit-scrollbar { display: none; }
  .promises span { flex: 0 0 auto; scroll-snap-align: start; padding: 14px 16px; border-radius: 14px; background: white; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--navy); }
  footer { margin: 0 20px; padding: 20px 0 104px; justify-content: center; text-align: center; }
  footer > span:nth-child(2) { display: none; }

  /* Sticky call to action; hidden once the form is on screen. */
  .cta-mobile { display: flex; position: fixed; z-index: 10; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 52px; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; background: var(--terra-ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(194, 74, 42, .4); transition: transform .35s ease, opacity .35s ease; animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1.4s both; }
  .cta-mobile.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .cta-mobile:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
}

@media (max-width: 380px) {
  .waitlist { padding: 16px; }
  .brand img { width: 34px; height: 34px; }
  .brand-wordmark { height: 17px; }
  .header-note { font-size: 10px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .launch-date { font-size: 12px; padding: 10px 12px; }
}
