/*
 * Page de présentation d'Infinity.
 * Jetons repris de app/assets/css/main.css (design system Infinity), mêmes polices, mêmes rayons.
 */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root,
[data-theme="dark"] {
  --bg-canvas: #111310;
  --bg-surface: #1b1e19;
  --bg-raised: #252a22;
  --bg-sunken: #0e100d;
  --bg-hover: #2c3228;
  --bg-overlay: rgb(5 6 5 / 0.62);
  --border: #343a30;
  --border-strong: #4a5244;
  --text-primary: #f2f4ec;
  --text-secondary: #b0b6aa;
  --text-muted: #949d8c;
  --text-on-accent: #0b0b0b;
  --accent: #c8f76c;
  --accent-hover: #d6fa8f;
  --accent-soft: rgb(200 247 108 / 0.14);
  --fg-accent: #c8f76c;
  --bg-purple: #241d33;
  --fg-purple: #c6b1ff;
  --bg-teal: #17292c;
  --fg-teal: #8fd0dc;
  --bg-warning: #3a2d17;
  --fg-warning: #ffd08a;
  --bg-positive: #26331a;
  --fg-positive: #c8f76c;
  --bg-danger: #3b1d17;
  --fg-danger: #ff9c88;
  --person-a: #00ffc8;
  --person-b: #ffa41b;
  --avatar-ink: #0b0b0b;
  --focus: #c8f76c;
  --shadow-pop: 0 18px 50px -12px rgb(0 0 0 / 0.65), 0 0 0 1px var(--border);
  --grid-dot: rgb(242 244 236 / 0.07);
  /* Ombres portées légères, comme sur le nouveau bebold.ch */
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.25), 0 14px 34px -14px rgb(0 0 0 / 0.55);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.25), 0 22px 46px -16px rgb(0 0 0 / 0.65);
  --glass: rgb(17 19 16 / 0.6);
  --glow: rgb(0 0 0 / 0.78);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-canvas: #f3f4ee;
  --bg-surface: #fbfcf8;
  --bg-raised: #e5ebcd;
  --bg-sunken: #eceee5;
  --bg-hover: #e8ebdf;
  --bg-overlay: rgb(27 35 21 / 0.32);
  --border: #d9ded2;
  --border-strong: #bfc6b6;
  --text-primary: #1b2315;
  --text-secondary: #58644f;
  --text-muted: #5e6956;
  --text-on-accent: #0b0b0b;
  --accent: #c8f76c;
  --accent-hover: #bdf058;
  --accent-soft: rgb(200 247 108 / 0.35);
  --fg-accent: #3d6217;
  --bg-purple: #eee8fa;
  --fg-purple: #6530be;
  --bg-teal: #dff0f3;
  --fg-teal: #246574;
  --bg-warning: #fff1d9;
  --fg-warning: #865400;
  --bg-positive: #ebf6d5;
  --fg-positive: #3d6217;
  --bg-danger: #ffe7df;
  --fg-danger: #b32716;
  --person-a: #006b56;
  --person-b: #865000;
  --avatar-ink: #ffffff;
  --focus: #3d6217;
  --shadow-pop: 0 18px 50px -14px rgb(27 35 21 / 0.28), 0 0 0 1px var(--border);
  --grid-dot: rgb(27 35 21 / 0.08);
  --shadow-soft: 0 1px 2px rgb(27 35 21 / 0.06), 0 12px 30px -14px rgb(27 35 21 / 0.2);
  --shadow-lift: 0 2px 4px rgb(27 35 21 / 0.07), 0 20px 42px -16px rgb(27 35 21 / 0.28);
  --glass: rgb(251 252 248 / 0.7);
  --glow: rgb(243 244 238 / 0.92);
  color-scheme: light;
}

:root {
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-hero: 28px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.3, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; background: var(--bg-canvas); min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--text-on-accent); }
#main:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-control); background: var(--accent); color: var(--text-on-accent); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms, border-color 120ms, transform 120ms;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn svg { width: 18px; height: 18px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* En-tête */
/* En-tête sans barre : la marque et les boutons flottent sur la page. Quand du contenu passe
   dessous, un halo doux les détache, comme sur le nouveau bebold.ch. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--header-h); pointer-events: none; }
.site-header .brand, .site-header .header-actions { position: relative; pointer-events: auto; }
.site-header .brand::before, .site-header .header-actions::before {
  content: "";
  position: absolute;
  inset: -34px -46px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), color-mix(in srgb, var(--glow) 55%, transparent) 55%, transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}
.site-header.is-scrolled .brand::before, .site-header.is-scrolled .header-actions::before { opacity: 1; }
/* La marque prend aussi sa pastille de verre fumé quand le contenu passe dessous. */
.site-header .brand { margin-left: -14px; padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; transition: background-color 400ms, border-color 400ms, box-shadow 400ms; }
@media (max-width: 639px) { .site-header .brand { margin-left: -6px; padding: 7px 10px; } }
.site-header.is-scrolled .brand { background: var(--glass); border-color: var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }
.site-header .icon-btn, .site-header .lang-switch { border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }
.site-header .icon-btn { width: 38px; height: 38px; }
.site-header .lang-switch button { border-radius: 999px; }
.site-header .btn-sm { height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.brand-by { font-size: 13px; color: var(--text-muted); font-weight: 600; line-height: 1; padding-top: 3px; }
.logo rect { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
/* Vague du logo : au survol de la marque et quand la page défile. */
.brand:hover .logo rect, .logo.is-waving rect { animation: cell-wave 720ms var(--ease) both; animation-delay: calc(var(--x) * 9ms); }
@keyframes cell-wave { 0%, 100% { transform: none; } 35% { transform: translateY(-3px) scale(1.12); } 70% { transform: translateY(1px); } }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); }
.lang-switch button { height: 28px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lang-switch button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text-primary); }
.lang-switch button:hover { color: var(--text-primary); }
.header-actions .btn-sm { display: none; }
@media (min-width: 560px) { .header-actions .btn-sm { display: inline-flex; } }
@media (max-width: 349px) { .brand-by { display: none; } }

/* Sections */
.section { padding-block: 48px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head p { margin-top: 16px; font-size: 17px; color: var(--text-secondary); max-width: 640px; text-wrap: pretty; }
@media (min-width: 1024px) { .section { padding-block: 64px; } }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
} .example{ transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); } .example:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* Hero */
.hero { position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; text-align: center; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-logo { margin: 0 auto 28px; width: 72px; height: 48px; }
.hero-logo { overflow: visible; }
/* Le logo du hero se rassemble à l'arrivée (décalages --sx, --sy, --sr posés par landing.js). */
.hero-logo rect { animation: cell-assemble 1100ms var(--ease) both; animation-delay: calc(120ms + var(--x) * 16ms); }
@keyframes cell-assemble {
  from { opacity: 0; transform: translate(calc(var(--sx, 0) * 1px), calc(var(--sy, 0) * 1px)) rotate(calc(var(--sr, 0) * 1deg)) scale(.5); }
  to { opacity: 1; transform: none; }
}
.hero h1 {
  max-width: 980px;
  margin: 20px auto 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* La partie verte du titre tient sur sa propre ligne. */
.hero h1 em { display: block; font-style: normal; color: var(--fg-accent); }
.hero-lead { max-width: 640px; margin: 24px auto 0; font-size: 18px; color: var(--text-secondary); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (min-width: 1024px) { .hero { padding-top: calc(var(--header-h) + 96px); } }

@keyframes cell-in { from { opacity: 0; transform: translateY(6px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* Scénario */
.scenario { padding-top: 24px; }
.scenario .section-head { margin-inline: auto; text-align: center; }
.scenario .section-head p { margin-inline: auto; }
.frame {
  overflow: hidden;
  border-radius: var(--radius-hero);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-pop);
}
.frame-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--bg-canvas); font-size: 13px; color: var(--text-muted); }
.frame-bar .logo { width: 24px; height: 16px; flex-shrink: 0; }
.frame-bar .crumb { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-bar .crumb b { color: var(--text-primary); font-weight: 600; }
.frame-bar .kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; }
.frame-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .frame-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--bg-canvas); align-content: start; order: 2; }
@media (min-width: 900px) { .panels { order: 0; padding: 20px; gap: 14px; border-right: 1px solid var(--border); } }
.panel { min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-surface); box-shadow: var(--shadow-soft); transition: border-color 300ms, box-shadow 300ms; }
.panel.is-lit { border-color: var(--fg-accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.panel-wide { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
  .frame-bar .crumb-client { display: none; }
}
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head svg { width: 16px; height: 16px; color: var(--text-muted); }
.panel-head .label { font-size: 11px; }
.panel-empty { display: grid; gap: 6px; }
.panel-empty span { display: block; height: 8px; border-radius: 4px; background: var(--bg-raised); opacity: .6; }
.panel-empty span:nth-child(2) { width: 70%; }
.panel-empty span:nth-child(3) { width: 45%; }

.mail-from { font-size: 13px; font-weight: 700; }
.mail-subject { margin-top: 2px; font-size: 13px; color: var(--text-primary); }
.mail-body { margin-top: 6px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

.mission-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.mission-title .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--fg-teal); flex-shrink: 0; }
.mission-client { font-size: 12px; color: var(--text-muted); margin-left: 18px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.board-col { min-width: 0; padding: 6px; border-radius: 10px; background: var(--bg-sunken); min-height: 92px; }
.board-col h4 { margin: 0 0 6px 2px; font-size: 10.5px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 599px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-col:last-child { display: none; }
}
.mini-card { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; margin-top: 5px; padding: 6px 7px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); font-size: 11.5px; font-weight: 600; }
.mini-card span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; font-size: 9.5px; font-weight: 700; color: var(--avatar-ink); }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -5px; box-shadow: 0 0 0 2px var(--bg-surface); }

.invoice-amount { font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.invoice-detail { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-neutral { background: var(--bg-raised); color: var(--text-secondary); }
.pill-teal { background: var(--bg-teal); color: var(--fg-teal); }
.pill-positive { background: var(--bg-positive); color: var(--fg-positive); }
.pill-purple { background: var(--bg-purple); color: var(--fg-purple); }
.pill-warning { background: var(--bg-warning); color: var(--fg-warning); }

.invoice-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

.time-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.time-row .swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--fg-teal); flex-shrink: 0; }
.time-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

.pop-in { animation: pop-in 420ms var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Chat */
.chat { display: flex; flex-direction: column; min-width: 0; height: 460px; background: var(--bg-surface); }
@media (min-width: 900px) { .chat { height: 560px; } }
.chat-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.chat-head svg { width: 16px; height: 16px; color: var(--fg-accent); }
.chat-log { flex: 1; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; padding: 16px; scroll-behavior: smooth; }
.chat-log > * { flex-shrink: 0; }
.chat-log > :first-child { margin-top: auto; }
.msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; }
.msg-user { align-self: flex-end; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--bg-raised); }
.msg-assistant { align-self: flex-start; color: var(--text-primary); }
.msg-email { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-secondary); }
.msg-email svg { width: 16px; height: 16px; flex-shrink: 0; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.proposal { align-self: stretch; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-canvas); font-size: 13px; }
.proposal-body { padding: 10px 12px; }
.proposal-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; line-height: 1.4; }
.proposal-title svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--fg-accent); }
.proposal ul { margin-top: 4px; padding-left: 24px; color: var(--text-secondary); font-size: 12.5px; }
.proposal li { position: relative; }
.proposal li::before { content: ""; position: absolute; left: -11px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.proposal-actions { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); }
.proposal-actions button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; font-size: 12.5px; font-weight: 700; transition: transform 160ms, box-shadow 160ms, background-color 120ms; }
.proposal-actions .ok { background: var(--accent); color: var(--text-on-accent); }
.proposal-actions .ok:hover { background: var(--accent-hover); }
.proposal-actions .no { background: transparent; border-color: var(--border); color: var(--text-secondary); }
.proposal-actions .no:hover { color: var(--text-primary); border-color: var(--border-strong); }
.proposal-actions .ok.is-awaiting { animation: await-pulse 1.6s ease-out infinite; }
@keyframes await-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: none; } }
.proposal-actions .ok.is-pressed { transform: scale(.94); box-shadow: 0 0 0 4px var(--accent-soft); }
.proposal-done { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); color: var(--fg-positive); background: var(--bg-positive); font-size: 12.5px; font-weight: 700; }
.proposal-done svg { width: 14px; height: 14px; }

.chat-input { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; min-height: 44px; padding: 6px 6px 6px 12px; border-radius: var(--radius-control); border: 1px solid var(--border); background: var(--bg-sunken); font-size: 13.5px; transition: border-color 160ms, box-shadow 160ms; }
.chat-input:has(.chat-box.is-awaiting) { border-color: var(--fg-accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Champ réel et calque de la phrase proposée, superposés dans la même case. */
.chat-field { flex: 1; min-width: 0; display: grid; }
.chat-field > * { grid-area: 1 / 1; min-height: 30px; margin: 0; padding: 5px 0; font: inherit; font-size: 13.5px; line-height: 1.45; letter-spacing: normal; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-mirror { pointer-events: none; }
.chat-mirror .typed { color: var(--text-primary); }
/* Caractère faux : rouge, et un petit tremblement une seule fois quand il vient d'être tapé. */
.chat-mirror .wrong { position: relative; color: var(--fg-danger); }
.chat-mirror .wrong.is-new { animation: typo-shake 260ms ease-out 1; }
@keyframes typo-shake { 25% { left: -2px; } 50% { left: 2px; } 75% { left: -1px; } }
@media (prefers-reduced-motion: reduce) { .chat-mirror .wrong.is-new { animation: none; } }
.chat-mirror .ghost { color: var(--text-muted); opacity: .75; }
.chat-box { width: 100%; height: 100%; resize: none; overflow: hidden; border: 0; outline: none; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--fg-accent); }
.chat-box::selection { background: var(--accent-soft); }
.chat-box::placeholder { color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.tab-hint { align-self: center; flex-shrink: 0; padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 6px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; color: var(--text-muted); opacity: 0; transition: opacity 200ms; }
.has-ghost .tab-hint { opacity: 1; }
@media (pointer: coarse) { .tab-hint { display: none; } }
.chat-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }

.chat-input .send { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--accent); color: var(--text-on-accent); }
.chat-input .send:hover { background: var(--accent-hover); }
/* Consigne lue seulement par les lecteurs d'écran : à l'écran, le champ en attente se comprend seul. */
.chat-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* En attente : curseur qui clignote même sans focus, bouton d'envoi qui appelle le clic. */

.chat-input:has(.chat-box.is-awaiting) .send { animation: await-pulse 1.6s ease-out infinite; }

.chat-input .send svg { width: 15px; height: 15px; }

.scenario-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.scenario-controls .btn-sm svg { width: 16px; height: 16px; }
.steps { display: flex; flex: 1; gap: 6px; min-width: 220px; }
.steps button {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 24px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.steps button::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--border); transition: background-color 300ms; }
.steps button.is-done::before, .steps button.is-current::before { background: var(--fg-accent); }
.steps button.is-current { color: var(--text-primary); }
.steps button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .steps button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.example { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.example-prompt { align-self: flex-start; display: flex; gap: 8px; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg-raised); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.example-prompt svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--text-muted); }
.example-result { display: flex; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.example-result svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--fg-accent); }

.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--fg-accent); }
.module-icon svg { width: 20px; height: 20px; }

.module-soon { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.stack { position: relative; min-width: 0; overflow-wrap: break-word; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); font-size: 11.5px; font-weight: 600; }
.stack.is-pile { margin-bottom: 6px; box-shadow: 0 3px 0 -1px var(--bg-surface), 0 3px 0 0 var(--border), 0 6px 0 -1px var(--bg-surface), 0 6px 0 0 var(--border); }
.stack small { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.stack small i { width: 7px; height: 7px; border-radius: 2px; }

/* Contrôle */
.control-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .control-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.control-points { display: grid; gap: 24px; }
.control-point { display: flex; gap: 14px; }
.control-point .module-icon { flex-shrink: 0; }
.control-point h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.control-point p { margin-top: 4px; font-size: 15px; color: var(--text-secondary); }
.log { padding: 8px; }

/* Appel final */
.cta-card { position: relative; overflow: hidden; padding: 56px 24px; text-align: center; isolation: isolate; }
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
}
.cta-card h2 { max-width: 720px; margin: 0 auto; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.cta-card p { margin-top: 14px; color: var(--text-secondary); font-size: 17px; }
.cta-card .btn { margin-top: 28px; }
@media (max-width: 480px) { .cta-card { padding: 40px 16px; } }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px; font-size: 14px; color: var(--text-muted); }
.brand-small .brand-name { font-size: 17px; }
.made-by { margin-left: auto; font-weight: 600; }
.footer-legal { padding-bottom: 32px; }
.legal-grid { display: grid; gap: 20px 40px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-grid h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.legal-grid p { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.legal-grid a, .modal-privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.legal-copy { margin-top: 20px; font-size: 12.5px; color: var(--text-muted); }
.made-by a { color: var(--text-primary); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.made-by a:hover { color: var(--fg-accent); }

/* Fenêtre de la liste d'attente */
.modal {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-pop);
}
.modal::backdrop { background: var(--bg-overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop-in 220ms var(--ease) both; }
.modal-close-form { position: absolute; top: 14px; right: 14px; }
.modal h2 { padding-right: 40px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.modal-text { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }
.waitlist-form { margin-top: 20px; }
.waitlist-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 440px) { .field-row { flex-direction: row; } }
.control {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--text-muted);
  background: var(--bg-canvas);
  font-size: 16px; /* 16 px : iOS ne zoome pas à la saisie */
  transition: border-color 120ms, box-shadow 120ms;
}
.control:hover { border-color: var(--text-secondary); }
.control:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.control[aria-invalid="true"] { border-color: var(--fg-danger); }
.form-status { min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.form-status.is-error { color: var(--fg-danger); }
.form-status:focus { outline: none; }
.form-status.is-success { color: var(--fg-positive); }
.modal-privacy { margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }
.modal-privacy a { color: var(--text-secondary); text-underline-offset: 2px; }
.waitlist-form.is-done > label, .waitlist-form.is-done .field-row { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero statique (avant JavaScript) : une langue à la fois. */
html[lang="fr"] [data-static] [lang="en"], html[lang="en"] [data-static] [lang="fr"] { display: none; }

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

/* En-tête de section avec une commande à droite */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.head-row .section-head { margin-bottom: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.seg button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text-primary); }
.seg button:hover { color: var(--text-primary); }

/* Capture de l'app dans une fenêtre */
.window { margin: 0; overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--bg-surface); box-shadow: var(--shadow-pop); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-canvas); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-bar span { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.window-shot { background: var(--bg-canvas); }
.window-shot img { display: block; width: 100%; height: auto; transition: opacity 220ms; }
.window-shot img.is-swapping { opacity: 0; }
.window figcaption { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-secondary); }

/* Exemples en défilement continu */
.examples { overflow: hidden; }
.marquee { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-row.is-reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track, .marquee:focus .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; gap: 14px; padding-right: 14px; }
.marquee-list .example { width: 340px; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Deux colonnes : texte et visuel */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.split-text .section-head { margin-bottom: 24px; }
.split-list { display: grid; gap: 10px; font-size: 15.5px; }
.split-list li { display: flex; gap: 10px; }
.split-list svg { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; color: var(--fg-accent); }

/* Bureau du Mac recréé : barre de menus, popover du timer (capture réelle), alerte d'absence */
.mac { --wall-1: #1d3a2c; --wall-2: #16303a; --wall-3: #0e100d; position: relative; overflow: hidden; border-radius: var(--radius-hero); border: 1px solid var(--border); box-shadow: var(--shadow-pop); background:
  radial-gradient(120% 90% at 85% 0%, var(--wall-1), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, var(--wall-2), transparent 60%),
  var(--wall-3); }
[data-theme="light"] .mac { --wall-1: #dfeec0; --wall-2: #cfe6ea; --wall-3: #eef1e6; }
/* Fond d'écran : photo du Cervin (Unsplash), cadrée pour garder le sommet à gauche du timer, un peu assombrie en thème sombre. */
.mac-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 0; pointer-events: none; }
[data-theme="dark"] .mac-wall { filter: brightness(0.78) saturate(0.95); }
.mac-bar { position: relative; z-index: 1; text-shadow: 0 1px 2px rgb(0 0 0 / 0.25); display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 30px; padding: 0 14px; background: color-mix(in srgb, var(--bg-canvas) 55%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 12.5px; font-weight: 600; color: var(--text-primary); }

.mac-icon { display: inline-flex; color: var(--text-primary); }
.mac-icon svg { width: 16px; height: 16px; }
.mac-battery svg { width: 24px; height: 12px; }
.mac-clock { white-space: nowrap; }
.mac-desk { position: relative; height: 560px; }

@keyframes mac-pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) { .mac-desk { height: 520px; } }
@media (max-width: 520px) {
  .mac-desk { height: 470px; }
  
  .mac-icon, .mac-clock { display: none; }
  
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row.is-reverse, .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }

}

/* Section bebold : l'univers du nouveau bebold.ch (ciel sombre, cartes de couleur inclinées et
   symboles de la marque). Toujours sombre, quel que soit le thème. */
.bebold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 96px;
  color: #fff;
  background: linear-gradient(188deg, #1f2122 23.5%, #000 72.3%);
  color-scheme: dark;
}
.bebold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 25%, transparent 80%);
}
.bebold-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .bebold-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 460px; } }
.bb-wordmark { display: inline-flex; align-items: flex-end; gap: 8px; font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.bb-mark { display: inline-flex; width: 22px; height: 22px; color: #c8f76c; transform: translateY(-3px); }
.bb-mark svg { width: 100%; height: 100%; overflow: visible; }
.bebold h2 { margin-top: 22px; font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.bebold h2 em { font-style: normal; color: #c8f76c; }
.bb-tagline { margin-top: 14px; font-size: clamp(18px, 2vw, 22px); color: rgb(255 255 255 / 0.72); letter-spacing: -0.01em; }
.bb-text { margin-top: 18px; max-width: 460px; font-size: 16px; color: rgb(255 255 255 / 0.6); }
.bb-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 28px; padding: 0 20px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.2); background: rgb(11 11 11 / 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.7); transition: transform 450ms cubic-bezier(0.34, 1.5, 0.5, 1), border-color 200ms; }
.bb-link:hover { transform: scale(1.04); border-color: rgb(255 255 255 / 0.45); }
.bb-link svg { width: 16px; height: 16px; }
.bebold :focus-visible { outline-color: #c8f76c; }

.bb-field { --mx: 0; --my: 0; position: relative; height: 420px; }
.bb-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 48px -18px rgb(0 0 0 / 0.75);
  transform: translate(calc(var(--mx) * var(--d) * 28px), calc(var(--my) * var(--d) * 22px)) rotate(var(--r));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms, opacity 600ms;
  opacity: 0;
}
.bb-card .bb-symbol { width: 32px; height: 32px; flex-shrink: 0; overflow: visible; }
.bb-card:hover { filter: brightness(1.1); }
.bebold:not(.is-in) .bb-card { transform: translateY(40px) rotate(0deg) scale(0.6); }
.bebold.is-in .bb-card { opacity: 1; transition-delay: calc(var(--i) * 90ms), 0ms, calc(var(--i) * 90ms); }
.bebold.is-in .bb-field:hover .bb-card, .bebold.is-in .bb-card:hover { transition-delay: 0ms; }
.bb-lime { background: #c8f76c; color: #0b0b0b; }
.bb-purple { background: #7c4af9; color: #fff; }
.bb-teal { background: #5fb3c2; color: #0b0b0b; }
.bb-orange { background: #ff4000; color: #fff; }
.bb-gray { background: #878995; color: #fff; }
@media (max-width: 959px) {
  .bb-field { height: auto; display: flex; flex-wrap: wrap; gap: 22px 12px; padding-top: 8px; }
  .bb-card { position: relative; left: auto; top: auto; height: 48px; padding: 0 14px; gap: 10px; font-size: 14.5px; transform: rotate(calc(var(--r) * 0.5)); }
  .bb-card .bb-symbol { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bebold .bb-card { opacity: 1; transform: rotate(var(--r)); }
}

/* Coque 3D et visage SVG. L'inclinaison est déjà présente dans l'image. */
.ai-word { position: relative; display: inline-block; margin-inline-end: .96em; white-space: nowrap; isolation: isolate; }
.robot { position: absolute; z-index: -1; right: -1.03em; bottom: -0.13em; width: 1.16em; aspect-ratio: 1024 / 829; pointer-events: none; }
.robot-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.robot-shell { filter: brightness(.8) saturate(.75); }
.robot-face { filter: drop-shadow(0 0 9px rgb(200 247 108 / .55)); }
.robot-v2 { aspect-ratio: 1; width: 1.28em; right: -.94em; bottom: -.28em; }

/* Logo bexio : la marque (carré bleu, « bx » vert) partout où bexio intervient ; le mot suit le thème. */
.bexio-mark { display: inline-block; flex-shrink: 0; width: 1.1em; height: 1.1em; border-radius: 22%; vertical-align: -0.18em; }
.bexio-word { fill: #0d407e; }
/* Sur fond sombre, la version verte du logo, selon les règles de bexio. */
[data-theme="dark"] .bexio-word { fill: #81dd01; }
.bexio-brand { margin-bottom: 18px; }
.bexio-logo { display: block; width: auto; height: 30px; }
.proposal-title .bexio-mark { width: 16px; height: 16px; margin-top: 2px; }
.pill .bexio-mark { width: 14px; height: 14px; }
.os-apps { margin-top: 22px; }
.os-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.os-button svg { width: 16px; height: 16px; margin-top: -2px; }
.os-needs { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.steps button .bexio-mark { width: 12px; height: 12px; margin-right: 5px; vertical-align: -0.12em; }

/* Démo en plein écran */
.demo-open { overflow: hidden; }
.demo-modal { width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 56px 20px 20px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-hero); background: var(--bg-canvas); color: var(--text-primary); box-shadow: var(--shadow-pop); }
.demo-modal::backdrop { background: var(--bg-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-modal[open] { animation: pop-in 260ms var(--ease) both; }
.demo-close { position: absolute; top: 12px; right: 12px; border-radius: 999px; }
.demo-modal .chat { height: min(640px, calc(100dvh - 340px)); min-height: 320px; }
@media (max-width: 599px) {
  .demo-modal { width: 100vw; height: 100dvh; max-height: none; padding: 52px 10px 10px; border: 0; border-radius: 0; }
  .demo-modal .panels { display: none; }
  .demo-modal .chat { height: calc(100dvh - 290px); min-height: 300px; }
  .demo-head .section-head h2 { font-size: 20px; }
}

/* Démo : titre en haut de la fenêtre, et bouton flottant pour l'ouvrir de partout. */
.demo-head .section-head { max-width: none; margin: 0 auto 18px; text-align: center; }
.demo-head .section-head h2 { margin-top: 8px; font-size: clamp(22px, 2.8vw, 32px); }
.demo-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), background-color 120ms;
}
.demo-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
.demo-fab svg { width: 18px; height: 18px; }
.demo-fab.is-hidden, .demo-open .demo-fab { opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; }
@media (max-width: 480px) { .demo-fab { right: 16px; bottom: 16px; height: 44px; padding: 0 16px 0 13px; font-size: 14px; } }

/* Réponse au message inattendu : le petit robot qui rit, puis le bouton pour recommencer. */
.msg-laugh { display: flex; align-items: flex-start; gap: 10px; }
.msg-laugh p { margin-bottom: 6px; }
.laugh-guide { color: var(--text-secondary); }
.laugh-guide strong { color: var(--text-primary); }
.laugh-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.laugh-robot { flex-shrink: 0; width: 56px; height: 56px; }
.laugh-robot .robot { position: static; display: block; width: 100%; height: 100%; aspect-ratio: auto; z-index: auto; }
.msg-laugh .btn svg { width: 15px; height: 15px; }
