/* Gagner du Temps — démo agent IA
   Mobile d'abord. Palette sobre et chaude. */

/* Polices auto-hébergées (Inter et Newsreader, licence SIL OFL 1.1) :
   aucune requête vers un service tiers. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/newsreader-latin-ext.woff2") format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/newsreader-latin.woff2") format("woff2"); 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 {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #1d1a16;
  --ink-2: #4a4239;
  --muted: #6f655a;
  --line: #e2d8c9;
  --line-2: #d5c8b5;
  --accent: #a4532c;       /* terre cuite */
  --accent-ink: #8a4321;
  --accent-soft: #f4e3d7;
  --sage: #4f6b5a;
  --sage-soft: #e3ebe4;
  --amber: #a36a12;
  --amber-soft: #f6ead2;
  --red: #a2372c;
  --red-soft: #f6dfda;
  --night: #1f2a26;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(40, 28, 15, .05), 0 8px 24px -12px rgba(40, 28, 15, .16);
  --shadow-lg: 0 2px 4px rgba(40, 28, 15, .05), 0 24px 48px -20px rgba(40, 28, 15, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 6.4vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; }
.noscript { text-align: center; padding: 16px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
.eyebrow--light { color: #e9c7b2; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 38em; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-sub { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 15px 24px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(29, 26, 22, .55); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn__note { font-weight: 400; opacity: .78; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: .9rem; white-space: nowrap; }
.btn--link { padding: 8px 2px; background: none; border: 0; color: var(--accent-ink); font-weight: 500; border-radius: 4px; }
.btn--link:hover { color: var(--ink); text-decoration: underline; }
.btn--tiny { font-size: .875rem; padding: 4px 2px; }
.btn--block { width: 100%; }
.btn--light { background: #fbf6ef; color: var(--night); }
.btn--light:hover { background: #fff; color: var(--accent-ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 243, 236, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; flex: none; }
.brand__mark::after { content: ""; position: absolute; left: 7px; top: 6px; width: 12px; height: 12px; border: 2px solid var(--paper); border-radius: 50%; border-right-color: transparent; transform: rotate(-30deg); }
.brand__name { white-space: nowrap; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -.01em; }
.topbar__nav { display: none; gap: 26px; }
.topbar__nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; }
.topbar__nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 56px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 28px 0 24px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%234f6b5a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__caption { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.notif { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-lg); animation: rise .8s var(--ease) .15s both; }
.notif__head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.notif__app { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sage); }
.notif__app::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.notif__title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 12px; }
.notif__rows { margin: 0; display: grid; gap: 8px; }
.notif__rows div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .93rem; }
.notif__rows dt { color: var(--muted); }
.notif__rows dd { margin: 0; font-weight: 500; }
.notif__foot { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill--low { background: var(--sage-soft); color: var(--sage); }
.pill--mid { background: var(--amber-soft); color: var(--amber); }
.pill--high { background: var(--red-soft); color: var(--red); }

/* ---------- Démo ---------- */
.demo { padding: 64px 0 72px; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo__bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.scene { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; background: var(--night); color: #eae4da; border-radius: var(--r); font-size: .95rem; line-height: 1.4; }
.scene strong { color: #fff; }
.scene__clock { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.6px solid #c9b9a3; position: relative; }
.scene__clock::before, .scene__clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 1.6px; background: #fff; transform-origin: bottom center; border-radius: 1px; }
.scene__clock::before { height: 7px; transform: translateX(-50%) rotate(-45deg); }   /* 22h45 */
.scene__clock::after { height: 9px; transform: translateX(-50%) rotate(282deg); animation: tick 60s steps(60) infinite; }
.demo__switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.fictive { font-size: .8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.fictive.is-custom { color: var(--sage); background: var(--sage-soft); }

.tabs { display: flex; gap: 4px; padding: 4px; background: #e6dccd; border-radius: 999px; margin-bottom: 14px; }
.tabs [role="tab"] { -webkit-tap-highlight-color: transparent; flex: 1; font: 500 .9rem/1.2 var(--sans); border: 0; background: transparent; color: var(--ink-2); padding: 10px 8px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs [aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(40, 28, 15, .12); }
.tabs__badge { font-size: .72rem; font-weight: 600; background: var(--sage); color: #fff; padding: 2px 7px; border-radius: 999px; }
.tabs__badge.is-bump { animation: bump .5s var(--ease); }

.demo__grid { display: grid; gap: 20px; }
.demo__grid > .is-inactive { display: none; }

/* Chat */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 520px; height: min(72vh, 640px); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 .85rem/1 var(--sans); letter-spacing: .02em; }
.avatar--sm { width: 34px; height: 34px; font-size: .75rem; }
.chat__who { min-width: 0; flex: 1; }
.chat__name { margin: 0; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__status { margin: 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4c9a6a; box-shadow: 0 0 0 3px rgba(76, 154, 106, .18); }
.icon-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 50%; cursor: pointer; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--paper); color: var(--ink); }

.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.5; word-wrap: break-word; animation: msgIn .32s var(--ease) both; }
.msg p { margin: 0; }
.msg p + p { margin-top: .5em; }
.msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--note { align-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: .84rem; text-align: center; padding: 4px 8px; }
.msg__time { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.msg--user .msg__time { color: rgba(255, 255, 255, .6); text-align: right; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; animation: msgIn .25s var(--ease) both; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

.chat__suggest { display: flex; gap: 8px; padding: 6px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chat__suggest::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 500 .88rem/1.25 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s, transform .2s var(--ease); animation: msgIn .35s var(--ease) both; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip:active { transform: scale(.98); }

.chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.chat__form:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(164, 83, 44, .1); }
.chat__form textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: 400 16px/1.45 var(--sans); color: var(--ink); padding: 8px 0; max-height: 120px; }
.chat__form textarea::placeholder { color: #9a8f82; }
.send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.send:hover { background: var(--accent-ink); }
.send:disabled { opacity: .45; cursor: not-allowed; }
.chat__meta { display: flex; justify-content: space-between; gap: 10px; padding: 8px 18px 12px; font-size: .76rem; color: var(--muted); }
.chat__mode { color: var(--amber); }
.chat__count { margin-left: auto; white-space: nowrap; }

/* Panneau artisan */
.lead-panel, .lead { font-size: 1rem; }
aside.lead { max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; color: var(--ink); align-self: start; }
.lead__head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lead__kicker { margin: 0 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.lead__title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 12px; }
.lead__via { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.progress { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 4px; transition: width .6s var(--ease); }
.lead__status { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.lead__fields { margin: 0; }
.field { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.field dt { font-size: .82rem; color: var(--muted); }
.field dd { margin: 0; font-weight: 500; color: #b3a898; word-break: break-word; }
.field.is-filled dd { color: var(--ink); }
.field.is-new { animation: flash 1.4s var(--ease); }
.field.is-new dd { animation: fieldIn .45s var(--ease) both; }
.lead__foot { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.lead.is-complete .lead__status { color: var(--sage); font-weight: 600; }

.demo__after { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.demo__after p { margin: 0; max-width: 46em; }

/* ---------- Votre métier ---------- */
.custom { padding: 72px 0; }
.custom__grid { display: grid; gap: 28px; align-items: start; }
.custom__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.custom__form p { margin: 0; }
.input { display: grid; gap: 6px; }
.input label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.input input { font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.input input:focus { outline: 0; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(164, 83, 44, .1); }
.input input[aria-invalid="true"] { border-color: var(--red); }
.form-error { color: var(--red); font-size: .88rem; }

/* ---------- Calculateur ---------- */
.calc { padding: 72px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__grid { display: grid; gap: 24px; }
.calc__inputs { display: grid; gap: 26px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.range label { font-weight: 500; font-size: .98rem; }
.range output { font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; color: var(--accent-ink); }
.range__hint { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 10%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--fill), var(--paper-2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(40, 28, 15, .18); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(40, 28, 15, .18); }
.calc__result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; align-self: start; }
.calc__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.calc__value { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__unit { font-size: .45em; color: var(--muted); }
.calc__detail { margin: 0 0 8px; color: var(--ink-2); }
.calc__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- Cartes ---------- */
.more { padding: 72px 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Comment ça marche ---------- */
.how { padding: 72px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--serif); font-size: 1.1rem; color: var(--accent-ink); margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.trust { border-top: 1px solid var(--line-2); padding-top: 28px; display: grid; gap: 14px; }
.trust__title { font-size: 1.4rem; margin: 0; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust__list li { padding-left: 26px; position: relative; color: var(--ink-2); }
.trust__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sage); }
.trust__list strong { color: var(--ink); }

/* ---------- Offre ---------- */
.offer { padding: 80px 0; background: var(--night); color: #eae4da; }
.offer__inner { max-width: 820px; }
.offer h2 { color: #fff; font-size: clamp(1.8rem, 4.8vw, 2.7rem); }
.offer__sub { font-size: 1.1rem; color: #d9d1c4; max-width: 40em; }
.offer__who { font-size: .92rem; color: #b6ac9e; }
.offer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.offer__mail { margin: 0 0 8px; }
.offer__mail a { color: #fff; }
.offer__free { font-size: .88rem; color: #a99f91; margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 110px; color: var(--muted); font-size: .9rem; }
.footer a { color: var(--ink-2); }
.footer p { max-width: 62em; }

/* ---------- Widget ---------- */
.widget { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.widget__bubble { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(138, 67, 33, .6); transition: transform .25s var(--ease), background-color .2s; animation: pop .5s var(--ease) 1.2s both; }
.widget__bubble:hover { transform: scale(1.05); background: var(--accent-ink); }
.widget__bubble .widget__ico-close { display: none; }
.widget__bubble[aria-expanded="true"] .widget__ico-open { display: none; }
.widget__bubble[aria-expanded="true"] .widget__ico-close { display: block; }
.widget__hint { margin: 0; background: var(--ink); color: #fff; font-size: .84rem; padding: 9px 14px; border-radius: 12px; border-bottom-right-radius: 4px; max-width: 240px; box-shadow: var(--shadow); animation: msgIn .4s var(--ease) both; }
.widget__panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); height: min(560px, calc(100dvh - 110px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: panelIn .3s var(--ease) both; }
.widget__panel[hidden] { display: none; }
.widget__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.widget__who { flex: 1; min-width: 0; }
.widget__title { margin: 0; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget__sub { margin: 0; font-size: .76rem; color: var(--muted); }
.chat__log--compact { padding: 14px 12px 8px; }
.chat__log--compact .msg { font-size: .92rem; }
.chat__form--compact { margin: 6px 10px 10px; }
.widget__embed { border-top: 1px solid var(--line); background: var(--paper); padding: 10px 14px 12px; font-size: .78rem; color: var(--ink-2); }
.widget__embed p { margin: 0 0 6px; }
.widget__embed code { display: block; font: 400 .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--ink); word-break: break-all; }

/* ---------- Animations ---------- */
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes fieldIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: transparent; } 20% { background: var(--sage-soft); } 100% { background: transparent; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tick { to { transform: translateX(-50%) rotate(642deg); } }

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

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .demo__bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .scene { flex: 1; }
}

@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .demo { padding: 88px 0 96px; }
  .tabs { display: none; }
  .demo__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; }
  .demo__grid > .chat.is-inactive { display: flex; }
  .demo__grid > aside.is-inactive { display: block; }
  .chat { height: 620px; }
  aside.lead { position: sticky; top: 84px; padding: 24px; }
  .demo__after { flex-direction: row; align-items: center; gap: 24px; }
  .custom { padding: 96px 0; }
  .custom__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .custom__form { padding: 28px; }
  .calc { padding: 96px 0; }
  .calc__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .calc__result { padding: 32px; position: sticky; top: 84px; }
  .more, .how { padding: 96px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trust { grid-template-columns: 1fr 3fr; gap: 32px; }
  .offer { padding: 104px 0; }
  .widget { right: 24px; bottom: 24px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.05rem; }
  .topbar .btn--small { padding: 8px 12px; font-size: .84rem; }
  .hero__actions .btn--primary { width: 100%; }
  .widget__hint { display: none; }
}

.offer__plans { margin: -6px 0 18px; font-size: .95rem; }
.offer__plans a { color: #e9c7b2; }
.offer__plans a:hover { color: #fff; }

.notfound { min-height: 100vh; display: flex; align-items: center; padding: 48px 0; }
