/* Escape Game Generator · landing. Même direction artistique que l'app et la console :
   Geist, surfaces blanc lavande, encre noire, violet de marque #6C47FF, cartes sans bordure, pastilles rondes. */
:root {
  --bg: #fbf8ff; --bg2: #f1eefa; --card: #ffffff; --line: #e4e4e7;
  --text: #1a1b22; --muted: #6b6a72; --brand: #6c47ff; --brand-soft: #ece7ff; --ink: #0b0d12;
  --radius: 16px; --shadow: 0 20px 60px rgba(40, 20, 120, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111117; --bg2: #18181f; --card: #1b1b22; --line: #2a2a33; --text: #ececf2; --muted: #9a98a4; --brand-soft: #251d4a; --shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(108, 71, 255, .35); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 96px); max-width: 1240px; margin: 0 auto; }
.hero-copy { display: grid; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); animation: pulse 1.8s infinite; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.store { position: relative; display: inline-block; filter: grayscale(1); opacity: .45; }
.store img { height: 54px; width: auto; }
.store.small img { height: 44px; }
.store .soon { position: absolute; top: -8px; right: -8px; padding: 3px 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .04em; filter: none; }
.proof { display: flex; gap: 28px; padding: 0; margin: 8px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.proof strong { display: block; color: var(--text); font-size: 22px; font-weight: 650; }

/* aperçu : console + téléphone + fusion */
.hero-visual { position: relative; height: clamp(480px, 52vw, 620px); }
.console { position: absolute; left: 0; top: 6%; width: 74%; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.console-bar span { margin-left: 8px; }
.console-body { display: grid; gap: 8px; padding: 16px 16px 20px; font-size: 12px; }
.step { color: var(--muted); font-weight: 500; }
.seg, .players, .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { background: var(--bg2); padding: 3px; border-radius: 10px; }
.seg b, .players b, .chips b { font-weight: 500; }
.seg b { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; color: var(--muted); }
.seg b.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.players b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); }
.players b:first-child { width: auto; padding: 0 12px; border-radius: 999px; }
.players b.on, .chips b.on { background: var(--brand); color: #fff; }
.chips b { padding: 6px 11px; border-radius: 999px; background: var(--bg2); }
.typing { margin-top: 6px; display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 600; }
.typing em { flex: 1; height: 6px; border-radius: 3px; background: var(--brand-soft); position: relative; overflow: hidden; }
.typing em::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--brand); border-radius: 3px; animation: load 2.4s ease-in-out infinite; }

.phone { position: absolute; right: 2%; top: 0; width: clamp(220px, 23vw, 290px); aspect-ratio: 9 / 19; border-radius: 38px; padding: 9px; background: var(--ink); box-shadow: 0 30px 80px rgba(40, 20, 120, .35); transform: rotate(4deg); animation: float 6s ease-in-out infinite reverse; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.screen .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
.screen .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 45%, rgba(0,0,0,.88) 100%); }
.topbar { position: absolute; top: 16px; left: 12px; }
.gem { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 5px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 11px; font-weight: 600; }
.gem img { width: 16px; height: 16px; }
.card { position: absolute; left: 14px; right: 14px; bottom: 16px; color: #fff; display: grid; gap: 6px; }
.card h3 { font-size: 20px; line-height: 1.1; }
.card p { font-size: 12px; opacity: .85; }
.card .meta { font-size: 11px; opacity: .7; }
.card .play { margin-top: 6px; height: 36px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 13px; }

.merge { position: absolute; left: 8%; bottom: 4%; width: 220px; height: 96px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.merge img { position: absolute; top: 14px; width: 68px; height: 68px; border-radius: 12px; object-fit: cover; }
.m-a { left: 14px; animation: mergeA 4s ease-in-out infinite; }
.m-b { right: 14px; animation: mergeB 4s ease-in-out infinite; }
.m-r { left: 76px; opacity: 0; animation: mergeR 4s ease-in-out infinite; }
.m-label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0; animation: mergeR 4s ease-in-out infinite; }
.toast { position: absolute; left: 50%; top: 58%; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; color: var(--brand); animation: rise 4s ease-in-out infinite; }
.toast img { width: 20px; height: 20px; }

/* sections */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); display: grid; gap: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.steps p, .feature p { color: var(--muted); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature.wide { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 28px; padding: 0; overflow: hidden; }
.feature.wide img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.feature.wide > div { padding: 28px; display: grid; gap: 10px; }
.icon svg { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-merge { display: flex; align-items: center; gap: 8px; }
.mini-merge img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.mini-merge b { color: var(--muted); }
.creators { grid-template-columns: 1fr 1fr; align-items: center; }
.creators > div:first-child { display: grid; gap: 18px; justify-items: start; }
.covers { position: relative; height: 380px; }
.covers img { position: absolute; width: 56%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.covers img:first-child { left: 4%; top: 6%; transform: rotate(-6deg); }
.covers img:last-child { right: 4%; top: 0; transform: rotate(5deg); }

/* inscription */
.signup { justify-items: center; }
.signup-card { width: min(520px, 100%); background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: center; text-align: center; }
form { width: 100%; display: grid; gap: 12px; margin-top: 8px; text-align: left; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
form .btn { width: 100%; margin-top: 4px; }
.form-msg { min-height: 20px; font-size: 14px; text-align: center; }
.form-msg.ok { color: #009674; } .form-msg.err { color: #d93025; }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 28px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer span:first-child { display: flex; align-items: center; gap: 8px; }

/* animations */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes mergeA { 0%, 20% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(62px); opacity: 0; } 85% { transform: translateX(0); opacity: 0; } 100% { opacity: 1; } }
@keyframes mergeB { 0%, 20% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(-62px); opacity: 0; } 85% { transform: translateX(0); opacity: 0; } 100% { opacity: 1; } }
@keyframes mergeR { 0%, 40% { opacity: 0; transform: scale(.4); } 52% { opacity: 1; transform: scale(1.15); } 60%, 80% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; } }
@keyframes rise { 0%, 45% { opacity: 0; transform: translateY(10px); } 55%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .m-r, .m-label, .toast { opacity: 1; } .m-a, .m-b { opacity: 0; } }

/* mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 560px; }
  .console { width: 86%; top: 4%; }
  .phone { width: 230px; right: 0; top: 70px; }
  .merge { left: 0; bottom: 2%; }
  .toast { left: 30%; top: 62%; }
  .steps, .features, .creators { grid-template-columns: 1fr; }
  .feature.wide { grid-template-columns: 1fr; }
  .covers { height: 320px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .proof { gap: 18px; }
  .hero-visual { height: 520px; }
  .phone { width: 200px; }
}

/* page d'un lien partagé (/s/<id>) */
.share { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 24px 16px 48px; }
.share-card { width: min(440px, 100%); border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.share-cover { position: relative; aspect-ratio: 4 / 5; background: #000; }
.share-cover img { width: 100%; height: 100%; object-fit: cover; }
.share-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.88)); }
.share-text { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; display: grid; gap: 6px; }
.share-text h1 { font-size: 28px; }
.share-text p { opacity: .88; }
.share-actions { display: grid; gap: 10px; padding: 20px; justify-items: stretch; }
.share-actions .store { justify-self: center; margin-top: 6px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Escape game en ligne, questions fréquentes */
.about .lead { max-width: 46em; }
.faq h2 { margin-bottom: 18px; }
.faq details { max-width: 860px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Consentements du formulaire */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: left; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check a { color: var(--brand); }

/* Pages simples : confirmation, textes légaux */
.page { max-width: 760px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 32px) 80px; }
.page h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page h3 { font-size: 17px; margin: 22px 0 6px; }
.page p, .page li { color: var(--muted); line-height: 1.65; }
.page a:not(.btn) { color: var(--brand); }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.page th { color: var(--text); font-weight: 600; }
.page .updated { font-size: 14px; }
.page .todo { background: #fff3cd; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
.thanks { text-align: center; }
.thanks .emblem { width: 72px; height: 72px; margin: 8px auto 20px; display: block; }
.thanks .lead { margin: 0 auto 14px; }
.thanks .cta-row { justify-content: center; margin-top: 28px; }
