/* Site vitrine TechVoice. Mêmes jetons que l'application (web/src/ui/tokens.css) : indigo → violet,
   neutres froids, Inter. Contrastes texte AA (>= 4.5:1) sur fonds clairs et sur le dégradé. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f8fc;
  --bg-tint: #f1f2f9;
  --surface: #ffffff;
  --text: #1c2033;
  --text-muted: #5d6378;
  --border: #e6e8f0;
  --border-strong: #d3d6e2;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-2: #7c3aed;
  --accent-soft: #eef0fe;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --accent-gradient-soft: linear-gradient(135deg, #eef0fe 0%, #f4ecfe 100%);
  --danger: #c4262e;
  --danger-soft: #fdeeee;
  --warning: #9a5000;
  --warning-soft: #fff3e0;
  --success: #157a43;
  --success-soft: #e6f6ec;
  --focus-ring: #6366f1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 54, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 24, 54, 0.04), 0 8px 20px -6px rgba(20, 24, 54, 0.12), 0 0 0 1px rgba(20, 24, 54, 0.04);
  --shadow-lg: 0 2px 6px rgba(20, 24, 54, 0.05), 0 24px 48px -12px rgba(20, 24, 54, 0.22), 0 0 0 1px rgba(20, 24, 54, 0.05);
  --shadow-accent: 0 8px 20px -8px rgba(79, 70, 229, 0.7);

  --font-sans: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 64px;

  color-scheme: light;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(79, 70, 229, 0.18); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.wrap-article { max-width: calc(740px + 2 * var(--gutter)); }
.muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--text); color: #fff; font-weight: 600; text-decoration: none; transition: top 120ms;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 15px;
  font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 160ms, box-shadow 160ms, transform 160ms, color 160ms, border-color 160ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-gradient-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #b9bdd0; color: var(--text); background: #fbfbfe; }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(40, 44, 92, 0.055); }
.btn-light { background: #fff; color: var(--accent-strong); box-shadow: 0 10px 24px -10px rgba(20, 24, 54, 0.5); }
.btn-light:hover { background: #f4f3ff; color: var(--accent-strong); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

.when-signed-in { display: none !important; }
.is-signed-in .when-signed-in { display: inline-flex !important; }
.is-signed-in .when-signed-out { display: none !important; }

/* Bandeau d'accès anticipé (langues où la dictée n'existe pas encore) */
.early-banner { background: var(--accent-gradient-soft); border-bottom: 1px solid #dfe1fb; color: var(--accent-strong); font-size: 14px; }
.early-banner p { padding: 9px 0; text-align: center; }
.early-banner .icon { display: inline-block; margin-right: 8px; vertical-align: -3px; }
.early-banner a { font-weight: 600; color: var(--accent-strong); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 248, 252, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(214, 217, 230, 0.7);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent);
}
.brand-mark-lg { width: 44px; height: 44px; border-radius: 13px; }
.brand-mark-lg svg { width: 22px; height: 22px; }
.site-nav { display: flex; gap: 4px; margin-right: auto; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: rgba(40, 44, 92, 0.055); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang-switch, .mobile-menu { position: relative; }
.lang-switch summary, .mobile-menu summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; border-radius: 10px;
  color: var(--text-muted); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; user-select: none;
}
.lang-switch summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .mobile-menu summary:hover, details[open] > summary { color: var(--text); background: rgba(40, 44, 92, 0.055); }
.lang-switch[open] summary .icon:last-child { transform: rotate(180deg); }
.lang-menu, .mobile-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px; padding: 6px;
  list-style: none; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.lang-menu a, .mobile-panel > a:not(.btn) {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 15px; text-decoration: none;
}
.lang-menu a:hover, .mobile-panel > a:not(.btn):hover { background: var(--accent-soft); color: var(--accent-strong); }
.lang-menu a[aria-current] { color: var(--accent-strong); font-weight: 650; background: var(--accent-soft); }
.mobile-menu { display: none; }
.mobile-panel { display: flex; flex-direction: column; gap: 2px; width: min(300px, calc(100vw - 32px)); padding: 10px; }
.mobile-panel .btn { margin-top: 6px; }

/* Hero */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 237, 0.13), transparent 60%),
    radial-gradient(50rem 28rem at 10% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 12px 6px 10px;
  border: 1px solid #dfe1fb; border-radius: 999px; background: rgba(255, 255, 255, 0.75);
  color: var(--accent-strong); font-size: 14px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); font-weight: 760; line-height: 1.06; letter-spacing: -0.035em; }
.hero h1 em, .hero h1 strong {
  font-style: normal; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 20px; color: var(--text-muted); font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions-center { justify-content: center; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.hero-note .icon { color: var(--success); }

/* Maquette de dictée */
.demo { position: relative; margin: 0; }
.demo-window { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: #fbfbfe; }
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfea; }
.demo-title { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.demo-body { padding: 26px 26px 22px; }
.demo-text { font-size: 18px; line-height: 1.7; color: var(--text); }
.demo-fix { white-space: nowrap; }
.demo-fix del {
  color: var(--danger); text-decoration: line-through 2px; text-decoration-color: rgba(196, 38, 46, 0.7);
  background: var(--danger-soft); border-radius: 4px; padding: 0 3px; margin-right: 4px;
  animation: tv-strike 700ms 900ms both;
}
.demo-fix ins {
  text-decoration: none; color: var(--success); background: var(--success-soft); border-radius: 4px; padding: 0 3px; font-weight: 600;
  animation: tv-pop 500ms 1500ms both var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.demo-next { color: var(--text-muted); animation: tv-fade 600ms 2300ms both; }
.demo-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: tv-blink 1s steps(1) infinite; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip-accent { background: var(--accent-soft); color: var(--accent-strong); animation: tv-rise 500ms 1900ms both; }
.chip-success { background: var(--success-soft); color: var(--success); animation: tv-rise 500ms 2500ms both; }
.demo-dock { display: flex; align-items: center; gap: 12px; padding: 14px 18px 24px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; }
.demo-rec { width: 10px; height: 10px; border-radius: 50%; background: #ff5a63; box-shadow: 0 0 0 4px rgba(255, 90, 99, 0.25); animation: tv-pulse 1.6s ease-in-out infinite; }
.demo-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-left: auto; }
.demo-wave i { width: 3px; height: 30%; border-radius: 2px; background: linear-gradient(#a5b4fc, #c4b5fd); animation: tv-wave 1.1s ease-in-out infinite; }
.demo-wave i:nth-child(3n) { animation-delay: -0.3s; }
.demo-wave i:nth-child(3n + 1) { animation-delay: -0.55s; }
.demo-wave i:nth-child(4n) { animation-delay: -0.8s; }
.demo-wave i:nth-child(5n) { animation-delay: -0.15s; }
.demo-time { font-variant-numeric: tabular-nums; color: #c7cbe0; }
/* Carte « vocabulaire » : déborde du coin bas gauche de la fenêtre, sans cacher le bandeau. */
.demo-vocab {
  position: relative; z-index: 1; width: min(330px, 80%); margin: -14px 0 0 -28px; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: tv-rise 600ms 400ms both;
}
.demo-vocab p { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-vocab ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.demo-vocab li { padding: 4px 9px; border-radius: 7px; background: var(--accent-gradient-soft); color: var(--accent-strong); font-size: 13px; font-weight: 600; }

@keyframes tv-strike { from { color: var(--text); text-decoration-color: transparent; background: transparent; } }
@keyframes tv-pop { from { opacity: 0; transform: translateY(4px) scale(0.96); } }
@keyframes tv-fade { from { opacity: 0; } }
@keyframes tv-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes tv-blink { 50% { opacity: 0; } }
@keyframes tv-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 90, 99, 0.08); } }
@keyframes tv-wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.demo-fix ins { display: inline-block; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 48px 0 96px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .split-head h2, .section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 740; letter-spacing: -0.03em; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.12rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; text-align: left; margin-bottom: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform 160ms; }
.link-arrow:hover .icon { transform: translateX(3px); }

.pastille {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-gradient-soft); color: var(--accent-strong);
}
.pastille-strong { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff; font-weight: 700; box-shadow: var(--shadow-accent);
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 47px; right: -25px; width: 26px; height: 2px;
  background: linear-gradient(90deg, #c7c9f7, #ddd0fb);
}
.step h3, .card h3, .feature-list h3 { font-size: 1.1rem; font-weight: 680; letter-spacing: -0.01em; }
.step p, .card p, .feature-list p { margin-top: 8px; color: var(--text-muted); }

/* Cartes */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.section-alt .card { background: #fbfbfe; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dcdff0; }
.card .pastille { margin-bottom: 18px; }
.card-compact { padding: 22px; }
.card-compact h3 { font-size: 1.02rem; }
.card-compact p { font-size: 0.95rem; }
.card-wide { display: flex; align-items: flex-start; gap: 20px; margin-top: 20px; background: var(--accent-gradient-soft) !important; border-color: #e0e2fb; }
.card-wide .pastille { margin: 0; }

/* Liste à icônes (fidélité, confidentialité) */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 32px); }
.split-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.12rem; }
.split-head p.muted { font-size: 1rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; list-style: none; }
.feature-list li { display: flex; flex-direction: column; gap: 14px; }
.feature-list-tight { gap: 24px 28px; }
.eu-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-accent); }

.notice {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: #2e2a7a; font-size: 0.95rem;
}
.notice .icon { margin-top: 2px; color: var(--accent); }
.notice-warning { background: var(--warning-soft); color: #5c3300; }
.notice-warning .icon { color: var(--warning); }
.notice a { color: inherit; font-weight: 600; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column; padding: 30px 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.plan-featured {
  border: 2px solid transparent; box-shadow: var(--shadow-md);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--accent-gradient) border-box;
}
.plan-name { font-size: 1.15rem; font-weight: 700; }
.plan-tagline { margin-top: 4px; color: var(--text-muted); font-size: 0.95rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 20px; }
.plan-amount { font-size: 2.6rem; font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
.plan-period { color: var(--text-muted); font-weight: 500; }
.plan-facts { display: grid; gap: 10px; margin-bottom: 26px; list-style: none; flex: 1; }
.plan-facts li { display: flex; align-items: flex-start; gap: 10px; }
.plan-facts .icon { margin-top: 4px; color: var(--accent); }
.included { max-width: 1000px; margin: 40px auto 0; padding: 24px 28px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.included-title { margin-bottom: 14px; font-weight: 700; }
.included ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; list-style: none; }
.included li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); }
.included .icon { margin-top: 4px; color: var(--success); }
.footnote { max-width: 1000px; margin: 20px auto 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
.faq-item summary .icon { color: var(--text-muted); transition: transform 200ms; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover h3 { color: var(--accent-strong); }
.faq-answer { padding: 0 4px 24px; color: var(--text-muted); max-width: 68ch; }

/* Articles en cartes */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.section-alt .post-card { background: #fbfbfe; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dcdff0; }
.post-card h3 { font-size: 1.15rem; font-weight: 690; line-height: 1.3; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.post-card h3 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.post-card p:not(.post-meta) { color: var(--text-muted); font-size: 0.97rem; }
.post-meta { color: var(--text-muted); font-size: 0.85rem; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Bandeau d'appel final */
.cta-band { padding: 0 0 96px; }
.section-alt + .cta-band { padding-top: 96px; }
.cta-inner {
  position: relative; overflow: hidden; padding: 64px 40px; border-radius: 28px; text-align: center; color: #fff;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--accent-gradient);
  box-shadow: 0 30px 60px -30px rgba(79, 70, 229, 0.8);
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 760; letter-spacing: -0.03em; }
.cta-inner p { max-width: 560px; margin: 14px auto 28px; color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.cta-inner a:not(.btn) { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Pages intérieures */
.page-hero { padding: 56px 0 24px; background: radial-gradient(50rem 22rem at 80% -20%, rgba(124, 58, 237, 0.1), transparent 60%), var(--bg); }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 760; letter-spacing: -0.035em; }
.page-hero-center { padding: 96px 0 120px; text-align: center; }
.page-hero-center .lead { margin-inline: auto; }
.error-code { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; color: var(--text-muted); font-size: 14px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: '/'; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }
.breadcrumb [aria-current] > span { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Article */
.article-head { padding: 48px 0 40px; background: radial-gradient(50rem 22rem at 80% -20%, rgba(124, 58, 237, 0.1), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.article-head h1 { margin-top: 22px; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.12; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; color: var(--text-muted); font-size: 14px; }
.toc { margin: 40px 0 8px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.toc-title { margin-bottom: 10px; color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ol { display: grid; gap: 6px; padding-left: 20px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-strong); text-decoration: underline; }

.prose { padding: 16px 0 8px; font-size: 1.075rem; line-height: 1.75; color: #262b40; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; }
.prose h3 { margin-top: 1.8em; font-size: 1.22rem; font-weight: 680; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 680; }
.prose a { font-weight: 550; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-tint); color: var(--text); font-weight: 650; border-bottom: 1px solid var(--border-strong); }
.prose tbody tr:hover { background: #fafbfe; }
.prose th:empty { background: transparent; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* Schéma de la chaîne (article sur le fonctionnement) */
.pipeline ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; counter-reset: none; }
.pipeline li {
  position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); font-size: 0.86rem; line-height: 1.4;
}
.pipeline li + li { margin-top: 0; }
.pipeline li:not(:last-child)::after {
  content: ''; position: absolute; right: -9px; top: 50%; z-index: 1; width: 8px; height: 8px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg);
}
.pipeline li strong { font-size: 0.95rem; }
.pipeline li span:not(.pipeline-num) { color: var(--text-muted); }
.pipeline-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-gradient); color: #fff; font-size: 12px; font-weight: 700; }
.pipeline li:last-child { background: var(--accent-gradient-soft); border-color: #dfe1fb; }

/* Calculateur (article sur le gain de temps) */
.calc { margin: 2em 0; padding: 26px; background: var(--accent-gradient-soft); border: 1px solid #dfe1fb; border-radius: var(--radius-lg); }
.calc > * + * { margin-top: 0; }
.calc-title { margin: 0 0 16px; font-weight: 700; font-size: 1.1rem; }
.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.calc input {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.calc input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: transparent; }
.calc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 20px; }
.calc-result output { font-size: 2rem; font-weight: 760; letter-spacing: -0.02em; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-result span { color: var(--text-muted); }
.calc-note { margin-top: 10px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

.article-cta {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 56px 0 96px; padding: 40px 32px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.article-cta h2 { font-size: 1.5rem; font-weight: 720; letter-spacing: -0.02em; }
.article-cta p { max-width: 520px; color: var(--text-muted); }
.article-cta .btn { margin-top: 6px; }

/* Pied de page */
.site-footer { padding: 64px 0 32px; background: var(--bg-tint); border-top: 1px solid var(--border); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: var(--text-muted); }
.footer-brand .footer-made { font-size: 14px; }
.site-footer h2 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.site-footer nav ul { display: grid; gap: 9px; list-style: none; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-strong); color: var(--text-muted); font-size: 14px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; }
.footer-langs a { color: var(--text-muted); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--accent-strong); }
.footer-langs a[aria-current] { font-weight: 650; }


/* Accessibilité : texte réservé aux lecteurs d'écran. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Bandeau de confiance sous le hero */
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 64px; padding: 18px;
  list-style: none; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-gradient-soft); color: var(--accent-strong); }
.trust-label { display: block; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.trust-value { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* Vitrine de la mémoire */
.split-media { align-items: center; }
.point-list { display: grid; gap: 22px; margin-top: 30px; list-style: none; }
.point-list li { display: flex; align-items: flex-start; gap: 16px; }
.point-list h3 { font-size: 1.05rem; font-weight: 680; }
.point-list p { margin-top: 4px; color: var(--text-muted); font-size: 0.98rem; }
.memory-mock { margin: 0; overflow: hidden; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.memory-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; border-bottom: 1px solid var(--border); }
.memory-head .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.memory-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.memory-tabs span { flex: none; padding: 9px 12px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.memory-tabs .is-active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.memory-pairs { display: grid; gap: 10px; padding: 18px; list-style: none; }
.memory-pairs li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px;
  background: #fbfbfe; border: 1px solid var(--border); border-radius: var(--radius-md);
}
.memory-pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.memory-pair .icon { color: var(--text-muted); }
.memory-pair del { color: var(--danger); text-decoration-thickness: 2px; background: var(--danger-soft); border-radius: 5px; padding: 1px 6px; }
.memory-pair ins { color: var(--success); text-decoration: none; font-weight: 650; background: var(--success-soft); border-radius: 5px; padding: 1px 6px; }
.memory-applied { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.memory-applied .icon { color: var(--success); }

/* Comparatif */
.compare { width: 100%; max-width: 1000px; margin: 0 auto; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 14px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.compare thead th.is-us { color: var(--accent-strong); }
.compare tbody th { width: 24%; font-weight: 650; }
.compare td { color: var(--text-muted); }
.compare td.is-us { color: var(--text); font-weight: 600; background: var(--accent-soft); }
.compare thead th.is-us { background: var(--accent-soft); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.compare tbody tr:last-child td.is-us { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.compare td.is-us .icon { display: inline-block; margin-right: 6px; vertical-align: -3px; color: var(--success); }

/* Lien des cartes vers une page métier */
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; font-weight: 650; text-decoration: none; }
.card-link .icon { transition: transform 160ms; }
.card-link:hover .icon { transform: translateX(3px); }

/* « En bref » */
.facts { display: grid; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.fact { display: grid; grid-template-columns: minmax(130px, 0.32fr) 1fr; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 700; }
.fact dd { margin: 0; color: var(--text-muted); }

/* Pages métiers */
.hero-page { padding-bottom: 72px; }
.hero-page .breadcrumb { margin-bottom: 22px; }
.hero-page h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.chips-card { padding: 28px; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.chips-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 7px 12px; border-radius: 9px; background: var(--accent-gradient-soft); color: var(--accent-strong); font-size: 15px; font-weight: 600; }
.chips-foot { display: flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--success); font-size: 14px; font-weight: 600; }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Bouton d'action collant (téléphone) */
.sticky-cta { display: none; }

/* Adaptations */
@media (max-width: 1100px) {
  .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .hide-md { display: none !important; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .demo { max-width: 560px; margin-left: 24px; }
  .steps, .card-grid-3, .post-grid, .plans { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .plans { max-width: 640px; }
  .plan:first-child { grid-column: 1 / -1; }
  .pipeline ol { grid-template-columns: 1fr; gap: 12px; }
  .pipeline li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .pipeline li span:not(.pipeline-num) { flex-basis: 100%; padding-left: 34px; }
  .pipeline li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 58px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .header-inner { gap: 12px; }
  .hide-xs { display: none !important; }
  .brand { font-size: 17px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .demo { margin-left: 0; }
  .demo-body { padding: 20px; }
  .demo-text { font-size: 16px; }
  .demo-fix { white-space: normal; }
  .demo-vocab { width: auto; margin: 12px 0 0; }
  .steps, .card-grid-3, .card-grid-5, .post-grid, .plans, .feature-list, .included ul, .calc-fields { grid-template-columns: 1fr; }
  .plan:first-child { grid-column: auto; }
  .card-wide { flex-direction: column; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .cta-band { padding-bottom: 64px; }
  .section-alt + .cta-band { padding-top: 64px; }
  .cta-inner { padding: 44px 22px; border-radius: 20px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .early-banner { font-size: 13px; line-height: 1.5; }
  .early-banner p { padding: 8px 0; text-align: left; }
  .prose { font-size: 1.02rem; }
  .article-cta { padding: 32px 20px; }
  .breadcrumb [aria-current] > span { max-width: 26ch; }
}


/* Téléphone et tablette : cibles tactiles d'au moins 44 px, comparatif en cartes, barre collante. */
@media (max-width: 960px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .post-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Comparatif en cartes sur téléphone : clavier et dictée généraliste côte à côte, TechVoice dessous. */
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody { display: block; width: auto; }
  .compare tr {
    display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: 12px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--border); }
  .compare td { display: block; padding: 12px 16px; font-size: 14px; }
  .compare td:first-of-type { border-right: 1px solid var(--border); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
  .compare td.is-us { grid-column: 1 / -1; border-bottom: 0; }
  .compare td.is-us, .compare tbody tr:last-child td.is-us { border-radius: 0; }
  .compare td.is-us .icon { display: none; }
  .memory-tabs span { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 480px) {
  /* Sur téléphone, la maquette ne garde que l'onglet ouvert : les trois ne tiennent pas. */
  .memory-tabs span:not(.is-active) { display: none; }
}
@media (max-width: 380px) {
  .hero h1, .hero-page h1 { font-size: 1.9rem; }
}
@media (max-width: 767px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 248, 252, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(20, 24, 54, 0.25);
  }
  .sticky-cta[hidden] { display: none; }
  .sticky-cta .btn { min-height: 48px; }
  .site-footer { padding-bottom: 96px; }
  /* Liens empilés : chacun garde 44 px de haut pour le doigt. */
  .site-footer nav ul { gap: 0; }
  .site-footer nav a, .footer-langs a, .toc a, .breadcrumb a, .link-arrow, .brand, .lang-menu a, .mobile-panel > a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-langs { gap: 0 18px; }
  .toc ol { gap: 0; }
  .mobile-menu summary, .lang-switch summary { min-height: 44px; min-width: 44px; justify-content: center; }
}
@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; padding: 16px; }
  .link-arrow { white-space: normal; }
  .split-media .memory-mock { order: 2; }
  .memory-pairs { padding: 14px; }
  .memory-pairs li { padding: 12px; }
  .fact { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .chips-card { padding: 22px; }
  .post-grid-2 { grid-template-columns: 1fr; }
  .hero-page { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .early-banner, .site-footer, .cta-band, .article-cta, .mobile-menu, .lang-switch { display: none !important; }
  .section, .page-hero, .article-head { padding: 24px 0; background: none; }
}
