/* ============================================================
 * 10-page-waitlist.css — Waitlist page
 * ------------------------------------------------------------
 * Source: V14 waitlist.html inline <style>, with shared rules
 * (brand-mark, topbar, menu, vignette, canvases, site-footer,
 *  global keyframes) removed — they live in 00-base.css.
 *
 * Scope:
 *   - main.wait               single-viewport stage
 *   - .wait-card              form card (gets hidden on submit)
 *   - .wait-head / .wait-eyebrow / .wait-title / .wait-lede
 *   - .wait-form / .field-row / .field
 *   - .picker-row / .picker-label / .picker-select
 *   - .wait-submit-row / .wait-fineprint
 *   - .thanks-stage           shown after successful submit
 *   - .thanks-sub / .thanks-actions
 *
 * The CSS .cta button base lives in 00-base.css; here we only
 * tweak page-local typography around it (no override).
 * ============================================================ */

/* ─────────────────────────────────────────────────────────────
   ERROR — message d'échec d'envoi (masqué par défaut via [hidden])
   ───────────────────────────────────────────────────────────── */
.wait-error {
  margin: 0.85rem 0 0;
  color: #c0563f;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   CONSENT — case de consentement email (RGPD)
   ───────────────────────────────────────────────────────────── */
.wait-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.3rem 0 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.wait-consent input[type="checkbox"] {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}
.wait-consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ─────────────────────────────────────────────────────────────
   STAGE — fills the viewport, never scrolls
   ───────────────────────────────────────────────────────────── */
main.wait {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12vh 5vw 8vh;
}

.wait-card {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 2.6vh;
  animation: fadeIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
.wait-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  text-align: center;
}

.wait-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(9.5px, 0.68vw, 12px);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.85);
}

.wait-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(21px, 2vw, 33px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  animation: neonBreathSoft 6s ease-in-out infinite;
}

.wait-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13.5px, 0.96vw, 16px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,248,235,0.78);
  text-align: center;
  margin-top: 1.4vh;
  max-width: 32em;
  text-wrap: balance;
}

/* ─────────────────────────────────────────────────────────────
   FORM
   ───────────────────────────────────────────────────────────── */
.wait-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.4vh;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vw;
}
/* Variante pleine largeur (email seul sur sa ligne) */
.field-row-full { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 1.4vh; }
}

.field {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 1.03vw, 16.5px);
  font-weight: 300;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,240,220,0.28);
  padding: 0.65em 0.2em;
  transition: border-color 0.2s ease;
}
.field:focus { outline: none; border-bottom-color: rgba(255,240,220,0.85); }
.field::placeholder {
  color: rgba(255,240,220,0.40);
  letter-spacing: 0.04em;
}

/* Inline picker — label + select on one line */
.picker-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1em;
  border-bottom: 1px solid rgba(255,240,220,0.28);
  padding: 0.4em 0;
  transition: border-color 0.2s ease;
}
.picker-row:focus-within { border-bottom-color: rgba(255,240,220,0.85); }

.picker-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(9.5px, 0.68vw, 12px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.85);
}

.picker-select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 1.03vw, 16.5px);
  font-weight: 300;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0.55em 1.4em 0.55em 0;
  cursor: pointer;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%23E0C7AF' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
}
.picker-select:focus { outline: none; }
.picker-select option { color: #1a0a04; background: #f5e7d6; }
.picker-select optgroup { color: #1a0a04; background: #f5e7d6; font-style: normal; font-weight: 500; }

/* Submit row */
.wait-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  margin-top: 0.6vh;
}

.wait-fineprint {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,248,235,0.50);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   THANK-YOU STAGE — shown after submit (display toggled by JS class)
   ───────────────────────────────────────────────────────────── */
.thanks-stage {
  width: 100%;
  max-width: 540px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  text-align: center;
  animation: fadeIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.thanks-stage.is-visible { display: flex; }

.thanks-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 1.05vw, 16.5px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,248,235,0.78);
  max-width: 28em;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
  margin-top: 0.6vh;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-height: 700px) {
  main.wait { padding: 10vh 5vw 6vh; }
  .wait-card { gap: 2.4vh; }
}

@media (max-width: 640px) {
  main.wait { padding: 9vh 6vw 6vh; }
  .wait-title { font-size: clamp(16px, 5vw, 22px); }
  .field { font-size: clamp(12px, 3.2vw, 14px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  main.wait { padding: 10vh 5vw 4vh; }
  .wait-card { gap: 1.5vh; }
  .wait-head { gap: 0.5vh; }
  .wait-title { font-size: clamp(14px, 2vw, 20px); }
  .wait-lede { font-size: clamp(10px, 1.3vw, 14px); margin-top: 0.5vh; }
  .wait-form { gap: 1.5vh; }
}
