/* Cachotte — page d'avant-sortie (ticket 028). Designer.
   Valeurs issues de design/tokens/theme.ts (v2 « paquet surprise ») ; recopiées ici pour que la page
   n'ait aucune dépendance. Police système, aucune ressource tierce. Mobile d'abord. */
:root {
  --bg: #F5F4FA; --surface: #FFFFFF; --sunken: #EEEDF5; --border: #E6E4EF; --border-strong: #8E8AA3;
  --text: #16141F; --text-2: #55526A; --text-3: #666379;
  --primary: #D81E4F; --primary-press: #B8143F; --on-primary: #FFFFFF; --primary-soft: #FFE4EB; --primary-fg: #A3123A;
  --secret: #4A35C8; --secret-soft: #ECE8FF; --secret-fg: #3A27A8;
  --gold-soft: #FFEBD1; --gold-fg: #9A4D00; --ok: #07774F; --danger: #D12A1E; --focus: #5B3FD6;
  --grad: linear-gradient(180deg, #FFD3DF 0%, #FBEAFF 520px, #F5F4FA 1100px);
  --hero-secret: linear-gradient(160deg, #7B5CFF 0%, #4A35C8 50%, #2A1F7A 100%);
  --shadow: 0 6px 18px rgba(27, 22, 64, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E17; --surface: #1B1A26; --sunken: #0A0910; --border: #2E2C3D; --border-strong: #77748C;
    --text: #F4F3FA; --text-2: #BDBAD0; --text-3: #9A97AE;
    --primary: #FF6B8E; --primary-press: #FF8AA5; --on-primary: #2A0011; --primary-soft: #3D1222; --primary-fg: #FFB3C5;
    --secret-soft: #241D4A; --secret-fg: #D3CBFF; --gold-soft: #3A2410; --gold-fg: #FFC27A; --ok: #5FE0AE; --danger: #FF7B6E; --focus: #A795FF;
    --grad: linear-gradient(180deg, #3A1024 0%, #1C1224 520px, #0F0E17 1100px);
    --shadow: 0 0 0 1px #2E2C3D;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg) var(--grad) no-repeat; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; } /* height:auto : les attributs width/height réservent la place sans déformer l'image */
a { color: var(--primary); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.top { display: flex; align-items: center; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.4px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 9px; }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 16px; padding-bottom: 56px; }
.pill { display: inline-block; background: var(--surface); color: var(--secret-fg); font-size: 14px; font-weight: 700; border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); }
h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.06; letter-spacing: -1.4px; font-weight: 800; margin: 18px 0 0; }
h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 19px; color: var(--text-2); margin: 16px 0 0; max-width: 34em; }
.signup { margin-top: 28px; max-width: 480px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form input[type=email] { height: 56px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; padding: 0 18px; }
.form input[type=email]::placeholder { color: var(--text-3); }
.form input[type=email]:focus { outline: none; border: 2px solid var(--focus); }
.form button, .btn { height: 56px; border: 0; border-radius: 18px; background: var(--primary); color: var(--on-primary); font: inherit; font-size: 18px; font-weight: 700; padding: 0 24px; cursor: pointer; box-shadow: 0 6px 14px rgba(216, 30, 79, .30); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.form button:active, .btn:active { transform: scale(.98); background: var(--primary-press); }
.form button:disabled { opacity: .6; }
@media (prefers-color-scheme: dark) { .form button, .btn { box-shadow: none; } }
.msg:empty { display: none; }
.msg { margin: 12px 0 0; font-weight: 600; border-radius: 14px; padding: 12px 14px; }
.msg.ok, .msg.dup { background: var(--secret-soft); color: var(--secret-fg); font-size: 18px; }
.msg.bad, .msg.err { color: var(--danger); padding: 0; }
.fine { font-size: 14px; color: var(--text-3); margin: 10px 0 0; }
.signup.done .fine { display: none; }

/* Visuel : deux écrans + sceau */
.hero-art { position: relative; height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
.phone { position: absolute; width: 210px; height: auto; border-radius: 30px; box-shadow: 0 0 0 7px #16141F, 0 24px 50px rgba(27, 22, 64, .25); }
.p1 { left: 8%; top: 20px; transform: rotate(-6deg); }
.p2 { right: 4%; top: 0; transform: rotate(5deg); }
.seal { position: absolute; left: 50%; bottom: 0; width: 96px; height: 96px; margin-left: -48px; border-radius: 32px; background: var(--hero-secret); display: grid; place-items: center; transform: rotate(-8deg); box-shadow: 0 14px 30px rgba(74, 53, 200, .4); overflow: hidden; }
.seal .rv { position: absolute; top: 0; bottom: 0; left: 50%; width: 12px; margin-left: -6px; background: linear-gradient(90deg, #FFA62B, #FFD27A, #FF9A1F); }
.seal .rh { position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; background: linear-gradient(180deg, #FFA62B, #FFD27A, #FF9A1F); }
.seal .lk { position: relative; width: 42px; height: 42px; border-radius: 13px; background: #fff; display: grid; place-items: center; }
.seal svg, .tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal svg { color: #4A35C8; }

/* Promesses */
.promises { display: grid; gap: 16px; padding-bottom: 64px; }
.card { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.card h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.3px; font-weight: 800; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--text-2); }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; }
.t-secret { background: var(--secret); color: #fff; }
.t-violet { background: var(--secret-soft); color: var(--secret-fg); }
.t-gold { background: var(--gold-soft); color: var(--gold-fg); }

/* Comment ça marche */
.section-title { font-size: 30px; line-height: 1.15; letter-spacing: -.6px; font-weight: 800; margin: 0 0 20px; }
.how { display: grid; gap: 28px; padding-bottom: 64px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.steps .n { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary-fg); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps h3 { margin: 0; font-size: 19px; font-weight: 800; }
.steps p { margin: 2px 0 0; color: var(--text-2); }
.web-shot { width: 240px; margin: 0 auto; border-radius: 32px; box-shadow: 0 0 0 7px #16141F, 0 24px 50px rgba(27, 22, 64, .22); }

/* Et aussi */
.also { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 64px; }
.also span { background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 16px; box-shadow: var(--shadow); }
.also span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* FAQ */
.faq { padding-bottom: 48px; }
.faq details { max-width: 760px; }
details { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 10px; }
summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 18px; position: relative; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--primary); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* Appel final et pied */
.cta { padding-bottom: 64px; text-align: center; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-3); }
.foot a { color: var(--text-2); font-weight: 500; }

/* Grands écrans */
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 40px; padding-bottom: 88px; }
  .hero-art { height: 560px; }
  .phone { width: 250px; }
  .form { flex-direction: row; }
  .form input[type=email] { flex: 1; min-width: 0; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 1fr 300px; column-gap: 48px; }
  .how .section-title { grid-column: 1 / -1; margin-bottom: 0; }
  .web-shot { width: 280px; }
}
