/* Site de Plume. Mêmes couleurs, même police et mêmes formes que l'app. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('../fonts/figtree-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 {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f5f0;
  --line: #e6e4dc;
  --line-strong: #d3d0c6;
  --text: #141414;
  --muted: #5e5e63;
  --invert-bg: #141414;
  --invert-text: #f5f5f2;
  --invert-muted: #ababab;
  --invert-line: #2e2e2e;
  --accent: #ffd60a;
  --accent-hover: #f2c900;
  --accent-text: #141414;
  --del: #c8372d;
  --tab-on: #ffffff;
  --stage: linear-gradient(140deg, #eef1f5 0%, #e4e8ee 55%, #f3efe3 100%);
  --window: #ffffff;
  --selection: rgba(0, 120, 212, 0.22);
  --shadow: 0 24px 60px -20px rgba(20, 20, 20, 0.28), 0 4px 14px rgba(20, 20, 20, 0.06);
  --font: 'Figtree', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  --radius-zone: 11px;
  --radius-button: 12px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --panel: #1a1a1a;
    --line: #2a2a2a;
    --line-strong: #3d3d3d;
    --text: #f5f5f2;
    --muted: #ababab;
    --invert-bg: #1d1d1d;
    --invert-line: #333333;
    --stage: linear-gradient(140deg, #1c1f24 0%, #16181c 55%, #221f17 100%);
    --window: #1d1d1d;
    --selection: rgba(76, 160, 255, 0.3);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(0, 0, 0, 0.4);
    --del: #ff7d72;
    --tab-on: #2e2e2e;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Touches du clavier, comme sur un vrai clavier */
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.5em 0.12em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: var(--window);
  color: var(--text);
  font: 700 0.92em/1.4 var(--font);
  text-align: center;
  white-space: nowrap;
}

/* ----- Boutons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* ----- En-tête ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* Choix de la langue du site : FR sous plumetext.com/fr/, EN sur plumetext.com */
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang a {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current='page'] {
  background: var(--text);
  color: var(--bg);
}

/* ----- Accroche ----- */

.hero {
  padding: 72px 0 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fa36a;
}

.hero h1,
.hero-title {
  margin-top: 22px;
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 800;
}

/* Le surlignage jaune de Plume, comme les ajouts dans « Voir les changements » */
mark {
  background: var(--accent);
  color: var(--accent-text);
  padding: 0 0.12em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.hero .lead kbd {
  font-size: 0.85em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* La section de l'app vient après l'essai : un titre un peu plus petit que celui de la page. */
.hero-title {
  font-size: clamp(34px, 4.4vw, 52px);
}

/* ----- Essai en ligne, en haut de l'accueil ----- */

.try {
  padding: 56px 0 64px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.try-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.try-head h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
}

.try-head .lead {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.tool {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.tool-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.tool-tabs {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--panel);
}

.tool-tabs button {
  padding: 7px 18px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: 700 15px/1.3 var(--font);
  cursor: pointer;
}

.tool-tabs button:hover {
  color: var(--text);
}

.tool-tabs button[aria-pressed='true'] {
  background: var(--tab-on);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.tool-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.tool-opts[hidden] {
  display: none;
}

.tool-opts label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.tool-select {
  position: relative;
  display: inline-flex;
}

.tool-select select {
  min-height: 38px;
  padding: 6px 36px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 600 15px/1.3 var(--font);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.tool-select select:hover {
  border-color: var(--text);
}

.tool-select svg {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.tool-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-mode {
  min-height: 36px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 600 15px/1.4 var(--font);
  cursor: pointer;
}

.tool-mode:hover {
  border-color: var(--text);
}

.tool-mode[aria-pressed='true'] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.tool-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tool-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  padding: 16px 18px 14px;
}

.tool-result {
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 55%, var(--bg));
}

.tool-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tool-pane textarea {
  flex: 1;
  width: 100%;
  min-height: 240px;
  margin: 8px 0 0;
  padding: 0 36px 0 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 400 19px/1.55 var(--font);
  resize: none;
}

.tool-pane textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.tool-pane textarea:focus,
.tool-pane textarea:focus-visible {
  outline: none;
}

/* Le contour de focus va sur toute la zone du texte. */
.tool-pane:has(textarea:focus-visible) {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 55%, transparent);
}

.tool-clear {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.tool-clear[hidden] {
  display: none;
}

.tool-clear:hover {
  background: var(--panel);
  color: var(--text);
}

.tool-clear svg {
  width: 20px;
  height: 20px;
}

.tool-out {
  flex: 1;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tool-out:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

/* « Voir les changements » : ajouts surlignés avec l'accent, suppressions barrées en rouge. */
.tool-out mark {
  padding: 0;
  border-radius: 3px;
}

.tool-out del {
  color: var(--del);
  text-decoration: line-through;
}

.tool-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #d64545;
  border-radius: 11px;
  background: var(--bg);
  font-size: 16px;
  white-space: normal;
}

.tool-error:first-child {
  margin-top: 0;
}

.tool-error.limit {
  border-left-color: #f28c28;
}

.tool-error p {
  flex: 1 1 16em;
}

.tool-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: 46px;
  margin-top: 12px;
}

.tool-space {
  flex: 1;
}

.tool-count {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tool-count.full {
  color: var(--text);
  font-weight: 600;
}

.tool-run {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.tool-run small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 700 14px/1 var(--font);
  cursor: pointer;
}

.tool-btn:hover:not(:disabled) {
  border-color: var(--text);
}

.tool-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.tool-btn svg {
  width: 16px;
  height: 16px;
}

.tool-diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tool-diff[hidden] {
  display: none;
}

.tool-diff input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--text);
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tool-status[hidden] {
  display: none;
}

.tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .is-writing .tool-dot {
    animation: tool-dot 0.9s ease-in-out infinite alternate;
  }
}

@keyframes tool-dot {
  to {
    opacity: 0.3;
  }
}

.tool-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.tool-left {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
}

.tool-left:empty {
  display: none;
}

.tool-note a {
  color: var(--text);
  font-weight: 600;
}

/* ----- La popup de Plume, refaite en HTML -----
   Mêmes mesures que l'app (520 × 580 px pour un texte de 16 px), en em : on change sa taille
   avec font-size. Couleurs de l'app, qui suivent le thème du système. */

.plume {
  --p-bg: #ffffff;
  --p-panel: #f6f5f0;
  --p-line: #e6e4dc;
  --p-line-strong: #d3d0c6;
  --p-text: #141414;
  --p-muted: #6b6b70;
  --p-tab: #ffffff;
  --p-tab-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  width: 32.5em;
  height: 36.25em;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 1em;
  background: var(--p-bg);
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.22);
  color: var(--p-text);
  font-family: var(--font);
  line-height: 1.5;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .plume {
    --p-bg: #111111;
    --p-panel: #1d1d1d;
    --p-line: #2e2e2e;
    --p-line-strong: #3d3d3d;
    --p-text: #f5f5f2;
    --p-muted: #9a9a9a;
    --p-tab: #2e2e2e;
    --p-tab-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

.pl-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.625em 0.625em 0.5em 0.875em;
}

.pl-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.pl-brand img {
  width: 1.625em;
  height: 1.625em;
}

.pl-brand b {
  font-size: 1.3125em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pl-tabs {
  display: flex;
  margin-left: 0.375em;
  padding: 0.1875em;
  border-radius: 0.75em;
  background: var(--p-panel);
}

.pl-tab {
  padding: 0.357em 1em;
  border-radius: 0.714em;
  color: var(--p-muted);
  font-size: 0.875em;
  font-weight: 700;
}

.pl-tab.on {
  background: var(--p-tab);
  box-shadow: var(--p-tab-shadow);
  color: var(--p-text);
}

.pl-space {
  flex: 1;
}

.pl-icon {
  display: grid;
  place-items: center;
  width: 2.125em;
  height: 2.125em;
  color: var(--p-muted);
}

.pl-icon svg {
  width: 1.125em;
  height: 1.125em;
}

.pl-src {
  flex: none;
  margin: 0 0.75em;
  padding: 0.625em 0.75em 0.375em;
  border-radius: 0.6875em;
  background: var(--p-panel);
}

.pl-row {
  display: flex;
  gap: 0.5em;
  color: var(--p-muted);
  font-size: 0.8125em;
  font-weight: 600;
}

.pl-row b {
  margin-right: auto;
  color: var(--p-text);
  font-weight: 600;
}

.pl-src p {
  height: 6em;
  margin: 0;
  padding: 0.25em 0;
  overflow: hidden;
}

.pl-opts {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.375em;
  padding: 0.625em 0.75em 0.5em;
}

.pl-opts > span {
  color: var(--p-muted);
  font-size: 0.875em;
  font-weight: 600;
}

.pl-select {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.43em;
  padding: 0.357em 0.714em;
  border: 1px solid var(--p-line-strong);
  border-radius: 0.714em;
  background: var(--p-bg);
  font-size: 0.875em;
  font-weight: 600;
}

.pl-select svg {
  width: 1em;
  height: 1em;
  color: var(--p-muted);
}

.pl-res {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0 0.75em;
  border: 1px solid var(--p-line-strong);
  border-radius: 0.6875em;
}

.pl-res .pl-row {
  padding: 0.77em 0.92em 0;
}

.pl-out {
  flex: 1;
  margin: 0;
  padding: 0.375em 0.75em 0.75em;
  overflow: hidden;
  line-height: 1.55;
}

.pl-actions {
  display: flex;
  flex: none;
  gap: 0.5em;
  padding: 0.625em 0.75em;
}

.pl-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.857em;
  padding: 0 1em;
  border: 1px solid var(--p-line-strong);
  border-radius: 0.714em;
  background: var(--p-bg);
  font-size: 0.875em;
  font-weight: 700;
  white-space: nowrap;
}

.pl-btn svg {
  width: 1.143em;
  height: 1.143em;
}

.pl-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.pl-btn.primary small {
  font-size: 0.857em;
  font-weight: 600;
}

.pl-status {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.615em;
  padding: 0.615em 1.077em 0.77em;
  border-top: 1px solid var(--p-line);
  color: var(--p-muted);
  font-size: 0.8125em;
  white-space: nowrap;
}

.pl-dot {
  flex: none;
  width: 0.615em;
  height: 0.615em;
  border-radius: 50%;
  background: #1fa36a;
}

.is-writing .pl-dot {
  background: var(--accent);
}

/* L'onglet Réécrire de la popup (démo Réécrire de l'accueil) : les modes, la consigne libre
   et « Voir les changements », comme dans l'app. */

.pl-modes {
  display: flex;
  flex: none;
  gap: 0.375em;
  padding: 0.625em 0.75em 0;
  overflow: hidden;
}

.pl-mode {
  flex: none;
  padding: 0.357em 0.857em;
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  font-size: 0.875em;
  font-weight: 600;
  white-space: nowrap;
}

.pl-mode.on {
  border-color: var(--p-text);
  background: var(--p-text);
  color: var(--p-bg);
}

.pl-ask {
  flex: none;
  margin: 0.571em 0.857em 0.643em;
  padding: 0.429em 1em;
  overflow: hidden;
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  color: var(--p-muted);
  font-size: 0.875em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pl-ask .filled {
  color: var(--p-text);
}

.pl-res .pl-row {
  align-items: center;
}

.pl-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pl-check i {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  border: 1.5px solid var(--p-line-strong);
  border-radius: 0.3em;
}

.pl-check svg {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 3;
  visibility: hidden;
}

.pl-check[aria-pressed='true'] i {
  border-color: var(--p-text);
  background: var(--p-text);
  color: var(--p-bg);
}

.pl-check[aria-pressed='true'] svg {
  visibility: visible;
}

.pl-check:focus-visible {
  border-radius: 0.3em;
  outline: 2px solid var(--p-text);
  outline-offset: 3px;
}

/* « Voir les changements » dans la popup : ajouts surlignés avec l'accent, suppressions barrées en rouge. */
.pl-out mark {
  padding: 0;
  border-radius: 0.2em;
}

.pl-out del {
  color: var(--del);
  text-decoration: line-through;
}

/* ----- Démo de l'accroche : un bureau Windows 11 -----
   Tout est mesuré en cqw (1 % de la largeur de la scène) : la scène grandit et rétrécit d'un bloc,
   comme une image, et la souris tombe toujours au bon endroit. */

.stage {
  --w-chrome: #eef1f8;
  --w-bg: #ffffff;
  --w-line: rgba(0, 0, 0, 0.09);
  --w-text: #1b1b1b;
  --w-muted: #5f5f5f;
  --w-chip: #e8f0fb;
  --w-blue: #0f6cbd;
  --w-blue-text: #ffffff;
  --tb-bg: rgba(238, 241, 248, 0.8);
  --tb-field: #ffffff;
  --tb-on: rgba(255, 255, 255, 0.75);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(60% 55% at 80% 15%, rgba(110, 145, 255, 0.55), transparent 70%),
    radial-gradient(55% 50% at 10% 80%, rgba(170, 135, 255, 0.4), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(80, 195, 230, 0.35), transparent 70%),
    linear-gradient(160deg, #e9eefb, #dde5f7);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', var(--font);
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .stage {
    --w-chrome: #1d2029;
    --w-bg: #262729;
    --w-line: rgba(255, 255, 255, 0.08);
    --w-text: #f3f3f3;
    --w-muted: #ababab;
    --w-chip: #2e3a4b;
    --w-blue: #4cc2ff;
    --w-blue-text: #000000;
    --tb-bg: rgba(26, 28, 36, 0.82);
    --tb-field: #2b2d35;
    --tb-on: rgba(255, 255, 255, 0.09);
    background:
      radial-gradient(60% 55% at 80% 15%, rgba(60, 85, 215, 0.6), transparent 70%),
      radial-gradient(55% 50% at 10% 80%, rgba(115, 65, 200, 0.45), transparent 70%),
      radial-gradient(50% 45% at 100% 100%, rgba(15, 125, 165, 0.4), transparent 70%),
      linear-gradient(160deg, #0d1328, #090c18);
  }
}

/* La fenêtre de mail */
.win {
  position: absolute;
  left: 4cqw;
  top: 4cqw;
  width: 66cqw;
  height: 66cqw;
  overflow: hidden;
  border: 1px solid var(--w-line);
  border-radius: 1.3cqw;
  background: var(--w-bg);
  box-shadow: 0 3cqw 7cqw -2cqw rgba(0, 0, 0, 0.35), 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.1);
  color: var(--w-text);
}

.win-title {
  display: flex;
  align-items: center;
  gap: 1cqw;
  height: 4.8cqw;
  padding-left: 1.6cqw;
  background: var(--w-chrome);
  font-size: 1.5cqw;
}

.win-title > svg {
  width: 1.9cqw;
  height: 1.9cqw;
}

.win-caption {
  display: flex;
  align-self: stretch;
  margin-left: auto;
}

.win-caption span {
  display: grid;
  place-items: center;
  width: 6.4cqw;
}

.win-caption svg {
  width: 1.35cqw;
  height: 1.35cqw;
}

.win-tools {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.3cqw 2.6cqw;
  border-bottom: 1px solid var(--w-line);
  color: var(--w-muted);
  font-size: 1.5cqw;
}

.win-send {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.7cqw 1.8cqw;
  border-radius: 0.6cqw;
  background: var(--w-blue);
  color: var(--w-blue-text);
  font-weight: 600;
}

.win-tools svg {
  width: 1.8cqw;
  height: 1.8cqw;
}

.win-tools > span:not(.win-send) {
  display: inline-flex;
  align-items: center;
  gap: 0.7cqw;
}

.win-field {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  height: 5.6cqw;
  padding: 0 2.6cqw;
  border-bottom: 1px solid var(--w-line);
  color: var(--w-muted);
  font-size: 1.6cqw;
}

.win-field strong {
  color: var(--w-text);
  font-weight: 400;
}

.win-person {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.35cqw 1.2cqw 0.35cqw 0.4cqw;
  border-radius: 3cqw;
  background: var(--w-chip);
  color: var(--w-text);
}

.win-person i {
  display: grid;
  place-items: center;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #8764b8;
  color: #ffffff;
  font-size: 1.2cqw;
  font-style: normal;
  font-weight: 600;
}

.win-text {
  display: grid;
  padding: 2.4cqw 2.6cqw;
  font-family: var(--font);
  font-size: 2.2cqw;
  line-height: 1.65;
}

.win-text > p {
  grid-area: 1 / 1;
  margin: 0;
  white-space: nowrap;
}

.win-text .sel {
  background-image: linear-gradient(var(--selection), var(--selection));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.win-text .after {
  opacity: 0;
}

/* La barre des tâches */
.taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7cqw;
  height: 7.4cqw;
  border-top: 1px solid var(--w-line);
  background: var(--tb-bg);
  backdrop-filter: blur(2cqw) saturate(1.4);
  -webkit-backdrop-filter: blur(2cqw) saturate(1.4);
  color: var(--w-text);
  font-size: 1.45cqw;
}

.tb-search {
  display: flex;
  align-items: center;
  gap: 1cqw;
  width: 19cqw;
  height: 4.6cqw;
  padding: 0 1.6cqw;
  border: 1px solid var(--w-line);
  border-radius: 2.3cqw;
  background: var(--tb-field);
  color: var(--w-muted);
}

.tb-search svg {
  width: 1.8cqw;
  height: 1.8cqw;
}

.tb-app {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.2cqw;
  height: 5.2cqw;
  border-radius: 0.9cqw;
}

.tb-app svg {
  width: 3.2cqw;
  height: 3.2cqw;
}

.tb-app.on {
  background: var(--tb-on);
}

.tb-app.on::after {
  content: '';
  position: absolute;
  bottom: 0.2cqw;
  left: 50%;
  width: 1.6cqw;
  height: 0.45cqw;
  border-radius: 1cqw;
  background: var(--w-blue);
  transform: translateX(-50%);
}

.tb-tray {
  position: absolute;
  top: 0;
  right: 1.6cqw;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
}

.tb-tray svg {
  width: 1.7cqw;
  height: 1.7cqw;
}

.tb-tray img {
  width: 2.3cqw;
  height: 2.3cqw;
}

/* Ctrl + C + C, en surimpression */
.keys {
  position: absolute;
  top: 7cqw;
  right: 3.5cqw;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 1cqw 1.5cqw;
  border: 1px solid var(--line);
  border-radius: 1.6cqw;
  background: var(--window);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-family: var(--font);
  font-size: 2.1cqw;
  font-weight: 700;
}

.keys kbd {
  border-bottom-width: 0.16em;
  border-radius: 0.38em;
}

/* La popup, à côté de la souris, sans sortir de l'écran ni passer sous la barre des tâches */
.stage .plume {
  position: absolute;
  left: calc(min(var(--xe) + 1.4, 56.8) * 1cqw);
  top: calc(min(var(--ye) + 1.4, 37) * 1cqw);
  font-size: 1.3cqw;
  box-shadow: 0 2.5cqw 6cqw -1.5cqw rgba(0, 0, 0, 0.45), 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.12);
  transform-origin: 0 0;
}

/* La souris : un curseur de texte, puis la flèche */
.ptr {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
}

.ptr svg {
  position: absolute;
}

.ptr-text {
  top: -1.8cqw;
  left: -0.6cqw;
  width: 1.2cqw;
  height: 3.6cqw;
}

.ptr-arrow {
  top: -0.2cqw;
  left: -0.2cqw;
  width: 2.2cqw;
  height: 3.3cqw;
  opacity: 0;
}

.tap {
  position: absolute;
  left: calc(var(--bx) * 1cqw - 2.2cqw);
  top: calc(var(--by) * 1cqw - 2.2cqw);
  width: 4.4cqw;
  height: 4.4cqw;
  border: 0.4cqw solid rgba(20, 20, 20, 0.45);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .tap {
    border-color: rgba(255, 255, 255, 0.6);
  }
}

/* L'animation (10 s en boucle). Sans animation, la scène reste figée sur la popup ouverte. */
@media (prefers-reduced-motion: no-preference) {
  .ptr {
    display: block;
    animation: ptr-move 10s infinite;
  }

  .ptr-text {
    animation: ptr-text 10s infinite;
  }

  .ptr-arrow {
    animation: ptr-arrow 10s infinite;
  }

  .win-text .l1 {
    animation: sel-1 10s linear infinite;
  }

  .win-text .l2 {
    animation: sel-2 10s linear infinite;
  }

  .win-text .l3 {
    animation: sel-3 10s linear infinite;
  }

  .win-text .l4 {
    animation: sel-4 10s linear infinite;
  }

  .win-text .before {
    animation: text-before 10s infinite;
  }

  .win-text .after {
    animation: text-after 10s infinite;
  }

  .keys {
    animation: keys 10s ease-in-out infinite;
  }

  .keys .c1 {
    animation: press-1 10s infinite;
  }

  .keys .c2 {
    animation: press-2 10s infinite;
  }

  .stage .plume {
    animation: popup 10s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  }

  .tap {
    animation: tap 10s ease-out infinite;
  }
}

/* La souris glisse en diagonale du début à la fin du texte, clique sur Remplacer puis s'écarte. */
@keyframes ptr-move {
  0% {
    opacity: 0;
    transform: translate(calc(var(--x0) * 1cqw), calc(var(--y1) * 1cqw));
  }
  3% {
    opacity: 1;
    transform: translate(calc(var(--x0) * 1cqw), calc(var(--y1) * 1cqw));
  }
  5% {
    transform: translate(calc(var(--x0) * 1cqw), calc(var(--y1) * 1cqw));
    animation-timing-function: linear;
  }
  8.4% {
    transform: translate(calc(var(--p1) * 1cqw), calc(var(--y1) * 1cqw));
    animation-timing-function: linear;
  }
  11.9% {
    transform: translate(calc(var(--p2) * 1cqw), calc(var(--y2) * 1cqw));
    animation-timing-function: linear;
  }
  15.4% {
    transform: translate(calc(var(--p3) * 1cqw), calc(var(--y3) * 1cqw));
    animation-timing-function: linear;
  }
  19%,
  47% {
    transform: translate(calc(var(--xe) * 1cqw), calc(var(--ye) * 1cqw));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  56%,
  58% {
    transform: translate(calc(var(--bx) * 1cqw), calc(var(--by) * 1cqw));
  }
  59% {
    transform: translate(calc(var(--bx) * 1cqw), calc(var(--by) * 1cqw)) scale(0.85);
  }
  61%,
  68% {
    transform: translate(calc(var(--bx) * 1cqw), calc(var(--by) * 1cqw));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  78%,
  92% {
    opacity: 1;
    transform: translate(calc(var(--rx) * 1cqw), calc(var(--ry) * 1cqw));
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(calc(var(--rx) * 1cqw), calc(var(--ry) * 1cqw));
  }
}

@keyframes ptr-text {
  0%,
  40% {
    opacity: 1;
  }
  41%,
  100% {
    opacity: 0;
  }
}

@keyframes ptr-arrow {
  0%,
  40% {
    opacity: 0;
  }
  41%,
  100% {
    opacity: 1;
  }
}

/* La sélection suit la souris, ligne par ligne, comme quand on glisse pour sélectionner. */
@keyframes sel-1 {
  0%,
  4.9% {
    background-size: 0% 100%;
  }
  5% {
    background-size: 0% 100%;
  }
  8.4% {
    background-size: 25% 100%;
  }
  8.5%,
  64% {
    background-size: 100% 100%;
  }
  64.1%,
  100% {
    background-size: 0% 100%;
  }
}

@keyframes sel-2 {
  0%,
  8.4% {
    background-size: 0% 100%;
  }
  8.5% {
    background-size: 25% 100%;
  }
  11.9% {
    background-size: 50% 100%;
  }
  12%,
  64% {
    background-size: 100% 100%;
  }
  64.1%,
  100% {
    background-size: 0% 100%;
  }
}

@keyframes sel-3 {
  0%,
  11.9% {
    background-size: 0% 100%;
  }
  12% {
    background-size: 50% 100%;
  }
  15.4% {
    background-size: 75% 100%;
  }
  15.5%,
  64% {
    background-size: 100% 100%;
  }
  64.1%,
  100% {
    background-size: 0% 100%;
  }
}

@keyframes sel-4 {
  0%,
  15.4% {
    background-size: 0% 100%;
  }
  15.5% {
    background-size: 75% 100%;
  }
  19%,
  64% {
    background-size: 100% 100%;
  }
  64.1%,
  100% {
    background-size: 0% 100%;
  }
}

/* Remplacer : le texte d'origine laisse sa place à la traduction. */
@keyframes text-before {
  0%,
  64% {
    opacity: 1;
  }
  64.1%,
  95% {
    opacity: 0;
  }
  98%,
  100% {
    opacity: 1;
  }
}

@keyframes text-after {
  0%,
  64% {
    opacity: 0;
  }
  64.1%,
  93% {
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@keyframes keys {
  0%,
  21% {
    opacity: 0;
    transform: translateY(1.5cqw);
  }
  24%,
  43% {
    opacity: 1;
    transform: none;
  }
  47%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes press-1 {
  0%,
  27% {
    transform: none;
    border-bottom-width: 0.16em;
  }
  28% {
    transform: translateY(0.1em);
    border-bottom-width: 0.06em;
  }
  30%,
  100% {
    transform: none;
    border-bottom-width: 0.16em;
  }
}

@keyframes press-2 {
  0%,
  32% {
    transform: none;
    border-bottom-width: 0.16em;
  }
  33% {
    transform: translateY(0.1em);
    border-bottom-width: 0.06em;
  }
  35%,
  100% {
    transform: none;
    border-bottom-width: 0.16em;
  }
}

@keyframes popup {
  0%,
  36% {
    opacity: 0;
    transform: scale(0.94);
  }
  40%,
  61% {
    opacity: 1;
    transform: none;
  }
  63.5%,
  100% {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes tap {
  0%,
  58.5% {
    opacity: 0;
    transform: scale(0.4);
  }
  59.5% {
    opacity: 1;
    transform: scale(0.6);
  }
  64%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* ----- Sections ----- */

.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}

/* Les trois étapes */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.step h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 800;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Traduire, Réécrire : texte et capture côte à côte */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature + .feature {
  margin-top: 112px;
}

.feature.reverse .feature-text {
  order: 2;
}

.feature-text h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}

.feature-text > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chips li,
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--text);
  font: 600 15px/1.5 var(--font);
}

.chips li.on,
.chip[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Les langues de la démo Traduire sont des boutons. */
.chip {
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.chip:hover {
  border-color: var(--text);
}

.chip:focus-visible,
.lang a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.chips .more {
  border-style: dashed;
  color: var(--muted);
}

.chips-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.shot {
  container-type: inline-size;
  padding: 36px;
  border-radius: 24px;
  background: var(--stage);
  border: 1px solid var(--line);
}

/* La popup de la démo Traduire prend toute la largeur, jusqu'à 440 px. */
.shot .plume {
  margin: 0 auto;
  font-size: min(13.5px, 100cqw / 32.5);
  box-shadow: var(--shadow);
}

.feature > * {
  min-width: 0;
}

.shot img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Petites cartes « et aussi » */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 112px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.card svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Tes données : section sombre */

.privacy {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.privacy .kicker,
.privacy .section-head p,
.privacy .promise p {
  color: var(--invert-muted);
}

.promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--invert-line);
}

.promise svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--invert-text);
}

.promise h3 {
  font-size: 19px;
  font-weight: 800;
}

.promise p {
  margin-top: 6px;
  font-size: 16px;
}

.promise kbd {
  background: transparent;
  color: var(--invert-text);
  border-color: var(--invert-muted);
}

.privacy .more {
  margin-top: 40px;
  text-align: center;
  color: var(--invert-muted);
  font-size: 16px;
}

.privacy .more a {
  color: var(--invert-text);
  font-weight: 700;
}

/* Questions */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq .answer {
  padding: 0 4px 24px;
  color: var(--muted);
}

.faq .answer p + p {
  margin-top: 12px;
}

/* Dernier appel */

.cta {
  text-align: center;
}

.cta img {
  width: 76px;
  height: 76px;
  margin: 0 auto;
}

.cta h2 {
  margin-top: 24px;
}

.cta p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 19px;
}

.cta .actions {
  justify-content: center;
}

/* Pied de page */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .brand {
  font-size: 17px;
  color: var(--text);
}

.site-footer .brand img {
  width: 24px;
  height: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* ----- Mentions légales ----- */

.legal {
  padding: 72px 0 96px;
}

.legal .wrap {
  max-width: 720px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.legal p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal p + p {
  margin-top: 10px;
}

.legal a {
  color: var(--text);
  text-underline-offset: 3px;
}

/* ----- Écrans plus petits ----- */

@media (max-width: 960px) {
  .tool-panes {
    grid-template-columns: 1fr;
  }

  .tool-result {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tool-pane {
    min-height: 260px;
  }

  .tool-pane textarea {
    min-height: 160px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero .wrap,
  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature.reverse .feature-text {
    order: 0;
  }

  .steps,
  .grid {
    grid-template-columns: 1fr;
  }

  .promises {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  /* Sur téléphone, pas de raccourci clavier à montrer. */
  .tool-run small {
    display: none;
  }

  .tool-pane {
    padding: 14px 14px 12px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .shot {
    padding: 20px;
  }

  .site-header .wrap {
    gap: 12px;
  }

  .site-header .btn-small {
    padding: 0 12px;
    font-size: 14px;
  }
}

/* ----- Page Tarifs ----- */

.pricing-top {
  padding-bottom: 72px;
}

.site-nav a[aria-current='page'] {
  color: var(--text);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

/* La formule à venir : même carte, sans relief, bord en pointillés. */
.plan-soon {
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
}

.plan-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 2px;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 18px;
}

.plan-price b {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.plan-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.45;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.plan .btn {
  margin-top: auto;
}

.btn-soon {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  cursor: default;
}

.btn-soon:hover {
  transform: none;
}

.plan-foot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.plan-foot a {
  color: var(--text);
  text-underline-offset: 3px;
}

/* Tableaux : coût de l'IA et comparatif */

.table-scroll {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.price-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.price-table th,
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table tbody tr:last-child > * {
  border-bottom: 0;
}

.price-table thead th,
.price-table thead td {
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-table tbody th {
  font-weight: 600;
}

.compare-table thead th {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.compare-table tbody th {
  width: 24%;
  color: var(--muted);
}

.compare-table td {
  width: 38%;
}

.table-note {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.callout {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-zone);
  background: var(--panel);
  font-size: 16px;
}

/* Page Tarifs : sous les formules à venir, la note sur les prix et le lien vers la version open source. */
.plans-note,
.plans-byok {
  text-align: center;
}

.plans-byok a,
.callout a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Page Tarifs : les boutons sous « Sois prévenu de la sortie ». */
.follow-actions {
  justify-content: center;
  margin-top: 36px;
}

/* Le comparatif dans une réponse de la page Questions. */
.faq .answer .table-scroll {
  margin-top: 16px;
  color: var(--text);
}

/* Liens vers la page de création de clé de chaque fournisseur */

.key-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 36px;
}

.key-links > span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.key-links .chips {
  justify-content: center;
  margin: 0;
}

.key-links .chips li {
  padding: 0;
  background: var(--bg);
  transition: border-color 0.15s;
}

.key-links .chips li:hover {
  border-color: var(--text);
}

.key-links .chips a {
  display: block;
  padding: 6px 14px;
  text-decoration: none;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  /* Le menu ne mène qu'à des pages : il reste visible sur écran étroit. */
  .site-nav {
    display: flex;
  }

  .lang {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  /* Sur téléphone, le menu passe sur une deuxième ligne de l'en-tête. */
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
    row-gap: 6px;
    column-gap: 12px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    gap: 24px;
    margin-left: 0;
  }

  .lang {
    margin-left: auto;
  }

  html {
    scroll-padding-top: 116px;
  }
}

@media (max-width: 560px) {
  .plan {
    padding: 26px 22px 22px;
  }

  .price-table th,
  .price-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 420px) {
  /* Les quatre pages du menu tiennent sur une ligne, réparties sur toute la largeur. */
  .site-nav {
    justify-content: space-between;
    gap: 10px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  /* Sur les petits téléphones, le logo seul suffit dans l'en-tête. */
  .site-header .brand {
    font-size: 0;
  }
}

/* ----- Coût moyen de l'IA (page Tarifs) ----- */

.cost-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cost-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.cost-use {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.cost-tile b {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cost-per {
  font-size: 15px;
  font-weight: 600;
}

.cost-range {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ----- Pages Questions et Contact ----- */

.page-top {
  padding-bottom: 56px;
}

.page-top .try-head {
  margin-bottom: 0;
}

.faq-topics {
  justify-content: center;
  margin-top: 28px;
}

.faq-topics .chip {
  text-decoration: none;
}

.faq-group {
  scroll-margin-top: 96px;
}

.faq-group + .faq-group {
  margin-top: 64px;
}

.section .faq-group h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: clamp(24px, 3vw, 30px);
}

.faq-more {
  max-width: 760px;
  margin: 40px auto 0;
  color: var(--muted);
  text-align: center;
}

.faq-more a,
.contact-note a,
.contact-alt a {
  color: var(--text);
  font-weight: 600;
}

.contact {
  max-width: 680px;
  margin: 36px auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.contact-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-types legend,
.contact-field > label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-field small {
  font-size: 13px;
  font-weight: 500;
}

.contact-type {
  position: relative;
}

/* Le bouton radio reste utilisable au clavier, mais on voit la pastille. */
.contact-type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-type span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 600 15px/1.5 var(--font);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.contact-type span:hover {
  border-color: var(--text);
}

.contact-type input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.contact-type input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.contact-field {
  display: block;
  margin-top: 22px;
}

.contact-field textarea,
.contact-field input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-zone);
  background: var(--panel);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
}

.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-field textarea:focus-visible,
.contact-field input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

/* Piège à robots : invisible pour les gens, rempli par les robots. */
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 24px;
}

.contact-foot .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.contact-status {
  font-size: 15px;
  font-weight: 600;
}

.contact-status[data-state='error'] {
  color: var(--del);
}

.contact-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-alt {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 720px) {
  .cost-tiles {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .contact {
    padding: 22px 18px;
  }
}

/* ----- Bandeau des cookies -----
   Ne bloque rien : le site marche sans répondre. Refuser et Accepter ont exactement le même style. */

.consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(440px, calc(100vw - 40px));
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.consent[hidden] {
  display: none;
}

.consent h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.consent p a {
  color: var(--text);
  font-weight: 600;
}

.consent .consent-now {
  margin-top: 8px;
  color: var(--text);
  font-weight: 600;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.consent-actions .btn {
  width: 100%;
  cursor: pointer;
  background: transparent;
}

@media (max-width: 560px) {
  .consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px 18px;
  }
}

@media print {
  .consent {
    display: none;
  }
}
