/* Bonjour TCF — public site. Every value comes from tokens.css (the design system). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
sup { font-size: .7em; line-height: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.spacer { flex: 1; }

/* type */
h1, h2, h3, h4 { margin: 0; }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
/* light or dark: the app's switch (the shared block below), the moon in the light, the sun in the dark */
.theme-switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-muted); max-width: 34em; }
.mark { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; line-height: 1; }
.mark svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark.big { font-size: 26px; color: var(--accent); }

/* buttons: the shared block below, and the hero's large one */
.btn.lg { height: 48px; padding: 0 20px; font-size: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
/* in-app browsers (Telegram, Instagram) float their own bar over the page and stick the header below it: the page used to
   scroll through the strip above. The header's colour reaches up and covers it (off-screen in every other browser). */
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 160px; background: var(--bg); pointer-events: none; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.top .brand { margin-right: 16px; }
.top nav { display: flex; gap: 2px; }
.top nav a { white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-muted); padding: 8px 12px; border-radius: var(--radius-md); }
.top nav a:hover { color: var(--ink); background: var(--surface-2); }
/* the bar for a visitor (sign in, start) or for a signed-in person (the dashboard): the Worker marks the page */
.only-in, :root[data-signed-in] .only-out { display: none !important; }
:root[data-signed-in] .only-in { display: inline-flex !important; }
.link-signin { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; margin: 0 6px; }
.link-signin:hover { text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.hero { padding: 80px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); }
.pill-sun { display: inline-block; background: var(--sun-soft); color: var(--ink); border: 1.5px solid var(--sun); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-md); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }


/* the player: the application playing in a window, four tabs under it (one per test), each tab's line filling */
.player { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.player-screen { position: relative; border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; background: var(--bg); }
.player-tabs { display: flex; gap: 8px; justify-content: center; }
.player-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--ink-muted); cursor: pointer; overflow: hidden; transition: color var(--duration-quick), border-color var(--duration-quick); }
.player-tabs button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-tabs button:hover { color: var(--ink); border-color: var(--ink-muted); }
.player-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.player-tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.player-tabs button[aria-selected="true"] i { transform: scaleX(var(--p, 0)); }

/* a section of copy beside a scene (the mock exam, Coach IA) */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 20px; }
.frame { position: relative; border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; background: var(--bg); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 600; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7d49' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.aside { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.aside svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kicker .mai-name { font-size: 15px; }
.kicker .mai-powered { font-size: 12px; }

/* free: the founder's words, and what there is not */
.free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.free-copy { display: flex; flex-direction: column; gap: 18px; }
.free-copy .big { font-size: 20px; line-height: 1.6; }
.sig { display: flex; flex-direction: column; }
.sig-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.sig-place { font-size: 15px; font-weight: 700; color: var(--ink-muted); }
.nos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nos li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.nos svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--bad-soft); color: var(--bad); }
.nos li.yes { background: var(--ok-soft); border-color: var(--ok); }
.nos li.yes svg { background: var(--ok); color: var(--surface); }

/* facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.facts span { font-size: 14px; font-weight: 700; color: var(--ink-muted); }

/* sections */
.band { padding: 104px 0; scroll-margin-top: 72px; }
.band.tint { background: var(--surface-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section-head > p:not(.kicker) { font-size: 18px; color: var(--ink-muted); }

.tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.test-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.test-card h3 { font-size: 19px; }
.test-card .format { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.test-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-muted); }
.test-card li { display: flex; gap: 10px; }
.test-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* the public chat: why and the three topics at the left, a small Telegram chat at the right */
.chat-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.chat-copy { display: flex; flex-direction: column; gap: 18px; }
.chat-copy .big { font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.chat-topics { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-topics li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.chat-topics b { display: block; font-weight: 600; font-size: 16px; }
.chat-topics small { display: block; font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.chat-topic-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.chat-topic-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.chat-cta .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-free { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.chat-phone { justify-self: center; width: 100%; max-width: 400px; border: 1px solid var(--line-strong); border-radius: 28px; background: var(--surface); box-shadow: 0 8px 0 var(--ink); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head img { border-radius: 50%; }
.chat-head b { display: block; font-weight: 600; font-size: 16px; }
.chat-head small { display: block; font-size: 13px; color: var(--ink-muted); }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 20px; min-height: 360px; background: var(--surface-2); }
.bub { max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; align-self: flex-start; opacity: 0; transform: translateY(8px); animation: bub-in .45s var(--ease-out) forwards; animation-play-state: paused; }
/* the chat starts talking when it comes into view (site.js adds .seen) */
.chat-phone.seen .bub { animation-play-state: running; }
.bub.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bub:nth-child(1) { animation-delay: .2s; } .bub:nth-child(2) { animation-delay: .9s; } .bub:nth-child(3) { animation-delay: 1.6s; }
.bub:nth-child(4) { animation-delay: 2.3s; } .bub:nth-child(5) { animation-delay: 3s; } .bub:nth-child(6) { animation-delay: 3.7s; } .bub:nth-child(7) { animation-delay: 4.4s; }
.bub.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); opacity: .4; animation: typing 1.2s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .2s; } .bub.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes bub-in { to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bub { opacity: 1; transform: none; animation: none; } .bub.typing i { animation: none; } }

/* the donation card, the same as the app's: terracotta, a heart, one button, the note of the payment page */
.support { max-width: 720px; margin: 0 auto; background: var(--accent); color: var(--on-accent); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: none; padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.support-heart { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 12%, transparent); margin-bottom: 4px; }
.support-heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support h2 { font-size: clamp(28px, 3vw, 36px); }
.support > p { font-size: 17px; line-height: 1.55; max-width: 34em; }
.don { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.don .btn { height: 52px; padding: 0 30px; font-size: 16px; }
.don .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.don .btn[disabled] { opacity: .5; cursor: progress; }
.don-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--on-accent); opacity: .85; order: 1; }
.band#don { padding-top: 88px; padding-bottom: 88px; }
.don-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.don-note.bad { color: var(--ink); opacity: 1; }
.don-note[hidden] { display: none; }
.merci { min-height: 100vh; display: grid; place-items: center; padding: 32px; text-align: center; }
.merci-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 480px; }
.merci-heart { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 6px; }
.merci-heart svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.merci p { color: var(--ink-muted); font-size: 17px; margin: 0; }
.merci .btn { margin-top: 8px; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 26px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 22px 0; font-size: 16px; color: var(--ink-muted); }

.site-footer { padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { font-size: 15px; color: var(--ink-muted); }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.site-footer nav a { text-decoration: none; font-weight: 700; font-size: 15px; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: 13px; color: var(--ink-muted); max-width: 70em; }

/* legal pages and 404 */
.page-title { font-size: 40px; }
.page-title.spaced { margin-top: 24px; }
.wrap.start { align-items: flex-start; }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.legal h2 { font-size: 22px; font-family: var(--font-sans); font-weight: 600; margin-top: 16px; }
.legal p, .legal li { font-size: 16px; color: var(--ink); }
.legal .note { font-size: 14px; color: var(--ink-muted); }
footer { border-top: 1px solid var(--line); }
.footer-grid nav a { color: var(--ink); }

/* ---------- the landing page (site/index.html), from the Claude Design mockup « Accueil du site public » ---------- */
.lp-band { padding: 80px 0; }
.lp-tint { background: var(--surface-2); }
.lp-hero { padding: 80px 0 72px; background: var(--bg); }
.lp-hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; max-width: 1200px; }
.lp-hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.lp-hero-art { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.lp-hero-art img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: var(--radius-lg); }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--navy-soft); color: var(--navy); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lp-pill.maple { background: var(--maple-soft); color: var(--maple); }
.lp-display { margin: 0; font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.lp-rule { display: block; width: 24px; height: 3px; background: var(--maple); }
.lp-lead { margin: 0; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 34em; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 36em; }

.lp-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-facts-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; border-left: 1px solid var(--line); }
.lp-facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.lp-facts-grid strong { font-family: var(--font-mono); font-size: 32px; line-height: 36px; font-weight: 600; color: var(--navy); }
.lp-facts-grid span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.lp-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.lp-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.lp-kicker { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.lp-h2 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.lp-h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 650; }
.lp-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }

.lp-tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lp-test { display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--ink); text-decoration: none; transition: border-color 150ms ease-out; }
.lp-test:hover { border-color: var(--line-strong); }
.lp-test-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lp-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--navy-soft); color: var(--navy); }
.lp-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lp-code { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.lp-test h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.lp-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.lp-test p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.lp-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--link); }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-split-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lp-split-art { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-split-rev .lp-split-art { order: 0; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.lp-checks.small li { font-size: 14px; line-height: 20px; }
.lp-checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--correct); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-aside { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-muted); }
.lp-aside svg, .lp-secure svg, .lp-cta-side svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; }

.lp-overall { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.lp-overall > div { display: flex; flex-direction: column; gap: 2px; }
.lp-overall-n { font-family: var(--font-mono); font-size: 32px; line-height: 36px; font-weight: 600; color: var(--navy); }
.lp-cert { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--maple-soft); color: var(--maple); font-weight: 600; font-size: 14px; }
.lp-cert small { font-weight: 400; font-size: 12px; }
.lp-scores { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 14px; line-height: 20px; box-shadow: var(--shadow-card); }
.lp-scores th { background: var(--surface-2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-align: left; padding: 12px 16px; }
.lp-scores td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.lp-scores .r { text-align: right; }
.lp-scores td.num { font-family: var(--font-mono); font-weight: 500; }
.lp-scores .lp-group td { background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 16px; }
.lp-level { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--navy-soft); color: var(--navy); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.lp-nclc { font-size: 12px; color: var(--ink-muted); }

.lp-marked { display: flex; flex-direction: column; overflow: hidden; }
.lp-marked-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.lp-marked-head strong { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--navy); }
.lp-marked-text { margin: 0; padding: 24px 24px 12px; font-family: var(--font-serif); font-size: 18px; line-height: 32px; color: var(--ink); }
.lp-marked-text s { color: var(--incorrect); }
.lp-marked-text ins { text-decoration: none; background: var(--correct-soft); color: var(--correct); padding: 1px 4px; border-radius: var(--radius-sm); }
.lp-kinds { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; font-size: 12px; line-height: 16px; font-weight: 600; }
.lp-kinds span { padding: 4px 8px; border-radius: var(--radius-sm); }
.lp-kinds .bad { background: var(--incorrect-soft); color: var(--incorrect); }
.lp-kinds .caution { background: var(--caution-soft); color: var(--caution); }
.lp-kinds .navy { background: var(--navy-soft); color: var(--navy); }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.lp-plan.main { border: 2px solid var(--navy); }
.lp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-badge { padding: 4px 8px; border-radius: var(--radius-sm); background: var(--navy); color: var(--on-navy); font-size: 12px; font-weight: 600; }
.lp-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.lp-price strong { font-family: var(--font-mono); font-size: 44px; line-height: 48px; font-weight: 600; color: var(--ink); }
.lp-price span { font-size: 14px; color: var(--ink-muted); }
.lp-plan .btn { align-self: flex-start; margin-top: auto; }
.lp-secure { margin: 28px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.lp-trial { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--ink-muted); }

.lp-cta-band { padding-top: 0; }
.lp-tint + .lp-cta-band { padding-top: 80px; }
.lp-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; }
.lp-cta > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.lp-cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lp-cta-side .small { display: inline-flex; align-items: center; gap: 6px; }

.lp-faq-wrap { max-width: 860px; }
.lp-faq { padding: 4px 24px; }
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq details:first-child { border-top: 0; }
.lp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--ink-muted); font-weight: 400; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin: 0 0 18px; color: var(--ink-muted); line-height: 24px; }

@media (max-width: 1180px) {
  .link-signin { display: none; }
}
@media (max-width: 1080px) {
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a { padding: 8px 9px; font-size: 14px; }
  .hero-grid { gap: 40px; }

}
@media (max-width: 900px) {
  .lp-split { grid-template-columns: 1fr; }
  .lp-split-rev .lp-split-art { order: 2; }
  .top nav { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .free, .faq-wrap, .split, .chat-split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-copy { order: 0; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts-grid > div:nth-child(-n+2) { border-top: 0; }
  .band { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* shared:brand — the wordmark and the lockup (the app icon beside the name), the same in the app, the admin and the
   public site. site/styles.css holds an exact copy (tests/site.test.ts keeps them equal). */
/* « Bonjour » in navy, « TCF » in maple: the logo's two colours (brand/logo.png) */
.wordmark { display: inline-block; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; font-size: 22px; line-height: 24px; white-space: nowrap; color: var(--navy); text-decoration: none; }
.wordmark .tcf { color: var(--maple); }
.wordmark.small { font-size: 18px; }
.wordmark .dot { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* the icon (brand/icon.png): the speech bubble with the maple leaf */
.brand .logo { display: block; flex: none; width: 32px; height: 32px; }
/* the logo (brand/logo-bonjour.png), on no background; the white plate below only ever showed in the dark mode */
.brand-logo { display: block; flex: none; width: auto; border-radius: var(--radius-md); }
:root[data-theme="dark"] .brand-logo { background: #ffffff; border-radius: var(--radius-md); padding: 2px 6px; box-sizing: content-box; }
/* shared:brand end */

/* shared:mai — Coach IA: one wordmark in the font and size of the text around it, in navy, still (the design
   system: no gradients, no animation); « propulsé par Gemini » after it in small muted type. The same in the app and on
   the public site (site/styles.css holds an exact copy; tests/site.test.ts keeps them equal). */
.mai { white-space: nowrap; }
.mai-name { font-weight: 700; color: var(--navy); }
.mai-powered { margin-left: .55em; font-size: .7em; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
/* shared:mai end */

/* shared:buttons — the design system's Button: secondary (default), primary (navy), accent (maple: the one button that
   starts a timed test), quiet; 1 px borders, no shadow. The same in the app, the admin and the
   public site (site/styles.css holds an exact copy; tests/site.test.ts keeps them equal). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 150ms ease-out, border-color 150ms ease-out, filter 150ms ease-out, transform 160ms var(--ease-out); }
/* a press is felt: the button gives a little */
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn.primary:hover:not(:disabled) { background: var(--navy); filter: brightness(1.12); }
.btn.accent { background: var(--maple); border-color: var(--maple); color: var(--on-maple); }
.btn.accent:hover:not(:disabled) { background: var(--maple); filter: brightness(1.08); }
.btn.danger { background: var(--incorrect); border-color: var(--incorrect); color: var(--on-maple); }
.btn.danger:hover:not(:disabled) { background: var(--incorrect); filter: brightness(1.08); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--navy); }
.btn.quiet:hover:not(:disabled) { background: var(--navy-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn[aria-busy] { opacity: 1; cursor: progress; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* shared:buttons end */

/* shared:switches — the theme switch and the language pill, the same in the app, the admin and the public site.
   site/styles.css holds an exact copy (tests/site.test.ts keeps them equal). */
.theme-switch, .lang-toggle { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; font: inherit; font-weight: 600; font-size: 12px; letter-spacing: .04em; transition: background var(--duration-quick), color var(--duration-quick), transform var(--duration-quick); }
.theme-switch:hover, .lang-toggle:hover { background: var(--surface); color: var(--ink); }
.theme-switch:hover { transform: rotate(15deg); }
/* the language pill. `.lang` keeps a 40 px footprint in the rail; the pill inside is anchored at its bottom and grows
   upward (40 → 80 px) when open. The track holds EN over FR (40 px each) and is anchored at the pill's bottom: closed
   on EN it sits 40 px lower so EN shows in the one visible slot; open, it rises with the pill. The thumb (the dark
   disc) sits under the language in use and slides between the two. Size, offset and thumb share one timing. */
.lang { --lang-s: 40px; position: relative; width: var(--lang-s); height: var(--lang-s); margin-bottom: 2px; flex: none; }
.lang-pill { position: absolute; left: 0; bottom: 0; width: var(--lang-s); height: var(--lang-s); border-radius: calc(var(--lang-s) / 2); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); overflow: hidden; z-index: 5; transition: height var(--duration-move) var(--ease-out), width var(--duration-move) var(--ease-out), box-shadow var(--duration-move) var(--ease-out); }
.lang[data-open] .lang-pill { height: calc(var(--lang-s) * 2); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-float); }
.lang-track { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; transition: transform var(--duration-move) var(--ease-out); }
.lang:not([data-open])[data-lang="en"] .lang-track { transform: translateY(var(--lang-s)); }
.lang-thumb { position: absolute; left: 4px; top: 4px; width: calc(var(--lang-s) - 8px); height: calc(var(--lang-s) - 8px); border-radius: 50%; background: var(--ink); opacity: 0; transition: transform var(--duration-move) var(--ease-out), opacity var(--duration-quick); }
.lang[data-lang="fr"] .lang-thumb { transform: translateY(var(--lang-s)); }
.lang[data-open] .lang-thumb { opacity: 1; }
.lang-opt { position: relative; z-index: 1; flex: none; width: 100%; height: var(--lang-s); padding: 0; border: 0; background: none; display: grid; place-items: center; font: inherit; font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); cursor: pointer; transition: color var(--duration-move) var(--ease-out); }
.lang-opt[data-now] { color: var(--ink); }
.lang[data-open] .lang-opt[data-now] { color: var(--bg); }
.lang[data-open] .lang-opt:not([data-now]):hover { color: var(--ink); }
.lang-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 50%; }
/* the pill grows to the left instead (a top bar): anchored at its right, the track a row EN · FR; closed on EN it sits
   one size further right so EN shows in the visible slot */
.lang[data-dir="left"] { margin-bottom: 0; }
.lang[data-dir="left"] .lang-pill { left: auto; right: 0; top: 0; bottom: auto; }
.lang[data-dir="left"][data-open] .lang-pill { width: calc(var(--lang-s) * 2); height: var(--lang-s); }
.lang[data-dir="left"] .lang-track { left: auto; right: 0; top: 0; bottom: auto; flex-direction: row; width: calc(var(--lang-s) * 2); height: 100%; }
.lang[data-dir="left"]:not([data-open])[data-lang="en"] .lang-track { transform: translateX(var(--lang-s)); }
.lang[data-dir="left"] .lang-opt { width: var(--lang-s); height: 100%; }
.lang[data-dir="left"][data-lang="fr"] .lang-thumb { transform: translateX(var(--lang-s)); }
/* shared:switches end */

/* shared:examiner — the examiner's portrait, the same in the app and on the public site (site/styles.css holds an
   exact copy; tests/site.test.ts keeps them equal). */
/* the examiner's portrait: a shaded figure before an office out of focus. The surroundings follow the tokens (the
   wall and the sheet with the theme, the jacket and the lips terracotta); her face keeps its own colours, drawn in the
   SVG itself, so it reads the same in light and dark. */
.iv { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(360px, 100%); }
.iv-frame { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: var(--border-hair) solid var(--line-strong); box-shadow: var(--shadow-press); background: var(--surface-2); transition: box-shadow var(--duration-move); }
.iv svg { width: 100%; height: auto; display: block; }
.iv[data-speaking="true"] .iv-frame { box-shadow: none, 0 0 0 4px var(--accent-soft); }
.iv-wall-a { stop-color: var(--surface-2); }
.iv-wall-b { stop-color: var(--line); }
.iv-light-a { stop-color: var(--surface); stop-opacity: .9; }
.iv-light-b { stop-color: var(--surface); stop-opacity: 0; }
.iv-shelf { fill: var(--ink); opacity: .22; }
.iv-book { opacity: .55; }
.iv-book-1 { fill: var(--sun); }
.iv-book-2 { fill: var(--ok); }
.iv-book-3 { fill: var(--accent); }
.iv-book-4 { fill: var(--amber); }
.iv-window { fill: var(--surface); }
.iv-frame { fill: var(--line); }
.iv-plant { fill: var(--ok); opacity: .55; }
.iv-plant-2 { opacity: .7; }
.iv-jacket-a { stop-color: var(--accent); }
.iv-jacket-b { stop-color: color-mix(in srgb, var(--accent) 62%, var(--ink)); }
.iv-lapel { fill: color-mix(in srgb, var(--accent) 72%, var(--ink)); }
.iv-lapel-r { fill: color-mix(in srgb, var(--accent) 64%, var(--ink)); }
.iv-shirt { fill: var(--surface); }
.iv-shirt-fold { fill: var(--line); }
.iv-cheek { opacity: .28; transition: opacity var(--duration-move); }
.iv-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.iv-line-thin { stroke-width: 1.8; }
.iv-brow { fill: none; stroke-width: 3.2; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; transition: transform var(--duration-move) var(--ease-out); }
.iv-lip { fill: var(--accent); }
.iv-lip-up { fill: color-mix(in srgb, var(--accent) 72%, var(--ink)); }
.iv-lip-shine { fill: none; stroke: var(--accent-soft); stroke-width: 1.4; stroke-linecap: round; opacity: .75; }
.iv-sheet { fill: var(--surface); stroke: var(--line); }
.iv-rule { stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; }
/* life: sway, blink, breathe, nod while she listens, read her sheet while the candidate prepares, ponder before a reply */
.iv-head { transform-box: fill-box; transform-origin: 50% 90%; animation: iv-sway 7s ease-in-out infinite; }
@keyframes iv-sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-0.9deg) translateY(.6px); } 65% { transform: rotate(.8deg) translateY(-.4px); } }
.iv[data-listening="true"] .iv-head { animation: iv-nod 5.5s ease-in-out infinite; }
@keyframes iv-nod { 0%, 70%, 100% { transform: rotate(-1.4deg); } 78% { transform: rotate(-1.4deg) translateY(2.2px); } 86% { transform: rotate(-1.4deg); } 92% { transform: rotate(-1.4deg) translateY(1.6px); } }
.iv-lids { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: iv-blink 5.2s infinite; }
@keyframes iv-blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } 97.5% { transform: scaleY(0); } }
.iv-body { transform-box: fill-box; transform-origin: 50% 100%; animation: iv-breathe 4.4s ease-in-out infinite; }
@keyframes iv-breathe { 50% { transform: scaleY(1.012); } }
.iv-pose { transform-box: fill-box; transform-origin: 50% 85%; transition: transform .7s var(--ease-out); }
.iv-gaze { transition: transform .55s var(--ease-out); }
.iv-lowered { opacity: 0; transition: opacity .45s; }
.iv-paper { transform: translateY(58px) rotate(-2deg); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .75s var(--ease-out); }
.iv[data-thinking="true"] .iv-pose { transform: translateY(9px) rotate(1.2deg) scaleY(.975); }
.iv[data-thinking="true"] .iv-gaze { transform: translate(-.8px, 3.4px); }
.iv[data-thinking="true"] .iv-lowered { opacity: 1; }
.iv[data-thinking="true"] .iv-paper { transform: translateY(6px) rotate(-2deg); }
.iv[data-thinking="true"] .iv-head { animation: iv-read 4.2s ease-in-out infinite; }
@keyframes iv-read { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.9deg) translateX(.8px); } }
.iv[data-mood="warm"] .iv-cheek { opacity: .42; }
.iv[data-mood="curious"] .iv-brow { transform: translateY(-2.4px); }
.iv[data-mood="puzzled"] .iv-brow-r { transform: translateY(-3.2px) rotate(-7deg); }
.iv[data-mood="puzzled"] .iv-brow-l { transform: translateY(.6px) rotate(3deg); }
.iv[data-thinking="false"][data-mood="curious"] .iv-pose { transform: rotate(-1.4deg); }
.iv[data-thinking="false"][data-mood="puzzled"] .iv-pose { transform: rotate(2deg) translateY(1px); }
.iv[data-pondering="true"] .iv-gaze { transform: translate(3.2px, -2.6px); }
.iv[data-pondering="true"] .iv-brow-l { transform: translate(1px, -.8px) rotate(4deg); }
.iv[data-pondering="true"] .iv-brow-r { transform: translate(-1px, -.8px) rotate(-4deg); }
.iv[data-pondering="true"] .iv-pose { transform: rotate(-2.2deg) translate(1.5px, -1.5px); }
.iv[data-pondering="true"] .iv-head { animation: iv-ponder 2.6s ease-in-out infinite; }
@keyframes iv-ponder { 0%, 100% { transform: rotate(0deg); } 40% { transform: rotate(.9deg) translateY(-1.2px); } 70% { transform: rotate(-.4deg) translateY(.4px); } }
.iv[data-pondering="true"] .iv-frame { animation: iv-pulse 1.6s ease-in-out infinite; }
@keyframes iv-pulse { 50% { box-shadow: none, 0 0 0 5px var(--sun-soft); } }
/* shared:examiner end */

/* phones: one block, after the shared blocks so it wins over them */
@media (max-width: 560px) {
  /* the landing page on a phone */
  .lp-band, .lp-hero { padding: 48px 0; }
  .lp-display { font-size: 32px; line-height: 38px; }
  .lp-h2 { font-size: 26px; line-height: 32px; }
  .lp-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts-grid > div { padding: 18px 12px; border-left: 0; }
  .lp-facts-grid > div:first-child { padding-left: 12px; }
  .lp-tests, .lp-plans, .lp-split { grid-template-columns: 1fr; gap: 24px; }
  .lp-split-rev .lp-split-art { order: 2; }
  .lp-cta { flex-direction: column; align-items: flex-start; }
  .lp-cta-side { align-items: flex-start; }
  .lp-scores th, .lp-scores td { padding: 10px; }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 6px; height: 56px; }
  /* shared:brand-phone — the lockup on a phone's top bar (site/styles.css holds an exact copy in its phone block) */
  .brand .logo { width: 30px; height: 30px; }
  .brand .wordmark { font-size: 18px; }
  .theme-switch { width: 36px; height: 36px; }
  .lang { --lang-s: 36px; }
  /* shared:brand-phone end */
  /* the hero holds the one button on a phone; the bar keeps the name, the language and the theme */
  .top .btn, :root[data-signed-in] .top .only-in { display: none !important; }
  .lead { font-size: 18px; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .don .btn { width: 100%; }
  .tests { grid-template-columns: 1fr; }
  .support { padding: 28px 20px; }
  .player-tabs button { padding: 0 12px; }
  .faq summary { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* the abuse guard's trap (worker/guard.ts TRAPS): off the screen, out of the tab order, hidden from screen readers */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
