/* BookCrew — mini-site statique. Design system app : violet 6E3FE3,
   dark 0A0A0F / cards 141420, texte F0F0F8 / 8888A8. Zéro JS, zéro cookie. */

:root {
  --violet: #6E3FE3;
  --violet-light: #8B5FF0;
  --bg: #0A0A0F;
  --card: #141420;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F0F0F8;
  --text-2: #8888A8;
  --text-3: #55556E;
  --green: #00CEC9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Fond scénique (image Davy 12/07) — FIXE au scroll. Pseudo-élément
   position:fixed plutôt que background-attachment:fixed : ce dernier est
   ignoré/buggy sur iOS Safari (zoom géant). L'image est quasi noire au
   centre → le texte reste lisible sans voile. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* 100lvh = hauteur du GRAND viewport (barre d'adresse rétractée) :
     stable pendant le scroll. inset:0 suivait le viewport DYNAMIQUE
     d'iOS Safari → le cover recalculait à chaque rétraction de la
     barre = effet de zoom au scroll (bug Davy 12/07). */
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: var(--bg) url("/bg-stage.jpg?v=2") center / cover no-repeat;
  /* Lisibilité (Davy 12/07) : l'image laisse transparaître le fond noir
     du body → baisse d'intensité globale sans voile supplémentaire. */
  opacity: 0.4;
}

/* Mobile : cadrer sur le CÔTÉ DROIT de l'image (la partie scénique —
   lustres, salle, régie) au lieu du centre vide. */
@media (max-width: 720px) {
  body::before { background-position: right center; }
}

a { color: var(--violet-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
/* Identité wordmark : BOOK blanc / CREW violet (comme les visuels). */
.brand .brand-crew { font-style: normal; color: var(--violet-light); }

.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* Cadenas d'accès bêta (Davy 12/07) : lien discret vers /dashboard —
   les bêta-testeurs qui connaissent le site accèdent à l'app web. */
.lock-link { font-size: 17px; opacity: 0.65; transition: opacity .15s ease; }
.lock-link:hover { opacity: 1; text-decoration: none; }
.site-header nav a { color: var(--text-2); font-size: 14px; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* ── Landing ───────────────────────────────────────────── */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 56px;
  text-align: center;
}

.hero img.logo { width: 96px; height: 96px; border-radius: 22px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 28px 0 14px;
}

.hero h1 .accent { color: var(--violet-light); }

.hero p.tagline {
  color: var(--text-2);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto;
}

.badge-beta {
  display: inline-block;
  margin-top: 26px;
  padding: 7px 16px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 24px auto 72px;
  padding: 0 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: left;
}

.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ── Boutons & CTA ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  border: 1px solid var(--violet);
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--violet-light); text-decoration: none; }

.btn-block { display: block; width: 100%; text-align: center; cursor: pointer; }
.btn-block:disabled { opacity: 0.6; cursor: default; }

.nav-cta {
  padding: 6px 14px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  color: var(--violet-light) !important;
}
.nav-cta:hover { background: var(--violet); color: #fff !important; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-actions .badge-beta { margin-top: 0; }

/* ── Landing : histoire SAUVÉ. ─────────────────────────── */

.story {
  max-width: 620px;
  margin: 0 auto 56px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.story-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  color: var(--text-2);
  font-size: 15px;
}

.story-time {
  flex-shrink: 0;
  width: 58px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.story-stamp {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--violet-light);
}

/* ── Landing : piliers & audiences ─────────────────────── */

.features-4 { max-width: 980px; }

.feature-tag {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--violet-light);
  margin-bottom: 6px;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.audience {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}
.audience h3 { margin: 0 0 8px; font-size: 16px; }
.audience p { margin: 0; color: var(--text-2); font-size: 14px; }

.cta-final {
  max-width: 620px;
  margin: 0 auto 88px;
  padding: 0 24px;
  text-align: center;
}
.cta-final h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; }
.cta-final p { color: var(--text-2); margin: 0 0 22px; }

/* ── Page /beta ────────────────────────────────────────── */

.hero-compact { padding-top: 48px; padding-bottom: 28px; }
.hero-compact .badge-beta { margin: 0 0 20px; }

/* Wordmark inline dans le h1 : icône BC + BOOK blanc / CREW violet
   (même identité que les visuels stores). */
.wordmark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  vertical-align: -0.08em;
}
.wordmark img {
  width: 0.92em;
  height: 0.92em;
  border-radius: 0.2em;
  /* espace icône↔texte UNIQUEMENT (un gap flex en mettrait aussi
     entre BOOK et CREW, qui sont des items anonymes distincts). */
  margin-right: 0.22em;
}
.wordmark em { font-style: normal; color: var(--violet-light); }

/* Ruban continu d'aperçus app (visuels stores) : défilement lent et
   ininterrompu. La piste porte les visuels EN DOUBLE dans le HTML —
   translateX(-50%) ≡ un tour complet, la boucle est invisible.
   Largeur de piste = contenu (max-content) : l'animation en % est donc
   exacte quel que soit l'écran. Pause au survol. */
.marquee {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px 0 14px;
  animation: marquee-scroll 55s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  flex-shrink: 0;
  width: min(56vw, 232px);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(110, 63, 227, 0.18);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* -50% du ruban − la moitié du gap entre les deux copies. */
  to { transform: translateX(calc(-50% - 9px)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

.form-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}

.beta-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.perk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
}
.perk strong { display: block; margin-bottom: 4px; font-size: 14px; }
.perk span { color: var(--text-2); }

.beta-form-wrap {
  max-width: 480px;
  margin: 0 auto 88px;
  padding: 0 24px;
}

.beta-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
}

.form-label {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.beta-form .form-label:first-child { margin-top: 0; }

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.role-toggle label {
  text-align: center;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.12s ease;
}

.role-toggle input:checked + label {
  border-color: var(--violet);
  background: rgba(110, 63, 227, 0.16);
  color: var(--text);
}

.field { display: block; margin-top: 16px; }
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--violet); }
.field input::placeholder { color: var(--text-3); }

.beta-form .btn-block { margin-top: 24px; border: none; font-family: inherit; }

.field-hint { margin: 12px 0 0; font-size: 12px; color: var(--text-3); }

.form-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #FF7675;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.beta-success {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
}
.beta-success h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; color: var(--green); }
.beta-success p { color: var(--text-2); font-size: 15px; }

/* ── Pages juridiques ──────────────────────────────────── */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.doc h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.doc h2 {
  font-size: 22px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.doc h3 { font-size: 17px; margin-top: 28px; }
.doc h4 { font-size: 15px; margin-top: 22px; color: var(--text); }

.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc strong { color: var(--text); }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0;
  display: block;
  overflow-x: auto;
}

.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
}

.doc th { background: var(--card); color: var(--text); }

.doc blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: var(--card);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
}
.doc blockquote p { margin: 0; }

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

.site-footer p { margin: 6px 0; }
.site-footer .muted { color: var(--text-3); }
