/* formasell.fr — the marketing site. Same palette, fonts and shapes as the
   app (tailwind.config.js): ink greys, brand blue, accent green, gold for
   warnings; Inter for text, Plus Jakarta Sans for headings; rounded cards
   on a light grey page. Fonts are served from here, no third party. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink-50: #f6f7f9;
  --ink-100: #eceef2;
  --ink-200: #d5d9e2;
  --ink-300: #838da2;
  --ink-400: #66718a;
  --ink-500: #56607a;
  --ink-600: #4a5269;
  --ink-700: #41485b;
  --ink-800: #3a404f;
  --ink-900: #343843;
  --ink-950: #22242c;
  --brand-50: #eef6ff;
  --brand-100: #d9ecff;
  --brand-200: #bcdfff;
  --brand-500: #2f8bff;
  --brand-600: #1769f5;
  --brand-700: #1254e1;
  --accent-50: #f0fdf4;
  --accent-100: #dcfce7;
  --accent-500: #22c55e;
  --accent-700: #15803d;
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-500: #f59e0b;
  --gold-700: #b45309;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --shadow-pop: 0 4px 16px -4px rgba(15, 23, 42, 0.12);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--ink-50);
}

::selection { background: rgba(47, 139, 255, 0.18); }

a { color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-100); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--ink-900); }
.nav { display: none; gap: 28px; font-size: 15px; color: var(--ink-500); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink-900); }
@media (min-width: 860px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-quiet { font-size: 14px; font-weight: 600; color: var(--ink-500); text-decoration: none; }
.link-quiet:hover { color: var(--ink-900); }
@media (max-width: 520px) { .header .link-quiet { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-800); }
.btn-secondary { background: #fff; color: var(--ink-800); box-shadow: inset 0 0 0 1px var(--ink-200); }
.btn-secondary:hover { background: var(--ink-50); }
.btn-small { padding: 8px 14px; font-size: 13px; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 600; padding: 5px 12px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-500); }
h1, h2, h3 { font-family: var(--display); color: var(--ink-950); letter-spacing: -0.02em; margin: 0; }
.hero h1 { margin-top: 20px; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; font-weight: 800; max-width: 20ch; }
/* The OF vocabulary under the hero title, as small tags. */
.hero-terms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-terms span { border-radius: 999px; padding: 6px 14px; font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--brand-200); background: rgba(47, 139, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(47, 139, 255, 0.35); }
.hero .lead { margin: 20px 0 0; font-size: clamp(17px, 2vw, 19px); color: var(--ink-500); max-width: 60ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-400); }

/* The hero in reverse (dark page, light text), so it stands apart from the
   rest of the page; the app window and the problem tiles stay light. */
.hero-dark { background-color: var(--ink-950); background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px); background-size: 18px 18px; color: #fff; }
.hero-dark h1, .hero-dark .problems-title { color: #fff; }
.hero-dark .lead { color: var(--ink-200); }
.hero-offer { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-200); }
.hero-dark .btn-primary { background: #fff; color: var(--ink-950); }
.hero-dark .btn-primary:hover { background: var(--ink-100); }
.hero-dark .btn-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.hero-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.hero-dark .try-me { color: var(--brand-200); }
.hero-dark .app-window { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); border-color: transparent; }
.hero-dark .problem-chip { border-color: transparent; }

/* The hero's drawing: a short chat, the client's questions on the left,
   your answers on the right. Beside the text on wide screens, under it
   otherwise. */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero-chat { margin: 0; display: grid; gap: 12px; max-width: 440px; width: 100%; justify-self: center; }
.chat-bubble { max-width: 86%; border-radius: 18px; padding: 10px 14px 12px; font-size: 15px; line-height: 1.4; }
.chat-bubble small { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; }
.chat-them { justify-self: start; border-bottom-left-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.chat-them small { color: var(--ink-300); }
.chat-you { justify-self: end; border-bottom-right-radius: 6px; background: var(--brand-600); color: #fff; box-shadow: 0 16px 30px -18px rgba(47, 139, 255, 0.8); }
.chat-you small { color: var(--brand-100); }
.chat-frise { margin-top: 10px; border-radius: 10px; background: #fff; color: var(--ink-900); padding: 9px 11px; }
.chat-note { justify-self: end; margin-top: 4px; font-family: "Caveat", cursive; font-size: 26px; font-weight: 700; color: var(--brand-200); transform: rotate(-3deg); }
.problems-title { margin: 56px 0 0; text-align: center; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.problems { margin-top: 20px; display: grid; gap: 12px; }
@media (min-width: 760px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem-chip { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; background: #fff; border: 1px solid var(--ink-100); padding: 16px; text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s; }
.problem-chip:hover { border-color: var(--ink-200); box-shadow: var(--shadow-pop); }
.problem-chip .num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ink-100); color: var(--ink-700); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.problem-chip q { font-size: 15px; font-weight: 600; color: var(--ink-900); quotes: "« " " »"; }
.problem-chip span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-400); }

/* ---------- Feature sections ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--ink-100); }
.section.white { background: #fff; }
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.solo { grid-template-columns: 1fr; }
  .feature.solo .points { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .feature.reverse .feature-text { order: 2; }
  /* A window that needs a little more room than half the row (problem #2's
     session panel: its four Budget figures side by side). */
  .feature.reverse.wide-window { grid-template-columns: 1.25fr 1fr; gap: 48px; }
}
.quote { margin: 0; font-family: var(--display); font-size: clamp(19px, 2vw, 22px); font-weight: 700; letter-spacing: -0.01em; color: var(--brand-700); }
.feature h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 800; }
.feature .intro { margin: 16px 0 0; font-size: 17px; color: var(--ink-500); }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-700); }
.points li::before { content: ""; flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 3px; background: var(--accent-500); }
.points strong { color: var(--ink-900); }
.fine { margin-top: 20px; font-size: 13px; color: var(--ink-400); }

/* ---------- Product mock-ups (drawn in HTML, like the app's cards) ---------- */

.mock { border-radius: 20px; background: var(--ink-50); border: 1px solid var(--ink-100); padding: 20px; }
.section.white .mock { background: var(--ink-50); }
.section:not(.white) .mock { background: #fff; }
.card { border-radius: 14px; background: #fff; border: 1px solid var(--ink-100); padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.section:not(.white) .card { background: var(--ink-50); }
.card + .card { margin-top: 10px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.card-sub { font-size: 12px; color: var(--ink-400); margin-top: 2px; }
.pill { flex: none; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.pill-ok { background: var(--accent-100); color: var(--accent-700); }
.pill-warn { background: var(--gold-100); color: var(--gold-700); }
.pill-late { background: var(--red-50); color: var(--red-700); }
.pill-info { background: var(--brand-50); color: var(--brand-700); }
.pill-neutral { background: var(--ink-100); color: var(--ink-700); }
.gauge { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.gauge > div { height: 100%; border-radius: 999px; }
.gauge-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-400); }
.bg-ok { background: var(--accent-500); }
.bg-warn { background: var(--gold-500); }
.bg-late { background: var(--red-600); }
.bg-brand { background: var(--brand-500); }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; border: 1px solid #fde68a; background: var(--gold-50); color: #78350f; font-size: 13px; padding: 10px 12px; margin-top: 10px; }
.alert b { font-weight: 700; }
.alert i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: var(--gold-500); }
.queue-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); }
.note { margin-top: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--ink-100); padding: 10px 12px; font-size: 13px; color: var(--ink-600); }
.section:not(.white) .note { background: #fff; }
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps span { flex: 1; height: 6px; border-radius: 999px; background: var(--ink-200); }
.steps span.done { background: var(--brand-500); }
.history { margin-top: 12px; display: grid; gap: 8px; font-size: 12px; color: var(--ink-500); }
.history div { display: flex; gap: 8px; }
.history time { flex: none; width: 52px; color: var(--ink-400); }

/* ---------- App windows: real app components (see src/showcase) ---------- */

.app-window { margin: 0; border-radius: 16px; background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-pop); overflow: hidden; }
.app-window-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.app-window-bar span { width: 9px; height: 9px; border-radius: 999px; background: var(--ink-200); }
.app-window-body { padding: 18px; overflow-x: auto; min-height: 60px; }
.app-window figcaption { padding: 10px 16px 12px; border-top: 1px solid var(--ink-100); font-size: 12px; color: var(--ink-400); background: #fff; }
.app-window-narrow .app-window-body { background: #fff; }
.hero-shot { position: relative; margin-top: 88px; }
.app-window-clamp.app-window-board { max-height: 620px; }
/* The relance fiche, trimmed for room (see RelanceFiche in the showcase):
   no profilage pastilles, no e-mail template picker, no objections list,
   and the three call buttons on one line. */
[data-showcase="relanceFiche"] div:has(> .min-h-\[20px\]),
[data-showcase="relanceFiche"] select,
[data-showcase="relanceFiche"] div:has(> button > .lucide-quote) { display: none; }
[data-showcase="relanceFiche"] .mt-3.justify-between,
[data-showcase="relanceFiche"] .mt-3.justify-between .flex-wrap { flex-wrap: nowrap; }
[data-showcase="relanceFiche"] .mt-3.justify-between button { width: auto; white-space: nowrap; padding-inline: 12px; }
/* The inter panel is made for a wider screen: shown slightly smaller. */
[data-showcase="interPanel"] > * { zoom: 0.85; }
/* "Changez la vue !" with a hand-drawn arrow onto the layout switch, which
   sits at the top right of the window. Hidden when the layout is too narrow
   for it to point at the right place. */
.try-me { position: absolute; top: -46px; z-index: 1; display: flex; align-items: flex-start; gap: 2px; color: var(--brand-700); pointer-events: none; }
.try-me span { font-family: "Caveat", cursive; font-weight: 700; font-size: 28px; line-height: 1; transform: rotate(-5deg); margin-top: 2px; white-space: nowrap; }
.try-me-flip svg { transform: scaleX(-1); }
.try-me-center { left: calc(50% + 10px); }
.try-me-left { left: 24px; }
.try-me-right { right: 24px; }
/* Onto the carousel's "next" arrow, at the right edge of its window. */
.try-me-next { right: 38px; }
/* The same nudge under a feature's text, pointing right at its window.
   Only beside the window: once the layout stacks, there's nothing to the right. */
.try-me-inline { display: none; }
@media (min-width: 920px) {
  /* The nudge reaches across the gap to touch the window, its curve flipped
     so it dips down before the tip. */
  .try-me-inline { display: flex; align-items: flex-start; justify-content: flex-end; gap: 4px; margin: 20px -60px 0 0; color: var(--brand-700); pointer-events: none; }
  .try-me-inline span { font-family: "Caveat", cursive; font-weight: 700; font-size: 28px; line-height: 1; transform: rotate(-5deg); margin-top: 6px; white-space: nowrap; }
  .try-me-inline svg { transform: scaleY(-1); }
  /* Window on the left: the nudge sits on the left and points left. */
  .feature.reverse .try-me-inline { flex-direction: row-reverse; margin: 20px 0 0 -60px; }
  .feature.reverse .try-me-inline svg { transform: scale(-1, -1); }
}
/* Inside a window, under its content: the arrow turned upward onto the
   last button on the left (the funding frises' "Valider"). */
.try-me-under { display: flex; align-items: flex-end; gap: 6px; margin-top: -10px; padding: 0 18px 14px 44px; color: var(--brand-700); pointer-events: none; }
.try-me-under svg { transform: rotate(180deg); flex: none; }
.try-me-under span { font-family: "Caveat", cursive; font-weight: 700; font-size: 28px; line-height: 1; transform: rotate(-5deg); margin-bottom: 8px; white-space: nowrap; }
/* Anything with a hand-drawn nudge above it: room for the arrow. */
.nudge-host { position: relative; }
.feature .nudge-host { margin-top: 56px; }
.showcase-wide.nudge-host { margin-top: 84px; }
@media (max-width: 900px) { .try-me { display: none; } }
/* The kanban is taller than a screen: shown down to the fold, fading out. */
.app-window-clamp { max-height: 560px; overflow: clip; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.showcase-wide { margin-top: 40px; }
/* The Réseau commercial list has more columns than the frame is wide: shown slightly smaller. */
[data-showcase="referrers"] > * { zoom: 0.86; }

/* ---------- Highlights rail ---------- */

/* Full-bleed: the cards run off both edges of the screen; the first one
   starts a little left of the page's content, so more of the rail shows.
   A faint dot grid sits behind. */
.rail { margin-top: 40px; background-image: radial-gradient(var(--ink-200) 1px, transparent 1.2px); background-size: 16px 16px; padding: 24px 0 8px; }
.rail-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 8px max(16px, calc((100vw - 1440px) / 2 + 16px)); scroll-padding-inline: max(16px, calc((100vw - 1440px) / 2 + 16px));
}
.rail-track::-webkit-scrollbar { display: none; }
/* The rail drifts on its own (see index.html): no snapping, no smoothing. */
.rail-track.rail-track-auto { scroll-snap-type: none; scroll-behavior: auto; }
.rail-track:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; }
.rail-card {
  flex: 0 0 min(350px, 84vw); min-height: 520px; scroll-snap-align: start; border-radius: 20px; padding: 30px 28px 26px;
  display: flex; flex-direction: column; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
}
.rail-figure sup { font-size: 0.45em; vertical-align: super; line-height: 0; }
.rail-figure { margin: 0; font-family: var(--display); font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rail-title { margin: 18px 0 0; font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }
.rail-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid currentColor; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.45; text-decoration: none; color: inherit; }
.rail-foot span:first-child { opacity: 0.85; }
.rail-arrow { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.rail-foot:hover .rail-arrow { transform: translateX(3px); }
/* A small excerpt of the app inside each card: the fiche's person, its
   kind and its motif, styled like the app's own fiche (ExecutionCard). */
.mini-fiche { margin: 22px 0 22px; border-radius: 14px; background: #fff; color: var(--ink-900); padding: 14px; box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.4); }
.mini-who { margin: 0; font-size: 14px; line-height: 1.3; }
.mini-who b { font-weight: 700; color: var(--ink-900); }
.mini-who span { font-weight: 600; color: var(--ink-500); font-size: 13px; }
.mini-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--ink-600); background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--ink-200); }
.mini-badge-late { color: var(--red-700); background: var(--red-50); box-shadow: inset 0 0 0 1px #fecaca; }
.mini-motif { margin-top: 10px; border-radius: 10px; background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--ink-100); padding: 10px 12px; }
.mini-label { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); }
.mini-text { margin: 3px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-700); }
.mini-frises { list-style: none; display: grid; gap: 11px; }
.mini-frise p { margin: 0; font-size: 12.5px; line-height: 1.3; }
.mini-frise p b { font-weight: 700; color: var(--ink-900); }
.mini-frise p span { color: var(--ink-500); }
.mini-frise div { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.mini-frise div span { position: relative; flex: 1; height: 5px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.mini-frise div span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: 999px; background: var(--tone); }
.mini-frise em { flex: none; min-width: 42px; text-align: right; font-style: normal; font-size: 11px; font-weight: 700; color: var(--tone-text); }
.mini-frise-late { --tone: var(--red-600); --tone-text: var(--red-700); }
.mini-frise-warn { --tone: #f97316; --tone-text: #c2410c; }
.mini-frise-ok { --tone: var(--ink-900); --tone-text: var(--ink-900); }
.mini-frise-done { --tone: var(--accent-500); --tone-text: var(--accent-700); }
.mini-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mini-bar span { position: relative; flex: 1; height: 5px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.mini-bar span::before { content: ""; position: absolute; inset: 0 45% 0 0; background: var(--red-600); border-radius: 999px; }
.mini-bar b { font-size: 11px; font-weight: 700; color: var(--red-700); }
/* Each card wears one of the app's colour schemes (Paramètres → Apparence),
   their values copied from src/index.css: --s-* is the scheme's accent,
   --s-ink its neutrals. Solid: the accent, white text. Soft: the accent's
   palest tint, its darkest shade for text. */
.scheme-ardoise { --s-50: #eef6ff; --s-100: #d9ecff; --s-200: #bcdfff; --s-500: #2f8bff; --s-600: #1769f5; --s-700: #1254e1; --s-800: #1544b6; --s-950: #112561; --s-ink: #22242c; --s-ink-soft: #41485b; }
.scheme-ocean { --s-50: #e0fafd; --s-100: #bdf3fc; --s-200: #8de9f8; --s-500: #0e99af; --s-600: #087d90; --s-700: #086a7a; --s-800: #0b5662; --s-950: #092e34; --s-ink: #1d2628; --s-ink-soft: #3a4b50; }
.scheme-foret { --s-50: #e8f9f1; --s-100: #cdf2e1; --s-200: #aee8cd; --s-500: #2e9f6a; --s-600: #1e8253; --s-700: #1a6f47; --s-800: #185a3b; --s-950: #0f3020; --s-ink: #1f2621; --s-ink-soft: #3f4b43; }
.scheme-prune { --s-50: #f8f3fe; --s-100: #f0e6fd; --s-200: #e5d3fb; --s-500: #a673e8; --s-600: #8e53d9; --s-700: #7b3dcc; --s-800: #6433a3; --s-950: #351e52; --s-ink: #27222c; --s-ink-soft: #4d4557; }
.scheme-sable { --s-50: #fdf4f0; --s-100: #fbe5de; --s-200: #f6d3c7; --s-500: #d5714c; --s-600: #bd512a; --s-700: #9f4625; --s-800: #7f3b22; --s-950: #422216; --s-ink: #28231f; --s-ink-soft: #50473f; }
.rail-card-solid { background: linear-gradient(160deg, var(--s-600), var(--s-800)); color: #fff; }
.rail-card-solid .rail-foot { border-color: rgba(255, 255, 255, 0.4); }
.rail-card-solid .rail-foot:hover .rail-arrow { background: rgba(255, 255, 255, 0.15); }
.rail-card-soft { background: var(--s-100); color: var(--s-950); box-shadow: inset 0 0 0 1px var(--s-200), 0 18px 40px -24px rgba(15, 23, 42, 0.35); }
.rail-card-soft .rail-figure { color: var(--s-700); }
.rail-card-soft .rail-foot { border-color: var(--s-200); }
.rail-card-soft .rail-arrow { background: var(--s-700); border-color: var(--s-700); color: #fff; }
.rail-card-soft .rail-foot:hover .rail-arrow { background: var(--s-800); }
/* The mini fiche in the card's scheme: tinted badge, a motif block with the
   accent's edge, the frise "dans les temps" in the accent. Status colours
   (retard, proche de la limite, validé, non garantie) keep their meaning. */
.rail-card .mini-fiche { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--s-950) 60%, transparent); }
.rail-card-soft .mini-fiche { box-shadow: 0 0 0 1px var(--s-200), 0 10px 22px -14px color-mix(in srgb, var(--s-950) 45%, transparent); }
.rail-card .mini-who b { color: var(--s-ink); }
.rail-card .mini-badge:not(.mini-badge-late) { color: var(--s-700); background: var(--s-50); box-shadow: inset 0 0 0 1px var(--s-200); }
.rail-card .mini-motif { background: var(--s-50); box-shadow: inset 0 0 0 1px var(--s-100); border-left: 3px solid var(--s-500); }
.rail-card .mini-label { color: var(--s-600); }
.rail-card .mini-text { color: var(--s-ink-soft); }
.rail-card .mini-frise p b { color: var(--s-ink); }
.rail-card .mini-frise div span { background: var(--s-50); }
.rail-card .mini-frise-ok { --tone: var(--s-600); --tone-text: var(--s-700); }
.rail-nav { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }
.rail-nav button {
  width: 64px; height: 64px; border-radius: 999px; border: 1.5px solid var(--ink-900); background: transparent; color: var(--ink-900);
  display: grid; place-items: center; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.rail-nav button:hover { background: var(--ink-900); color: #fff; }

/* ---------- Trust + CTA ---------- */

.trust { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { border-radius: 16px; background: #fff; border: 1px solid var(--ink-100); padding: 18px; }
.section.white .trust div { background: var(--ink-50); }
.trust h3 { font-size: 15px; font-weight: 700; }
.trust p { margin: 6px 0 0; font-size: 14px; color: var(--ink-500); }
.center { text-align: center; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.section-lead { margin: 12px auto 0; max-width: 60ch; color: var(--ink-500); }

/* ---------- Roadmap ---------- */

/* The phases along a line. The script sets --progress (0 to 1, today's
   place on the line) and marks each phase done, current or next; the line
   fills up to today once the section scrolls into view. Wide screens: the
   line runs across the top. Narrow ones: down the left. */
/* The line starts a little before the first phase: that lead-in is where
   today sits until the first release. */
.roadmap { --progress: 0; --line-at: 9px; position: relative; margin-top: 48px; padding-left: 120px; }
.roadmap-line { position: absolute; left: 0; right: 0; top: var(--line-at); height: 4px; border-radius: 4px; background: var(--ink-100); }
.roadmap-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink-950); transition: width 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.roadmap.is-in .roadmap-fill { width: calc(var(--progress) * 100%); }
.roadmap-today { position: absolute; top: 50%; left: calc(var(--progress) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 999px; background: var(--brand-600); box-shadow: 0 0 0 4px #fff; opacity: 0; transition: opacity 0.4s 1.6s; }
.roadmap.is-in .roadmap-today { opacity: 1; }
.roadmap-today::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-500); animation: roadmap-pulse 2s ease-out infinite; }
.roadmap-today em { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) rotate(-4deg); font-family: "Caveat", cursive; font-style: normal; font-weight: 700; font-size: 24px; line-height: 1; color: var(--brand-700); white-space: nowrap; }
@keyframes roadmap-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }

.roadmap-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.roadmap-phase { position: relative; padding-top: 44px; }
/* A dot is a release, at the head of its column: today sits before the
   next release's dot. */
.roadmap-dot { position: absolute; top: calc(var(--line-at) - 7px); left: 0; width: 18px; height: 18px; border-radius: 999px; background: #fff; border: 3px solid var(--ink-200); transition: border-color 0.3s, background 0.3s; }
.roadmap-phase.is-done .roadmap-dot { background: var(--accent-500); border-color: var(--accent-500); }
.roadmap-phase.is-current .roadmap-dot { border-color: var(--brand-600); }
.roadmap-when { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-400); }
.roadmap-phase h3 { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.roadmap-status { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 3px 10px; border-radius: 999px; background: var(--ink-100); color: var(--ink-600); }
.roadmap-status:empty { display: none; }
.is-done .roadmap-status { background: var(--accent-100); color: var(--accent-700); }
.is-current .roadmap-status { background: var(--brand-100); color: var(--brand-700); }
.roadmap-lead { margin: 8px 0 0; color: var(--ink-500); }

.roadmap-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.roadmap-items details { border-radius: 14px; background: var(--ink-50); border: 1px solid var(--ink-100); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.roadmap-items details:hover { border-color: var(--ink-200); }
.roadmap-items details[open] { background: #fff; border-color: var(--brand-200); box-shadow: var(--shadow-pop); }
.roadmap-items summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink-900); cursor: pointer; list-style: none; }
.roadmap-items summary::-webkit-details-marker { display: none; }
/* Each item's state, before its title: a grey dotted ring (upcoming), a
   blue half-filled ring turning slowly (in progress), a green tick (done). */
.roadmap-items summary::before { content: ""; flex: none; width: 22px; height: 22px; margin-right: -2px; border-radius: 999px; box-sizing: border-box; border: 2px dotted var(--ink-300); display: grid; place-items: center; }
.roadmap-phase.is-current .roadmap-items li:not(.is-done) summary::before { border: 2px solid var(--brand-600); background: conic-gradient(var(--brand-600) 0 50%, transparent 50% 100%); background-clip: content-box; padding: 2px; animation: roadmap-spin 6s linear infinite; }
@keyframes roadmap-spin { to { transform: rotate(360deg); } }
.roadmap-items summary::after { margin-left: auto; content: "+"; flex: none; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ink-200); font-size: 16px; font-weight: 500; line-height: 1; color: var(--ink-600); transition: transform 0.25s, background 0.2s, color 0.2s; }
.roadmap-items details[open] summary::after { transform: rotate(45deg); background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
/* Shipped items (and every item of a released phase) go green, with a tick. */
.roadmap-items .is-done details, .roadmap-phase.is-done .roadmap-items details { background: var(--accent-50); border-color: var(--accent-100); }
.roadmap-items .is-done details[open], .roadmap-phase.is-done .roadmap-items details[open] { background: #fff; border-color: var(--accent-500); }
.roadmap-items .is-done summary, .roadmap-phase.is-done .roadmap-items summary { color: var(--accent-700); }
.roadmap-items .is-done summary::before, .roadmap-phase.is-done .roadmap-items summary::before { content: "✓"; border: 0; background: var(--accent-500); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.roadmap-items .is-done details[open] summary::after, .roadmap-phase.is-done .roadmap-items details[open] summary::after { background: var(--accent-500); border-color: var(--accent-500); }
/* What is being worked on: the unshipped items of the current phase, in blue.
   When the phase's date passes they turn green, and the next phase's go blue. */
.roadmap-phase.is-current .roadmap-items li:not(.is-done) details { background: var(--brand-50); border-color: var(--brand-200); }
.roadmap-phase.is-current .roadmap-items li:not(.is-done) details[open] { background: #fff; border-color: var(--brand-500); }
.roadmap-phase.is-current .roadmap-items li:not(.is-done) summary { color: var(--brand-700); }
.roadmap-phase.is-current .roadmap-items li:not(.is-done) summary::after { border-color: var(--brand-200); color: var(--brand-700); }
.roadmap-phase.is-current .roadmap-items li:not(.is-done) details[open] summary::after { color: #fff; }
.roadmap-items details p { margin: 0; padding: 0 14px 14px; font-size: 14px; color: var(--ink-500); animation: roadmap-open 0.25s ease-out; }
@keyframes roadmap-open { from { opacity: 0; transform: translateY(-4px); } }

/* Phases rise in one after the other once the script has seen the section. */
.roadmap.js-reveal .roadmap-phase { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.roadmap.js-reveal.is-in .roadmap-phase { opacity: 1; transform: none; }
.roadmap.js-reveal.is-in .roadmap-phase:nth-child(2) { transition-delay: 0.4s; }
.roadmap.js-reveal.is-in .roadmap-phase:nth-child(3) { transition-delay: 0.8s; }
.roadmap.js-reveal.is-in .roadmap-phase:nth-child(4) { transition-delay: 1.2s; }

@media (max-width: 999px) {
  .roadmap { --line-at: 0px; padding-left: 32px; padding-top: 48px; }
  .roadmap-line { left: 7px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .roadmap-fill { inset: 0 0 auto 0; width: auto; height: 0; transition-property: height; }
  .roadmap.is-in .roadmap-fill { width: auto; height: calc(var(--progress) * 100%); }
  .roadmap-today { top: calc(var(--progress) * 100%); left: 50%; }
  .roadmap-today em { bottom: auto; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) rotate(-4deg); display: none; }
  .roadmap-phases { grid-template-columns: 1fr; gap: 36px; }
  .roadmap-phase { padding-top: 0; }
  .roadmap-dot { top: 2px; left: -32px; }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-fill, .roadmap-today, .roadmap.js-reveal .roadmap-phase { transition: none; }
  .roadmap-today::after, .roadmap-items summary::before { animation: none; }
}

/* On its own page (roadmap.html): the roadmap opens the page. */
.roadmap-page { border-top: 0; padding-top: 56px; }
.nav a[aria-current="page"] { color: var(--ink-950); font-weight: 600; }

/* The one line on the home page pointing to the roadmap page. */
.roadmap-teaser { display: flex; justify-content: center; margin-top: 56px; }
.roadmap-teaser a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--ink-100); font-size: 15px; font-weight: 600; color: var(--ink-900); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.roadmap-teaser a:hover { border-color: var(--brand-200); box-shadow: var(--shadow-pop); }
.roadmap-teaser-dot { position: relative; width: 10px; height: 10px; border-radius: 999px; background: var(--brand-600); }
.roadmap-teaser-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-500); animation: roadmap-pulse 2s ease-out infinite; }
.roadmap-teaser-link { color: var(--brand-700); }
@media (prefers-reduced-motion: reduce) { .roadmap-teaser-dot::after { animation: none; } }

/* "formasell" in a heading: marked like a highlighter stroke across its
   lower half, so the name stands out from the sentence. */
.brand-mark { padding: 0 0.12em; margin: 0 -0.04em; border-radius: 0.2em; background: linear-gradient(transparent 52%, var(--brand-200) 52%, var(--brand-200) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cta .brand-mark { background-image: linear-gradient(transparent 52%, rgba(47, 139, 255, 0.55) 52%, rgba(47, 139, 255, 0.55) 92%, transparent 92%); }

/* ---------- "Réserver ma place" (waitlist.js) ---------- */

.waitlist { width: min(460px, calc(100vw - 32px)); padding: 32px 28px 24px; border: 0; border-radius: 20px; background: #fff; color: var(--ink-900); box-shadow: 0 24px 64px -16px rgba(15, 23, 42, 0.35); }
.waitlist::backdrop { background: rgba(34, 36, 44, 0.45); backdrop-filter: blur(3px); }
.waitlist[open] { animation: waitlist-in 0.2s ease-out; }
@keyframes waitlist-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.waitlist h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.waitlist-lead { margin: 8px 0 20px; color: var(--ink-500); }
.waitlist label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ink-200); font: inherit; font-size: 15px; color: var(--ink-900); background: #fff; }
.waitlist-row input:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: transparent; }
.waitlist-row .btn { border: 0; cursor: pointer; font-family: inherit; }
.waitlist-row .btn:disabled { opacity: 0.6; cursor: progress; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-error { margin: 8px 0 0; font-size: 14px; color: var(--red-700); }
.waitlist-error:empty { display: none; }
.waitlist-note { margin: 16px 0 0; font-size: 12px; color: var(--ink-400); }
.waitlist-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-400); cursor: pointer; }
.waitlist-close:hover { background: var(--ink-50); color: var(--ink-900); }
.waitlist-done { text-align: center; }
.waitlist-done p { margin: 8px 0 20px; color: var(--ink-500); overflow-wrap: anywhere; }
.waitlist-done .btn { border: 0; cursor: pointer; font-family: inherit; }
.waitlist-tick { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 999px; background: var(--accent-500); color: #fff; font-size: 24px; font-weight: 700; }
@media (max-width: 520px) { .waitlist-row { flex-direction: column; } }

.cta { margin: 72px 0; border-radius: 24px; background: var(--ink-950); color: #fff; padding: 48px 24px; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta p { margin: 12px auto 0; max-width: 52ch; color: var(--ink-200); }
.cta .btn { margin-top: 28px; background: #fff; color: var(--ink-950); }
.cta .btn:hover { background: var(--ink-100); }
.cta-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .cta-actions .btn { margin-top: 0; }
.cta .btn.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.cta .btn.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.cta .cta-contact { margin-top: 20px; font-size: 14px; color: var(--ink-300); }
.cta .cta-contact a { color: #fff; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--ink-100); background: #fff; padding: 28px 0; font-size: 13px; color: var(--ink-400); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink-700); text-decoration: underline; }

/* ---------- Phones and narrow tablets ---------- */

/* Once a feature stacks, its demo comes right after the promise (title and
   intro), before the list of points: on a phone, the visitor sees the
   product without scrolling past five paragraphs first. The text block
   dissolves into the grid so its children can be reordered around the window. */
@media (max-width: 919px) {
  .feature { gap: 0; }
  .feature:not(.solo) .feature-text { display: contents; }
  .feature:not(.solo) .points { order: 3; }
  .feature:not(.solo) > .app-window { order: 2; margin-top: 28px; }
  /* The nudge beside the text turns into one above the window, pointing down. */
  .feature .try-me-inline { order: 1; display: flex; align-items: flex-end; gap: 4px; margin: 20px 0 -16px 8px; color: var(--brand-700); pointer-events: none; }
  .feature .try-me-inline span { font-family: "Caveat", cursive; font-weight: 700; font-size: 26px; line-height: 1; transform: rotate(-5deg); margin-bottom: 20px; white-space: nowrap; }
  .feature .try-me-inline svg { width: 72px; height: 42px; transform: rotate(35deg); }
  /* "Changez la vue !" and "Triez les colonnes !": above the window, in the flow. */
  .try-me { display: flex; position: static; margin: 0 0 -6px 8px; }
  .try-me span { font-size: 26px; }
  .try-me svg { width: 72px; height: 54px; transform: scaleX(-1) rotate(-20deg); }
  .hero-shot, .showcase-wide.nudge-host { margin-top: 28px; }
}

@media (max-width: 640px) {
  /* Rhythm: less air between sections, the content does the talking. */
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 44px; }
  .hero-grid { gap: 36px; }
  .header .wrap { height: 56px; }

  /* Hero: the two buttons share one line, full width; smaller term tags. */
  .hero h1 { font-size: 32px; }
  .hero-terms { gap: 6px; margin-top: 16px; }
  .hero-terms span { font-size: 13px; padding: 4px 10px; }
  .hero .lead { font-size: 16px; margin-top: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .btn { padding: 13px 10px; }
  .chat-bubble { font-size: 14px; max-width: 90%; }
  .chat-note { font-size: 23px; }

  .feature h2 { font-size: 25px; }
  .quote { font-size: 17px; }
  .feature .intro { font-size: 16px; }
  .points { gap: 12px; }
  .problems-title { margin-top: 40px; }

  /* App windows: thinner frame, so the demo gets the width. */
  .app-window { border-radius: 14px; }
  .app-window-body { padding: 14px; }
  .app-window-bar { padding: 8px 12px; }

  /* Pipeline: the whole board at once, laid out as on a desktop and shrunk
     to the window's width (--board-zoom is set by index.html's script). */
  [data-showcase="board"] > * { width: 720px; zoom: var(--board-zoom, 0.45); }
  .app-window-clamp.app-window-board { max-height: none; -webkit-mask-image: none; mask-image: none; }
  /* "Changez la vue !" moved right, onto the switch at the window's center. */
  .hero-shot .try-me { margin-left: 28%; }
  /* The Tableau view without Contact and Sujet, so it fits whole too. */
  [data-showcase="board"] table :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none; }

  /* Inter panel: full height and real size, no scroll box inside the page. */
  [data-showcase="interPanel"] > * { zoom: 1; }
  [data-showcase="interPanel"] .h-\[640px\] { height: auto; }
  [data-showcase="interPanel"] aside { overflow: visible; }
  /* Its header is sticky in the app; with no scroll box around it, it would
     stick to the screen over the site's header. */
  [data-showcase="interPanel"] aside > .sticky { position: static; }
  [data-showcase="interPanel"] aside > div { padding-inline: 2px; }
  [data-showcase="interPanel"] aside > .sticky .truncate { white-space: normal; font-size: 22px; line-height: 1.2; }

  /* Funding frises: the frise gets the full width, "Valider" goes under it. */
  [data-showcase="funding"] .flex.items-center.gap-4 { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  [data-showcase="funding"] .flex.items-center.gap-4 > .min-w-0 { width: 100%; }
  [data-showcase="funding"] .justify-between.text-\[13px\] { font-size: 11.5px; gap: 6px; }
  [data-showcase="funding"] .justify-between.text-\[13px\] > span { white-space: nowrap; }
  .try-me-under { padding: 0 14px 12px 20px; margin-top: -6px; }
  .try-me-under svg { width: 64px; height: 48px; }
  .try-me-under span { font-size: 24px; margin-bottom: 4px; }

  /* Relance fiche: the three call buttons wrap and share the width. */
  [data-showcase="relanceFiche"] .mt-3.justify-between,
  [data-showcase="relanceFiche"] .mt-3.justify-between .flex-wrap { flex-wrap: wrap; }
  [data-showcase="relanceFiche"] .mt-3.justify-between > .flex-wrap { flex: 1 1 100%; }
  [data-showcase="relanceFiche"] .mt-3.justify-between button { flex: 1; width: auto; justify-content: center; }

  /* Réseau commercial: apporteur, profil and CA only, at full size; sorting still works. */
  [data-showcase="referrers"] > * { zoom: 1; }
  [data-showcase="referrers"] th:nth-child(n + 4),
  [data-showcase="referrers"] td:nth-child(n + 4) { display: none; }
  [data-showcase="referrers"] table { width: 100%; }

  /* Highlights rail: cards as tall as their content, smaller type. */
  .rail { margin-top: 28px; padding-top: 16px; }
  .rail-track { gap: 14px; }
  .rail-card { flex-basis: 86vw; min-height: 0; padding: 24px 22px 22px; }
  .rail-figure { font-size: 44px; }
  .rail-title { font-size: 21px; margin-top: 12px; }
  .mini-fiche { margin: 18px 0; }
  .rail-nav { margin-top: 20px; }
  .rail-nav button { width: 52px; height: 52px; }

  /* Trust: four compact cards. */
  .trust { gap: 8px; margin-top: 24px; }
  .trust div { padding: 14px 16px; }
  .trust p { margin-top: 2px; font-size: 13.5px; line-height: 1.5; }

  /* CTA: full-width buttons, easy to hit with a thumb. */
  .cta { margin: 48px 0; padding: 40px 20px; border-radius: 20px; }
  .cta-actions { flex-direction: column; }
  .cta .cta-actions .btn { padding: 14px 18px; }

  .footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Blog (pages built by scripts/build-blog.mjs from content/blog/*.md). */
.blog-page { padding-top: 64px; }
.post-list { display: grid; gap: 20px; margin: 40px auto 0; max-width: 960px; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; border: 2px solid var(--ink-100); background: #fff; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.post-card:hover { border-color: var(--ink-200); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.post-card h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.post-card-category { margin: 0; font-size: 13px; font-weight: 700; color: var(--brand-700); }
.post-card-description { margin: 0; color: var(--ink-500); }
.post-card .article-meta { margin-top: auto; padding-top: 6px; }
.article { padding-top: 48px; background: #fff; }
.article-wrap { max-width: 760px; }
.article-back { font-size: 14px; font-weight: 600; color: var(--ink-500); text-decoration: none; }
.article-back:hover { color: var(--ink-900); }
.article-header { margin-top: 28px; }
.article-header h1 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; font-weight: 800; }
.article-lead { margin: 18px 0 0; font-size: 20px; line-height: 1.55; color: var(--ink-500); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 0; font-size: 14px; color: var(--ink-400); }
.article-meta span + span::before { content: "·"; margin-right: 14px; }
.article-toc { margin-top: 36px; padding: 20px 24px; border-radius: 16px; background: var(--ink-50); }
.article-toc p { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); }
.article-toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.article-toc a { color: var(--ink-700); text-decoration: none; font-weight: 500; }
.article-toc a:hover { color: var(--brand-700); }
.prose { margin-top: 40px; font-size: 18px; line-height: 1.75; color: var(--ink-700); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 0; }
.prose h2 { margin-top: 2.2em; font-size: 28px; font-weight: 800; line-height: 1.25; scroll-margin-top: 88px; }
.prose h3 { margin-top: 1.8em; font-size: 21px; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--ink-950); }
.prose a { color: var(--brand-700); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-300); }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 3px solid var(--brand-200); color: var(--ink-500); font-style: italic; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--ink-50); font-size: 0.9em; }
.prose img { display: block; max-width: 100%; border-radius: 16px; border: 1px solid var(--ink-100); }
.prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--ink-100); }
.callout { margin-left: 0; margin-right: 0; padding: 20px 24px; border-radius: 16px; background: var(--brand-50); color: var(--ink-800); }
.callout p { margin: 0; }
.callout .callout-title { margin-bottom: 4px; font-family: var(--display); font-weight: 800; color: var(--brand-700); }

/* Legal pages (site/<slug>/, built by scripts/build-legal.tsx): the app's
   documents, set smaller than a blog article. */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.legal-tabs a { color: var(--ink-500); text-decoration: none; }
.legal-tabs a:hover { color: var(--ink-900); text-decoration: underline; }
.legal-tabs a[aria-current="page"] { color: var(--ink-900); font-weight: 700; }
.legal .article-header h1 { font-size: clamp(28px, 4vw, 38px); }
.legal .prose { font-size: 16px; line-height: 1.7; }
.legal .prose h2 { margin-top: 1.8em; font-size: 20px; font-weight: 700; }
.prose mark { padding: 0 4px; border-radius: 4px; background: #fef3c7; color: #78350f; }

/* Contact: the form in a card, its fields as the waiting list's. */
.contact-card { max-width: 640px; margin: 32px auto 0; padding: 28px; border: 1px solid var(--ink-100); border-radius: 16px; background: #fff; }
.contact-form { display: grid; gap: 14px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.contact-required { color: var(--ink-400); }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ink-200); font: inherit; font-size: 15px; font-weight: 400; color: var(--ink-900); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: transparent; }
.contact-form .contact-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink-500); }
.contact-consent input { margin-top: 3px; }
.contact-consent a { color: inherit; }
.contact-error { margin: 0; font-size: 14px; color: var(--red-700); }
.contact-error:empty { display: none; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: 0.6; cursor: progress; }
.contact-done { text-align: center; }
.contact-done h3 { margin: 0; font-size: 20px; }
.contact-done p { margin: 8px 0 0; color: var(--ink-500); overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-card { padding: 20px 16px; } .contact-grid { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--ink-50); border: 1px solid var(--ink-100); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--ink-400); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 16px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-500); }

/* ---------- Hero headline A/B test (see index.html's head) ---------- */

/* Version a by default, so the page reads right without JavaScript. */
.ab-hero-b { display: none; }
html[data-hero-headline="b"] .ab-hero-b { display: inline; }
html[data-hero-headline="b"] .ab-hero-a { display: none; }

/* ---------- Consent banner (measure.js) ---------- */

.consent {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-pop);
  font-size: 14px; color: var(--ink-600);
}
.consent p { margin: 0; }
.consent a { color: inherit; }
/* Accepter and Refuser look the same and weigh the same (CNIL). */
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.footer-consent { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-consent:hover { color: var(--ink-700); text-decoration: underline; }
