/* TranscriPilote — site de l'éditeur MikeDns Labs.
   Esprit des grands éditeurs de logiciels : barre d'éditeur, bandeau d'ouverture sombre, tuiles, schéma.
   Les illustrations sont dessinées en HTML et CSS (nettes à toutes les tailles) ; les vraies captures,
   en pleine résolution, ont leur page. */

:root {
  --paper: #ffffff;
  --surface: #f4f5f9;
  --ink: #141833;
  --ink-2: #474d66;
  --ink-3: #6b7187;
  --line: #e1e3eb;
  --line-strong: #c9ccd9;
  --card: #ffffff;
  --header: #ffffff;
  color-scheme: light;
  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --accent-soft: #eef0ff;
  --night: #0e1030;
  --night-2: #171a45;
  --night-line: rgba(255,255,255,.12);
  --on-night: #e4e6ff;
  --on-night-2: #a9aed6;
  --violet: #8b7cf6;
  --coral: #f08a9a;

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --narrow: 780px;
  --gutter: 24px;
}

/* Thème sombre : celui de Windows par défaut, ou choisi avec le bouton de la barre du haut. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0d24;
    --surface: #12153a;
    --card: #161a44;
    --header: #0f1230;
    --ink: #eef0ff;
    --ink-2: #c3c7e6;
    --ink-3: #959ac2;
    --line: rgba(255,255,255,.11);
    --line-strong: rgba(255,255,255,.28);
    --accent: #6d63f0;
    --accent-ink: #b9b2ff;
    --accent-soft: rgba(124,108,240,.18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0d24;
  --surface: #12153a;
  --card: #161a44;
  --header: #0f1230;
  --ink: #eef0ff;
  --ink-2: #c3c7e6;
  --ink-3: #959ac2;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.28);
  --accent: #6d63f0;
  --accent-ink: #b9b2ff;
  --accent-soft: rgba(124,108,240,.18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; border-radius: 4px; }
code { font: .9em/1 Consolas, "Cascadia Mono", monospace; background: var(--surface); padding: 2px 6px; border-radius: 5px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--font);
  padding: 11px 18px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-lg { font-size: 16px; padding: 15px 24px; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-light { color: #fff; text-decoration: underline; }
.link-light:hover { color: var(--on-night); }

/* ---------- Barre de l'éditeur et en-tête ---------- */
.topbar { background: var(--night); color: var(--on-night-2); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar-brand { color: #fff; font-weight: 600; letter-spacing: .01em; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: var(--on-night-2); text-decoration: none; }
.topbar-links a:hover { color: #fff; }
.lang-switch { display: inline-flex; gap: 2px; border-left: 1px solid var(--night-line); padding-left: 16px; }
.lang-switch a, .lang-switch span { padding: 3px 8px; border-radius: 4px; text-decoration: none; color: var(--on-night-2); }
.lang-switch span[aria-current] { color: #fff; background: rgba(255,255,255,.1); }
.lang-switch a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font: 650 19px/1 var(--font-display); letter-spacing: -0.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; height: 100%; }
.site-nav > a:not(.btn) { position: relative; display: flex; align-items: center; height: 100%; color: var(--ink-2); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 0 12px; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-nav > a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: 600; }
.site-nav > a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.site-nav .btn { margin-left: 12px; padding: 10px 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Bandeau d'ouverture ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-night); padding: 80px 0 120px;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(124,108,240,.35), transparent 60%),
    radial-gradient(700px 480px at 10% 110%, rgba(240,138,154,.18), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 64px; align-items: center; }
.hero-kicker { font-size: 15px; font-weight: 600; color: #c7c2ff; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-top: 20px; max-width: 36em; }
.hero .lead { color: var(--on-night-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.meta { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.hero .meta { color: var(--on-night-2); }
.downloads-count { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* Quatre points clés, posés à cheval sur le bandeau */
.facts { list-style: none; margin: -64px 0 0; padding: 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px -24px rgba(14,16,48,.35); }
.facts li { display: flex; gap: 14px; padding: 26px 24px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.facts strong { display: block; font: 650 16px/1.3 var(--font-display); }
.facts span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0 96px; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }

/* Tuiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: 0 14px 36px -20px rgba(14,16,48,.35); }
.tile-art { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); padding: 22px; height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile-art .mini { font-size: 12.5px; }
.tile-art .mini-transcript p:nth-child(n+4), .tile-art .mini-summary ul li:nth-child(n+2) { display: none; }
.tile-art .mini-summary { padding: 10px 14px; }
.tile-art .mini-summary ul { margin-bottom: 6px; }
.tile-text { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile h3 { font-size: 19px; line-height: 1.3; font-weight: 650; }
.tile-text p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; flex: 1; }
.tile-link { margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.tile:hover .tile-link { text-decoration: underline; }

/* Confidentialité */
.band { background: var(--night); color: var(--on-night); padding: 96px 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.band h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.band p { font-size: 18px; }
.band ul + p { margin-top: 22px; }
ul.plain { margin: 18px 0 0; padding-left: 1.2em; }
ul.plain li { margin: 6px 0; }
.band ul.plain li::marker { color: var(--violet); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 650 15px/1.3 var(--font-display); color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.compare thead th.us { color: var(--accent-ink); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 38%; }
.compare td.us { font-weight: 600; color: var(--ink); background: var(--accent-soft); }

.promo { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.promo h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; font-weight: 700; }
.promo p { color: var(--ink-2); margin-top: 8px; max-width: 46em; }

.cta-band { background: var(--accent); color: #fff; padding: 72px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; font-weight: 700; }
.cta-band p { color: #e0e3ff; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--accent-ink); }
.cta-band .meta, .cta-band .downloads-count { color: #d6d9ff; }
.closing-cta { text-align: right; }

/* ---------- Pages intérieures ---------- */
.page-head { padding: 72px 0 28px; }
.page-head h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.page-head-dark { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding: 72px 0 64px; }
.page-head-dark h1 { color: #fff; }
.page-head-dark .lead { color: var(--on-night-2); }
.download-head { text-align: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.download-head .app-icon { margin: 0 auto 22px; }
.download-head .lead { margin-left: auto; margin-right: auto; }
.download-head .cta { justify-content: center; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 24px; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-art { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); border-radius: 12px; min-height: 300px; padding: 36px;
  display: flex; align-items: center; justify-content: center; }
.feature-solo { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.feature h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.feature p { color: var(--ink-2); margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.beta { display: inline-block; font-size: 12px; font-weight: 600; color: #8a4b00; background: #fff3dc; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }

/* Captures en pleine résolution : une par ligne, à leur taille réelle. */
.shots { display: flex; flex-direction: column; gap: 72px; }
.screenshot { margin: 0; }
.screenshot figcaption { max-width: 760px; margin-bottom: 20px; }
.screenshot h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.screenshot p { color: var(--ink-2); margin-top: 6px; }
.screenshot a { display: block; max-width: 1280px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(14,16,48,.45); }
.screenshot img { width: 100%; }

.h-sm { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 48px 0 18px; letter-spacing: -0.01em; }
.h-sm:first-child { margin-top: 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { font-size: 17px; font-weight: 650; line-height: 32px; }
.steps p { color: var(--ink-2); }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; width: 40%; padding-right: 20px; }
.specs td { color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 17px/1.4 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; max-width: 64ch; }

.prose h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; }
.prose li { margin: 6px 0; }
.updated { font-size: 14px; color: var(--ink-3); }

/* Nouveautés (construites par site.js) */
#releases { display: flex; flex-direction: column; }
.card.release { padding: 32px 0; border-bottom: 1px solid var(--line); }
.card.release:first-child { padding-top: 8px; }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; }
.release-latest { font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.older-link { padding: 28px 0 0; font-weight: 600; }
.release-dl { margin-left: auto; padding: 8px 14px; font-size: 14px; }
.release-notes { margin-top: 14px; color: var(--ink-2); }
.release-notes h4 { font: 650 16px/1.3 var(--font-display); color: var(--ink); margin: 20px 0 6px; }
.release-notes ul { margin: 6px 0; padding-left: 1.2em; }
.release-notes ul ul { margin: 4px 0; }
.release-notes li { margin: 5px 0; }
.release-notes p { margin: 8px 0; }
.card.older-releases { padding: 32px 0; }
.older-releases h2 { font-size: 20px; font-weight: 700; }
.older-releases p { color: var(--ink-2); margin-top: 6px; }
.older-releases ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 24px; }
.older-releases li { display: flex; gap: 10px; align-items: baseline; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-about p { color: var(--ink-2); margin-top: 14px; max-width: 34ch; }
.footer-col h2 { font: 650 14px/1.3 var(--font-display); color: var(--ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* ======================================================================
   Illustrations (site/illustrations.py) : fond nuit, traits clairs.
   ====================================================================== */
.ill { position: relative; }
.sk { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); margin: 7px 0; }
.sk-strong { background: rgba(255,255,255,.32); margin: 0; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--coral); }
.wave i.off { background: rgba(255,255,255,.18); }
.wave-lg { height: 64px; gap: 4px; }

.ill-app { display: flex; gap: 22px; align-items: center; }
.ill-window { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-radius: 14px; padding: 16px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.ill-chrome { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ill-chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ill-chrome .sk { margin: 0 auto; }
.ill-recbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); }
.rec { width: 20px; height: 20px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.22); flex: none; }
.clock { font: 600 14px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.ill-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 14px; }
.ill-row { display: flex; gap: 10px; padding: 10px 4px; }
.ill-row + .ill-row { border-top: 1px solid var(--night-line); }
.ill-row .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 3px; flex: none; }
.ill-row > div { flex: 1; }
.ill-meta { display: flex; align-items: center; gap: 10px; }
.time { font-size: 11.5px; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.ill-panel { background: rgba(124,108,240,.16); border: 1px solid rgba(139,124,246,.4); border-radius: 10px; padding: 12px 14px; }
.ill-h { font: 650 13px/1.2 var(--font-display); color: #fff; margin: 4px 0 8px; }
.ill-panel .ill-h + .sk { margin-top: 0; }
.ill-panel .sk + .ill-h { margin-top: 14px; }
.ill-check { height: 9px; margin: 9px 0 9px 18px; border-radius: 4px; background: rgba(255,255,255,.16); position: relative; }
.ill-check::before { content: ""; position: absolute; left: -18px; top: -2px; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.45); }
.ill-check.on::before { background: #3ddc84; border-color: #3ddc84; }
.ill-pill { display: inline-block; margin-top: 10px; font-size: 11.5px; color: #e4e1ff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 10px; }
.ill-badges { display: flex; flex-direction: column; gap: 10px; }
.ill-badges span { font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--night-line); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }

/* Petites illustrations */
.mini { width: 100%; max-width: 420px; color: var(--on-night); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--night-line); border-radius: 6px; padding: 6px 10px; }
.mini-transcript p { display: flex; gap: 12px; padding: 7px 0; color: var(--on-night); line-height: 1.4; }
.mini-transcript p + p { border-top: 1px solid var(--night-line); }
.mini-transcript .time { flex: none; padding-top: 1px; }
.mini-summary { background: rgba(124,108,240,.14); border: 1px solid rgba(139,124,246,.4); border-radius: 10px; padding: 14px 16px; }
.mini-summary ul { margin: 0 0 12px; padding-left: 1.1em; }
.mini-summary li { margin: 3px 0; }
.mini-summary li::marker { color: var(--violet); }
.todo { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.box { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.5); flex: none; }
.box.on { background: #3ddc84; border-color: #3ddc84; }
.mini-chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: rgba(255,255,255,.1); color: #fff; border: 1px solid var(--night-line); border-bottom-left-radius: 4px; }
.trim-sel { position: relative; padding: 10px 0; }
.trim-sel .handle { position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: #f5a623; }
.trim-label { margin-top: 12px; color: var(--on-night-2); }
.trim-label b { color: #fff; font-variant-numeric: tabular-nums; }
.mini-dict .field { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(139,124,246,.6); border-radius: 8px; padding: 12px 48px 12px 14px; color: #fff; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #fff; vertical-align: -3px; margin-left: 1px; }
.mic { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(79,70,229,.3); }
.mic::before { content: ""; position: absolute; left: 11px; top: 7px; width: 8px; height: 12px; border-radius: 4px; background: #fff; }
.mini-dict .hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--on-night-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.mini-export { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.file { width: 72px; height: 88px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--night-line); position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.file::before { content: ""; position: absolute; top: 14px; left: 14px; right: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); box-shadow: 0 12px 0 rgba(255,255,255,.12), 0 24px 0 rgba(255,255,255,.12); }
.file b { font-size: 13px; color: #fff; }

/* Schéma « comment ça marche » (SVG) */
.ill-flow { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); border-radius: 14px; padding: 40px; }
.ill-flow svg { display: block; width: 100%; height: auto; }
.ill-flow .fl { fill: none; stroke: rgba(139,124,246,.6); stroke-width: 1.6; }
.ill-flow .fb { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.16); }
.ill-flow .fb-out { stroke: rgba(139,124,246,.6); }
.ill-flow .fc { fill: #12143a; stroke: rgba(139,124,246,.8); stroke-width: 1.5; }
.ill-flow text { fill: #fff; font: 600 16px var(--font); text-anchor: middle; }
.ill-flow .fc-name { font: 650 17px var(--font-display); }
.ill-flow .fc-sub { fill: #3ddc84; font-size: 13.5px; }
.flow-list { display: none; color: #fff; }
.flow-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flow-list li { font-size: 14px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid var(--night-line); border-radius: 8px; padding: 8px 12px; }
.flow-mid { margin: 16px 0; font-weight: 650; color: #3ddc84; }

/* ---------- Questionnaire après téléchargement (site.js) ---------- */
.feedback { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(400px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; box-shadow: 0 24px 60px -16px rgba(14,16,48,.35); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.feedback.open { opacity: 1; transform: none; }
.feedback h2 { font-size: 18px; font-weight: 700; }
.feedback-intro { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.fb-field { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.fb-field label { font-size: 14px; font-weight: 600; }
.fb-field select, .fb-field input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.fb-actions { display: flex; gap: 10px; margin-top: 18px; }
.fb-status { font-size: 14px; color: var(--ink-2); margin-top: 10px; min-height: 1em; }
@media (prefers-reduced-motion: reduce) { .feedback { transition: none; } }

/* ---------- Écrans étroits ---------- */
@media (max-width: 1080px) {
  .hero-grid, .feature, .feature:nth-child(even), .band-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .topbar-links > a { display: none; }
  .lang-switch { border-left: 0; padding-left: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 4px; height: auto; border-bottom: 1px solid var(--line); }
  .site-nav > a[aria-current="page"]:not(.btn)::after { display: none; }
  .site-nav .btn { margin: 14px 0 0; }
  .ill-flow { padding: 24px; }
  .ill-flow svg { display: none; }
  .flow-list { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 48px 0 104px; }
  .lead { font-size: 17px; }
  .ill-app { flex-direction: column; align-items: stretch; }
  .ill-body { grid-template-columns: minmax(0, 1fr); }
  .ill-badges { flex-direction: row; flex-wrap: wrap; }
  .facts, .tiles { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .section, .band { padding: 64px 0; }
  .closing-cta { text-align: left; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { width: 100%; }
  .feature-art { padding: 24px; min-height: 0; }
}

/* Ajustements du thème sombre */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--on-night-2); font: inherit; cursor: pointer; padding: 3px 6px; border-radius: 4px; }
.theme-toggle:hover { color: #fff; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}
:root[data-theme="dark"] .beta { color: #f5b041; background: rgba(245,176,65,.14); }
:root[data-theme="dark"] .cta-band .btn-primary, :root[data-theme="dark"] .cta-band .btn-primary:hover { color: #3730a3; }
:root[data-theme="dark"] .compare thead th { border-bottom-color: var(--ink-3); }
:root[data-theme="dark"] .note, :root[data-theme="dark"] .facts { box-shadow: none; }
:root[data-theme="dark"] .section-alt .ill-flow, :root[data-theme="dark"] .tile-art, :root[data-theme="dark"] .feature-art { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .beta { color: #f5b041; background: rgba(245,176,65,.14); }
  :root:not([data-theme="light"]) .cta-band .btn-primary, :root:not([data-theme="light"]) .cta-band .btn-primary:hover { color: #3730a3; }
  :root:not([data-theme="light"]) .compare thead th { border-bottom-color: var(--ink-3); }
  :root:not([data-theme="light"]) .facts { box-shadow: none; }
  :root:not([data-theme="light"]) .tile-art, :root:not([data-theme="light"]) .feature-art, :root:not([data-theme="light"]) .ill-flow { border: 1px solid var(--line); }
}
