/* Learnya — landing. Identité de marque réelle : orange WorkStreams (#f3a752/#c97a23),
   Space Grotesk (display) + Inter (texte), logo « chip Ly ». Croix rouge = clin d'œil souveraineté. */

@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/SpaceGrotesk.woff2") format("woff2");
}

/* ── Tokens (clair par défaut) ──────────────────────────────────────────────── */
:root {
  --paper: #ffffff;
  --surface: #faf8f3;
  --ink: #17140f;
  --ink-soft: #423c32;
  --muted: #6f695c;
  --line: #eae5db;
  --accent: #c97a23;        /* orange WS foncé — AA sur blanc (texte/liens/eyebrow) */
  --accent-strong: #a9621a;
  --cta: #f3a752;           /* orange WS clair — fond des CTA */
  --cta-ink: #17140f;       /* texte sombre sur orange */
  --cta-hover: #ef9a3e;
  --band: #141210;          /* bande sombre "souveraineté" */
  --band-ink: #f5f1e9;
  --band-muted: #a49c8b;
  --swiss: #da291c;         /* croix suisse (clin d'œil souveraineté) */
  --chip-bg: #020202;       /* fond du logo chip en thème clair */
  --radius: 4px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis-weight: none;
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --paper: #0c0b0a; --surface: #16140f; --ink: #f4f1ea; --ink-soft: #d2ccbd;
    --muted: #98917f; --line: #29251d; --accent: #f3a752; --accent-strong: #f6bc7a;
    --cta: #f3a752; --cta-ink: #17140f; --cta-hover: #f6bc7a;
    --band: #16140f; --band-ink: #f4f1ea; --band-muted: #9a927f; --swiss: #ff5148;
    --chip-bg: transparent;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0b0a; --surface: #16140f; --ink: #f4f1ea; --ink-soft: #d2ccbd;
  --muted: #98917f; --line: #29251d; --accent: #f3a752; --accent-strong: #f6bc7a;
  --cta: #f3a752; --cta-ink: #17140f; --cta-hover: #f6bc7a;
  --band: #16140f; --band-ink: #f4f1ea; --band-muted: #9a927f; --swiss: #ff5148;
  --chip-bg: transparent;
}

* { 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; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss01" 1; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 620; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); letter-spacing: -0.025em; }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-body); font-size: .72rem; font-weight: 620; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .55rem; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Logo chip « Ly » (repris de l'app Electron, BrandMark.svelte) ──────────── */
.chip { display: inline-grid; place-items: center; flex: none; border-radius: 7px; padding: 3px; background: var(--chip-bg); box-sizing: border-box; }
.chip svg { display: block; width: 100%; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 620; letter-spacing: -.02em; font-size: 1.2rem; color: var(--ink); }

/* ── Croix suisse (clin d'œil souveraineté, angles droits proportion 7:6) ───── */
.swiss { display: inline-block; width: 1em; height: 1em; background: var(--swiss); position: relative; border-radius: 1.5px; flex: none; }
.swiss::before, .swiss::after { content: ""; position: absolute; background: #fff; }
.swiss::before { left: 50%; top: 20%; width: 20%; height: 60%; transform: translateX(-50%); }
.swiss::after  { top: 50%; left: 20%; height: 20%; width: 60%; transform: translateY(-50%); }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .row { display: flex; align-items: center; gap: 1.4rem; height: 64px; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav a.link { color: var(--ink-soft); font-size: .92rem; font-weight: 520; }
.nav a.link:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.5rem; }
@media (max-width: 900px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .92rem; font-weight: 560; padding: .62rem 1.05rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .05s, color .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); font-weight: 620; }
.btn-accent:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-lg { padding: .84rem 1.5rem; font-size: 1rem; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-size: .82rem; font-weight: 560; padding: .38rem .62rem; background: transparent; color: var(--muted); border: 0; cursor: pointer; transition: background .12s, color .12s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3.6rem, 8vw, 7rem) 0 clamp(2.6rem, 5vw, 4.2rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 78% 0%, color-mix(in srgb, var(--cta) 18%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
@media (max-width: 940px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 1.1rem; }
.hero .sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 36ch; }
.hero .cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .fineprint { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }

/* ── Mock produit ───────────────────────────────────────────────────────────── */
.mock { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0,0,0,.45); }
.mock .bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.mock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock .addr { margin-left: .6rem; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock .body { padding: 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; font-size: .86rem; }
.msg { padding: .62rem .82rem; border-radius: 9px; max-width: 88%; line-height: 1.45; }
.msg.u { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg.a { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 7px; padding: .35rem .62rem; }
.tool b { color: var(--accent); font-weight: 620; }
.mocklabel { text-align: center; font-size: .72rem; color: var(--muted); margin-top: .7rem; }

/* ── Trust strip ────────────────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .row { display: flex; flex-wrap: wrap; gap: .8rem 2rem; padding: 1rem 0; font-size: .84rem; color: var(--muted); align-items: center; }
.trust .row span { display: inline-flex; align-items: center; gap: .5rem; }

/* ── Sections ───────────────────────────────────────────────────────────────── */
section { padding: clamp(3.4rem, 7vw, 6.2rem) 0; }
.sec-head { max-width: 48ch; margin-bottom: 2.8rem; }
.sec-head h2 { margin-top: .8rem; }
.sec-head p { margin-top: .9rem; color: var(--ink-soft); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--paper); padding: 1.6rem 1.5rem; transition: background .15s; }
.feat:hover { background: var(--surface); }
.feat .k { font-family: var(--font-body); font-size: .72rem; font-weight: 620; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feat h3 { margin: .7rem 0 .5rem; }
.feat p { color: var(--muted); font-size: .93rem; }

.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-ink); opacity: .92; }
.band h2 { color: var(--band-ink); }
.band .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem; margin-top: 2.4rem; }
@media (max-width: 860px) { .band .cols { grid-template-columns: 1fr; } }
.band .col h3 { color: var(--band-ink); display: flex; align-items: center; gap: .5rem; }
.band .col p { color: var(--band-muted); font-size: .93rem; margin-top: .5rem; }

.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; background: var(--surface); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .92rem; }
.card .pending { font-size: .74rem; color: var(--accent); font-weight: 600; }

/* ── Tarifs ─────────────────────────────────────────────────────────────────── */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.pricing-controls .lbl { font-size: .8rem; color: var(--muted); font-weight: 560; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 1.7rem 1.5rem; background: var(--paper); display: flex; flex-direction: column; }
.plan.pop { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); }
.plan .tag { font-family: var(--font-body); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan h3 { font-size: 1.35rem; margin: .3rem 0 .2rem; }
.plan .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 620; letter-spacing: -.03em; margin: .6rem 0 .1rem; font-variant-numeric: tabular-nums; }
.plan .price .cur { font-size: .95rem; font-weight: 540; color: var(--muted); font-family: var(--font-body); }
.plan .per { font-size: .82rem; color: var(--muted); }
.plan .desc { font-size: .9rem; color: var(--ink-soft); margin: .8rem 0 1rem; min-height: 2.4em; }
.plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .89rem; }
.plan li { display: flex; gap: .55rem; align-items: baseline; color: var(--ink-soft); }
.plan li::before { content: ""; width: 6px; height: 6px; margin-top: .45em; border-radius: 1.5px; background: var(--accent); flex: none; }
.plan .btn { margin-top: auto; width: 100%; }

.band-strip { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-top: 1rem; background: var(--surface); }
@media (max-width: 760px) { .band-strip { grid-template-columns: 1fr; } }
.band-strip h3 { font-size: 1.18rem; }
.band-strip p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.band-strip .price-sm { font-size: 1.12rem; font-weight: 640; font-variant-numeric: tabular-nums; font-family: var(--font-display); }

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: .8rem; font-size: .95rem; max-width: 68ch; }

/* ── CTA final ──────────────────────────────────────────────────────────────── */
.final .box { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: clamp(2.2rem, 5vw, 3.6rem); background: var(--surface); overflow: hidden; }
.final .box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 100% at 90% 10%, color-mix(in srgb, var(--cta) 16%, transparent), transparent 70%); pointer-events: none; }
.final h2 { position: relative; max-width: 20ch; }
.final .cta { position: relative; margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 3.2rem 0 2.6rem; }
footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer .colh { font-size: .74rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
footer a.fl { display: block; color: var(--ink-soft); font-size: .9rem; padding: .22rem 0; }
footer a.fl:hover { color: var(--ink); }
footer .base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
