/* Pass2P2 — page d'accueil publique (bienvenue.html).
 * Charte des e-mails (tools/auth_emails.py, cloud/functions/_lib/mail.js) : bandeau bleu nuit #0b1026, repères étoilés or
 * #ffd36b, page blanche et gris pâles. Page toujours claire (<html data-theme="light">), comme les e-mails.
 * Polices auto-hébergées seulement (css/fonts.css). Aucune image de /img (non publique) : l'aperçu est en HTML/CSS. */

.lp {
  --n: #0b1026;
  --n-2: #19224d;
  --gold: #ffd36b;
  --gold-2: #ffe08f;
  --on-n: #f1f3ff;
  --on-n-2: #bcc4ea;
  --on-n-3: #939dcc;
  --c-ink: #151a3d;
  --c-text: #3b4166;
  --c-muted: #5d6488;
  --c-line: #e1e5f0;
  --c-band: #f4f6fb;
  --c-tint: #eef1f8;
  --c-accent: #4338ca;
  --wrap: 72rem;
  --pad: 1.25rem;

  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
html:has(> body.lp) { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  html:has(> body.lp) { scroll-behavior: smooth; }
}
.lp ::selection { background: #dfe3ff; color: var(--c-ink); }

.lp-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px));
}

.lp-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--n);
  font-weight: 600;
  text-decoration: none;
}
.lp-skip:focus { top: 1rem; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn.is-lg { min-height: 3.25rem; padding: 0 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.lp-btn.is-sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.92rem; }
.lp-btn.is-gold { background: var(--gold); color: var(--n); box-shadow: 0 10px 28px -12px rgba(255, 211, 107, 0.55); }
.lp-btn.is-gold:hover { background: var(--gold-2); }
.lp-btn.is-line { border-color: rgba(255, 255, 255, 0.3); color: var(--on-n); background: transparent; }
.lp-btn.is-line:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.lp-btn.is-dark { background: var(--n); color: #fff; }
.lp-btn.is-dark:hover { background: var(--n-2); }

.lp a:focus-visible,
.lp summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.lp-night a:focus-visible { outline-color: var(--gold); }
.lp .lp-btn:focus-visible { border-radius: 12px; }

/* ── Bandeau de nuit (haut et bas de page) ───────────────────────────────── */
.lp-night {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-n);
  background: radial-gradient(60% 70% at 82% 0%, #1a2454 0%, rgba(26, 36, 84, 0) 70%), var(--n);
}
.lp-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-stars svg { position: absolute; color: var(--gold); }
.lp-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #5d68a8; }
.lp-stars .s1 { width: 12px; height: 12px; top: 18%; left: 46%; }
.lp-stars .s2 { width: 8px; height: 8px; top: 64%; left: 4%; color: #8e98c8; }
.lp-stars .s3 { width: 9px; height: 9px; top: 11%; right: 6%; color: #8e98c8; }
.lp-stars .s4 { width: 7px; height: 7px; bottom: 9%; left: 40%; }
.lp-stars .s5 { width: 10px; height: 10px; top: 42%; right: 3%; }
.lp-stars .d1 { top: 30%; left: 12%; }
.lp-stars .d2 { top: 8%; left: 70%; }
.lp-stars .d3 { bottom: 22%; left: 52%; }
.lp-night--end .s1 { top: 16%; left: 9%; }
.lp-night--end .d1 { top: 70%; left: 20%; }
@media (max-width: 959px) {
  .lp-night--top .s1 { top: 4.9rem; left: 62%; width: 9px; height: 9px; } /* au-dessus du titre, jamais dessus */
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1.1rem;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-n);
  font: 700 1.2rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.lp-brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.lp-brand.is-ink { color: var(--c-ink); }
.lp-brand.is-ink img { width: 28px; height: 28px; border-radius: 7px; }
.lp-nav__links { display: flex; align-items: center; gap: 0.35rem; }
.lp-nav__link {
  display: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--on-n-2);
  font-size: 0.95rem;
  text-decoration: none;
}
.lp-nav__link:hover { color: var(--on-n); }
@media (min-width: 640px) { .lp-nav__link { display: inline-block; } .lp-nav__links { gap: 0.6rem; } }

.lp-notice {
  width: calc(100% - 2 * var(--pad));
  max-width: var(--wrap);
  margin: 0.5rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: #dcfce7;
  color: #14532d;
  font-weight: 600;
  line-height: 1.45;
}
.lp-notice[hidden] { display: none; }

/* ── Héros ───────────────────────────────────────────────────────────────── */
.lp-hero { display: grid; padding-top: 2.25rem; }
.lp-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.lp-eyebrow.is-gold { color: var(--gold); }
.lp-hero h1 {
  margin: 0;
  max-width: 15ch;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lp-hl { color: var(--gold); }
.lp-lead { margin: 1.25rem 0 0; max-width: 35rem; color: var(--on-n-2); font-size: 1.075rem; line-height: 1.65; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.lp-cta.is-center { justify-content: center; }
@media (max-width: 479px) {
  .lp-cta .lp-btn { flex: 1 1 100%; }
}
.lp-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-n-2);
  font-size: 0.9rem;
}
.lp-checks li { display: inline-flex; align-items: center; gap: 0.55rem; }
.lp-checks li::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.35rem;
  margin-top: -0.2rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Visuel : téléphone (QCM corrigé) + extrait de fiche. Sur téléphone et tablette, le téléphone sort du bas du bandeau. */
.lp-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: 26rem;
  margin-top: 3rem;
  overflow: hidden;
}
@media (min-width: 960px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    column-gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
  .lp-hero__visual { height: auto; margin-top: 0; overflow: visible; justify-content: flex-end; }
  .lp-lead { font-size: 1.15rem; }
}

.lp-phone {
  flex: none;
  width: 19rem;
  margin: 0;
  padding: 9px;
  border-radius: 2.6rem;
  background: #1d2550;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -24px rgba(0, 0, 0, 0.7);
}
.lp-phone__screen {
  position: relative;
  padding: 2.35rem 0.85rem 1rem;
  border-radius: 2.05rem;
  background: #f4f5fa;
  color: #3d4260;
  font-size: 12px;
  line-height: 1.4;
}
.lp-phone__notch {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  width: 5.5rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #0b1026;
  transform: translateX(-50%);
}
.lp-app__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 10.5px; color: #5e6480; }
.lp-app__ctx { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-app__count { font-family: var(--font-mono); font-weight: 500; flex: none; }
.lp-app__strip { display: flex; gap: 2px; margin-top: 0.45rem; }
.lp-app__strip i { flex: 1; height: 4px; border-radius: 2px; background: #dcdfeb; }
.lp-app__strip i.ok { background: #15803d; }
.lp-app__strip i.bad { background: #b91c1c; }
.lp-app__strip i.cur { background: #4338ca; }
.lp-app__stem { margin: 0.85rem 0 0.7rem; color: #161a2e; font-size: 12.5px; font-weight: 600; line-height: 1.42; }
.lp-opts { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.lp-opts li {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #dcdfeb;
  border-radius: 10px;
  background: #fff;
  font-size: 11.25px;
  line-height: 1.38;
}
.lp-opts b {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #eef0f7;
  color: #3d4260;
  font-size: 10.5px;
  font-weight: 600;
}
.lp-opts span { padding-top: 0.08rem; }
.lp-opts em { display: block; margin-top: 0.3rem; color: #5e6480; font-style: normal; font-size: 10.5px; }
.lp-opts .is-ok { border-color: #15803d; background: #ecf9f0; }
.lp-opts .is-ok b { background: #15803d; color: #fff; }
.lp-opts .is-bad { border-color: #b91c1c; background: #fdeeee; }
.lp-opts .is-bad b { background: #b91c1c; color: #fff; }
.lp-opts .is-neutral { opacity: 0.72; }
.lp-app__verdict {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #f5d58a;
  border-radius: 10px;
  background: #fef3c7;
  color: #6f4210;
  font-size: 10.75px;
}
.lp-app__verdict strong { color: #7c3d0a; font-size: 12px; }
.lp-app__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; font-size: 10.5px; color: #5e6480; }
.lp-app__foot span:first-child { text-decoration: underline; text-underline-offset: 2px; }
.lp-app__next { padding: 0.45rem 1.1rem; border-radius: 9px; background: #4338ca; color: #fff; font-size: 12px; font-weight: 600; }

.lp-fiche { display: none; }
@media (min-width: 1100px) {
  .lp-phone { width: 19.5rem; margin-right: 0.5rem; }
  .lp-fiche {
    display: block;
    position: absolute;
    left: -1rem;
    bottom: 4.75rem;
    z-index: 1;
    width: 15.5rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    background: #fff;
    color: var(--c-text);
    font-size: 11.5px;
    line-height: 1.45;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(11, 16, 38, 0.06);
  }
}
.lp-fiche__kicker { margin: 0; color: var(--c-accent); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-fiche__title { margin: 0.3rem 0 0.5rem; color: var(--c-ink); font: 700 15px/1.2 var(--font-display); letter-spacing: -0.01em; }
.lp-fiche ul { margin: 0; padding-left: 1rem; }
.lp-fiche li { margin: 0.2rem 0; }
.lp-fiche li::marker { color: var(--c-accent); }
.lp-fiche b { color: var(--c-ink); font-weight: 600; }
.lp-fiche table { width: 100%; margin: 0.6rem 0 0; border-collapse: collapse; font-size: 10.5px; }
.lp-fiche td { padding: 0.25rem 0; border-top: 1px solid var(--c-line); }
.lp-fiche td + td { text-align: right; font-family: var(--font-mono); color: var(--c-ink); }
.lp-fiche__trap { margin: 0.6rem 0 0; padding: 0.45rem 0.55rem; border-radius: 8px; background: #fff3e6; color: #6b3410; font-size: 10.75px; }
.lp-fiche__trap b { display: block; color: #b4400c; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Sections claires ────────────────────────────────────────────────────── */
.lp-section { padding-block: 4rem; }
.lp-band { padding-block: 4rem; background: var(--c-band); border-block: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .lp-section, .lp-band { padding-block: 5.5rem; }
}
.lp-section[id], .lp-band[id] { scroll-margin-top: 1rem; }
.lp-head { max-width: 42rem; margin-bottom: 2.5rem; }
.lp-head h2,
.lp-end h2 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lp-sub { margin: 0.85rem 0 0; color: var(--c-muted); font-size: 1.05rem; line-height: 1.6; }
.lp-sub a, .lp-faq a { color: var(--c-accent); text-underline-offset: 2px; }

/* En chiffres */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-line);
}
.lp-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: #fff;
}
.lp-stats dd {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.lp-stats dd span { color: var(--c-accent); }
.lp-stats dt { color: var(--c-muted); font-size: 0.9rem; line-height: 1.45; }
@media (min-width: 768px) {
  .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-stats > div { padding: 1.75rem 1.6rem 1.8rem; }
  .lp-stats dt { font-size: 0.95rem; }
}
.lp-subjects { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.lp-subjects li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font-size: 0.875rem;
}

/* Comment ça marche */
.lp-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.lp-steps li { padding: 1.5rem 1.4rem 1.6rem; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; }
.lp-steps__n {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--n);
  color: var(--gold);
  font: 700 1rem/1 var(--font-display);
}
.lp-steps h3 { margin: 1rem 0 0.4rem; color: var(--c-ink); font: 700 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.lp-steps p { margin: 0; line-height: 1.6; }
@media (min-width: 900px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* Fonctionnalités */
.lp-feats { display: grid; gap: 2.25rem 2rem; }
@media (min-width: 640px) { .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem 2.25rem; } }
.lp-ico {
  display: block;
  box-sizing: border-box;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--c-tint);
  color: var(--n);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-ico .fill { fill: currentColor; }
.lp-feat h3 { margin: 1rem 0 0.4rem; color: var(--c-ink); font: 700 1.08rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.lp-feat p { margin: 0; font-size: 0.97rem; line-height: 1.6; }

/* Discord + indépendance */
.lp-duo { display: grid; gap: 1.25rem; }
.lp-section.lp-duo { padding-top: 0; } /* suit la grille des fonctionnalités : pas de double marge */
@media (min-width: 768px) { .lp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem 1.6rem; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; }
.lp-card.is-discord { background: var(--c-band); }
.lp-card h2 { margin: 1.1rem 0 0.5rem; color: var(--c-ink); font: 700 1.35rem/1.25 var(--font-display); letter-spacing: -0.02em; }
.lp-card p { margin: 0; line-height: 1.6; }
.lp-card .lp-btn { margin-top: 1.4rem; }
.lp-card.is-discord .lp-ico { background: #fff; }

/* FAQ */
@media (min-width: 960px) {
  .lp-faqwrap { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .lp-faqwrap .lp-head { margin-bottom: 0; position: sticky; top: 2rem; }
}
.lp-faqs { border-top: 1px solid var(--c-line); }
.lp-faq { border-bottom: 1px solid var(--c-line); }
.lp-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.1rem;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-muted);
  font: 400 1.15rem/1 var(--font);
  transition: transform 0.16s ease;
}
.lp-faq[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:hover { color: var(--c-accent); }
.lp-faq p { margin: -0.2rem 0 1.25rem; max-width: 46rem; padding-right: 2.5rem; line-height: 1.65; }

/* ── Bas de page : rappel de l'inscription ───────────────────────────────── */
.lp-night--end { padding-block: 4.5rem; }
@media (min-width: 768px) { .lp-night--end { padding-block: 6rem; } }
.lp-end { text-align: center; }
.lp-end h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.lp-end > p { margin: 0.9rem auto 0; max-width: 32rem; color: var(--on-n-2); font-size: 1.075rem; }
.lp-end .lp-cta { margin-top: 1.9rem; }
.lp-end .lp-end__note { margin-top: 1.1rem; color: var(--on-n-3); font-size: 0.9rem; }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.lp-foot { padding: 3.25rem 0 max(1.75rem, env(safe-area-inset-bottom, 0px)); background: #fff; font-size: 0.93rem; }
.lp-foot__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .lp-foot__grid { grid-template-columns: 2fr 1fr 1fr; } }
.lp-foot__brand p { margin: 0.8rem 0 0; max-width: 22rem; color: var(--c-muted); line-height: 1.55; }
.lp-foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.lp-foot__h { margin: 0 0 0.2rem; color: var(--c-muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.lp-foot__col a { color: var(--c-text); text-decoration: none; }
.lp-foot__col a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.lp-foot__copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-faq summary::after { transition: none; }
}
