/* REJO — structure et palette reprises de x.ai/bot : blanc, encre, ivoire, pilules noires/grises, cartes à gros rayon. */
:root {
  --bg: #ffffff;
  --ivory: #f9f8f6;
  --gray: #efeeec;
  --gray-2: #e4e3e0;
  --line: #e6e8ee;
  --line-2: #d5d9e2;
  --ink: #0a0a0a;
  --muted: #62666c;
  --pig: #fea6a2;
  --pig-deep: #f0707a;
  --pig-text: #b3303f;
  --teal: #17775a;
  --teal-bg: #e3f3ed;

  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --r-card: 32px;
  --r-box: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
.h1 { font-weight: 500; font-size: clamp(2.5rem, 4.9vw, 4.1rem); line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font: 500 0.98rem/1 var(--f); transition: transform 0.25s var(--ease), background 0.25s, color 0.25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2a; }
.btn--gray { background: var(--gray); color: var(--ink); }
.btn--gray:hover { background: var(--gray-2); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 44px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; transition: transform 0.35s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; padding: 10px 14px; font-size: 0.97rem; color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--gray); align-items: center; justify-content: center; }
.burger span, .burger span::before { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease); }
.burger span::before { content: ""; position: absolute; top: 5px; left: 0; }
.burger span { transform: translateY(-2.5px); }
.menu-open .burger span { transform: rotate(45deg); }
.menu-open .burger span::before { transform: translateY(-5px) rotate(-90deg); }
.mmenu { position: fixed; inset: 0; z-index: 40; background: #fff; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: grid; align-content: start; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; overflow-y: auto; }
.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu a.l { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mmenu .actions { margin-top: 24px; flex-direction: column; }
.mmenu .actions .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(40px, 7vh, 84px)) 0 0; text-align: center; }
.hero__in { display: grid; justify-items: center; gap: 28px; }
.annonce { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.annonce b { font-weight: 500; }
.annonce span { color: var(--muted); }
.annonce i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gray); transition: transform 0.25s var(--ease), background 0.25s; }
.annonce:hover i { transform: translate(2px, -2px); background: var(--gray-2); }
.annonce svg { width: 11px; height: 11px; stroke: var(--ink); fill: none; stroke-width: 2; }
.annonce img { width: 22px; height: 22px; border-radius: 7px; }
.hero .h1 { max-width: 17ch; }
.hero .lede { max-width: 58ch; }
.trust { font-size: 0.95rem; color: var(--muted); }
.channels { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
.chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); transition: transform 0.25s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip img, .chip svg { width: 22px; height: 22px; }
.chip--pig img { width: 26px; height: 26px; border-radius: 7px; }

/* Fenêtre d'application */
.appwin { margin-top: clamp(44px, 7vh, 72px); background: var(--ivory); border: 1px solid var(--line); border-radius: 24px 24px 0 0; border-bottom: 0; text-align: left; overflow: hidden; box-shadow: 0 30px 80px rgba(10,10,10,0.05); }
.appwin__bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #28c840; }
.appwin__body { display: grid; grid-template-columns: 280px 1fr; height: 520px; }
.side { padding: 4px 14px 14px; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--line); }
.side__search { height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.th { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; border-radius: 12px; align-items: center; transition: background 0.2s; }
.th:hover { background: rgba(10, 10, 10, 0.04); }
.th.is-on { background: var(--gray); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; grid-auto-flow: column; justify-content: center; }
.av i { width: 4px; height: 10px; border-radius: 3px; background: #fff; margin: 0 2px; }
.th b { display: block; font-weight: 500; font-size: 0.92rem; line-height: 1.2; }
.th span { display: block; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.th time { color: var(--muted); font-size: 0.74rem; align-self: start; padding-top: 2px; }
.main { display: grid; grid-template-rows: auto 1fr auto; background: #fff; border-radius: 16px 0 0 0; min-width: 0; }
.main__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.main__top span { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.main__top .av { width: 24px; height: 24px; }
.main__top .av i { width: 3px; height: 8px; margin: 0 1.5px; }
.feed { padding: 22px 28px; display: grid; gap: 12px; align-content: start; overflow: hidden; }
.b { max-width: 70%; padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; }
.b--bot { background: var(--gray); justify-self: start; border-bottom-left-radius: 6px; }
.b--me { background: #141414; color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.b--dim { color: var(--muted); background: transparent; padding-left: 0; font-size: 0.88rem; }
.b b { font-weight: 500; }
.res { justify-self: start; width: min(100%, 460px); border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); padding: 14px; display: grid; gap: 10px; }
.res__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.res__row .ini { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-2); display: grid; place-items: center; font-size: 0.72rem; font-weight: 500; }
.res__row small { color: var(--teal); font-weight: 500; font-size: 0.78rem; }
.res__btns { display: flex; gap: 8px; margin-top: 2px; }
.mini { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 500; display: inline-flex; align-items: center; transition: transform 0.2s var(--ease); }
.mini:hover { transform: translateY(-1px); }
.mini--dark { background: var(--ink); color: #fff; }
.mini--line { background: #fff; border: 1px solid var(--line-2); }
.composer { margin: 0 24px 18px; height: 48px; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; padding: 0 8px 0 18px; color: var(--muted); font-size: 0.95rem; gap: 12px; }
.composer em { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.composer em svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.sec { padding: clamp(88px, 13vh, 150px) 0 0; }
.sec__head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: clamp(44px, 7vh, 80px); }
.sec__head .lede { max-width: 62ch; }

/* Panneau ivoire + mascotte géante */
.panel { position: relative; overflow: hidden; background: var(--ivory); border-radius: var(--r-card); padding: clamp(36px, 6vw, 72px); min-height: 480px; }
.panel__txt { position: relative; z-index: 1; display: grid; gap: 20px; max-width: 520px; }
.panel__pig { position: absolute; right: clamp(-120px, -7vw, -40px); bottom: -22%; width: clamp(320px, 42vw, 620px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0a0a0a; }
.panel__pig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.panel:hover .panel__pig img { transform: scale(1.03); }

/* Cartes 2x2 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.c2 { background: var(--ivory); border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px) 0; display: grid; grid-template-rows: auto 1fr; gap: 32px; overflow: hidden; transition: transform 0.3s var(--ease); min-height: 590px; }
.c2:hover { transform: translateY(-2px); }
.c2__txt { display: grid; gap: 6px; }
.c2__txt p { color: var(--muted); font-size: 1.06rem; text-wrap: pretty; }
.c2__txt h3 { font-size: 1.12rem; font-weight: 500; }
.c2__vis { align-self: end; }
.box { background: #f2f1ef; border-radius: var(--r-box) var(--r-box) 0 0; padding: 18px 18px 0; display: grid; gap: 4px; }
.box__top { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 0.98rem; }
.box__top small { font-weight: 500; font-size: 0.76rem; color: #a05a00; background: #fff1d6; padding: 4px 10px; border-radius: 999px; }
.box > p { font-size: 0.95rem; color: #2b2b2b; margin-bottom: 14px; }
.art { position: relative; height: 290px; border-radius: 12px 12px 0 0; overflow: hidden; }
.art::after { content: ""; position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.art--a { background: radial-gradient(70% 90% at 8% 25%, #f4b8a6 0, transparent 62%), radial-gradient(80% 100% at 100% 100%, #2c8f93 0, transparent 60%), linear-gradient(120deg, #a9d0b8, #e2b3a8); }
.art--b { background: linear-gradient(180deg, #3d84b6 0%, #86b0cf 38%, #f2ab94 78%, #f28f7a 100%); }
.win { position: absolute; left: 50%; top: 30px; translate: -50% 0; width: 78%; min-height: 300px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(10, 10, 10, 0.18); padding: 12px 14px; display: grid; gap: 10px; align-content: start; z-index: 1; }
.win .dots i { width: 7px; height: 7px; }
.win .dots { gap: 5px; }
.win__row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 0.78rem; padding: 8px 10px; border-radius: 10px; background: var(--ivory); }
.win__row .ini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0a; font-size: 0.72rem; font-weight: 600; }
.win__row b { font-weight: 500; }
.win__row small { font-size: 0.68rem; padding: 3px 8px; border-radius: 999px; background: var(--teal-bg); color: #17694e; font-weight: 500; }
.win__row small.w { background: #fff1d6; color: #a05a00; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding: 0 6px; }
.bars i { flex: 1; background: var(--gray-2); border-radius: 4px 4px 0 0; }
.bars i:nth-child(n+5) { background: #cfd5dc; }
.win__title { font-size: 0.74rem; color: var(--muted); display: flex; justify-content: space-between; }
.cursor { position: absolute; right: 16%; top: 128px; z-index: 2; display: grid; gap: 4px; justify-items: start; }
.cursor svg { width: 16px; height: 16px; fill: #0a0a0a; stroke: #fff; stroke-width: 1.5; }
.cursor span { background: #0a0a0a; color: #fff; font-size: 0.72rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; }

/* cartes 3 et 4 : fils de conversation */
.thread { display: grid; gap: 10px; padding-bottom: 28px; align-content: end; height: 100%; }
.tb { max-width: 92%; background: #efeeec; border-radius: 18px; padding: 13px 16px; font-size: 0.98rem; color: #1b1b1b; line-height: 1.45; }
.tb--w { background: #fff; border: 1px solid var(--line); }
.tb--r { justify-self: end; }
.tb small { display: block; color: var(--muted); font-size: 0.76rem; margin-bottom: 4px; }
.flow { display: grid; gap: 10px; padding-bottom: 28px; align-content: end; }
.flow .tb { display: grid; gap: 6px; }
.flow .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 500; color: #17694e; }
.flow .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.flow .arrow { justify-self: center; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.flow .done { background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 16px; font-size: 0.98rem; }
.flow .done small { color: #a6a9ad; display: block; margin-bottom: 4px; font-size: 0.76rem; }

/* ---------- Un job par agent (chips + iPhone) ---------- */
.jobs { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 8vw, 140px); align-items: center; min-height: 760px; padding-left: clamp(0px, 4vw, 64px); }
.jobs__txt { display: grid; gap: 28px; justify-items: start; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.cx:hover { transform: translateY(-1px); background: var(--ivory); }
.cx.is-on { background: var(--teal-bg); border-color: transparent; color: #17694e; }
.cx.is-on::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px #7fc8ad; }
.jobs__desc { font-size: 1.08rem; color: var(--muted); min-height: 7.5em; text-wrap: pretty; }
.jobs__desc b { color: var(--ink); font-weight: 500; }

.phone { position: relative; width: 340px; height: 680px; margin-inline: auto; border-radius: 58px; background: #fafaf9; border: 9px solid #2c2c2e; box-shadow: 0 0 0 2px #0a0a0a, 0 40px 80px rgba(10, 10, 10, 0.16); overflow: hidden; }
.island { position: absolute; z-index: 5; top: 12px; left: 50%; translate: -50% 0; width: 112px; height: 32px; border-radius: 20px; background: #000; }
.phone__top { position: absolute; z-index: 4; top: 52px; left: 0; right: 0; padding: 0 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.round { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1); display: grid; place-items: center; }
.round svg { width: 18px; height: 18px; stroke: #333; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.titlepill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1); font-weight: 500; font-size: 0.9rem; }
.titlepill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: 120px 16px 92px; display: grid; gap: 10px; align-content: start; -webkit-mask-image: linear-gradient(transparent 0, transparent 78px, #000 112px, #000 calc(100% - 96px), transparent calc(100% - 60px)); mask-image: linear-gradient(transparent 0, transparent 78px, #000 112px, #000 calc(100% - 96px), transparent calc(100% - 60px)); overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.ph-card { background: #f1f0ee; border-radius: 22px; padding: 12px; display: grid; gap: 10px; }
.ph-doc { background: #fbfbfa; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 0.95rem; }
.ph-doc div { padding: 12px 14px; border-top: 1px solid var(--line); }
.ph-doc div:first-child { border-top: 0; color: var(--muted); font-size: 0.88rem; }
.ph-doc div b { font-weight: 500; margin-left: 6px; color: var(--ink); }
.ph-doc p { margin-bottom: 10px; }
.ph-doc p:last-child { margin: 0; }
.ph-btns { display: flex; gap: 8px; }
.ph-btns .mini { height: 38px; padding: 0 18px; font-size: 0.9rem; }
.pb { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 0.97rem; line-height: 1.4; }
.pb--me { background: #141414; color: #fff; justify-self: end; border-bottom-right-radius: 8px; }
.pb--bot { background: #efeeec; justify-self: start; border-bottom-left-radius: 8px; }
.pb b { font-weight: 500; }
.ph-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ph-pills span { font-size: 0.76rem; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--teal-bg); color: #17694e; }
.ph-pills span.go { background: #fde6e4; color: var(--pig-text); }
.ph-rows { display: grid; gap: 6px; }
.ph-rows div { display: flex; align-items: center; gap: 10px; background: #fbfbfa; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; font-size: 0.9rem; }
.ph-rows .ini { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-2); display: grid; place-items: center; font-size: 0.72rem; font-weight: 500; flex: none; }
.ph-rows small { margin-left: auto; color: var(--teal); font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
.ph-rows small.w { color: #a05a00; }
.ph-cap { font-size: 0.78rem; color: var(--muted); padding: 2px 4px; }
.ph-step { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ph-step i { height: 5px; border-radius: 3px; background: var(--gray-2); }
.ph-step i.on { background: var(--teal); }
.ph-step-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 0.66rem; color: var(--muted); }
.ph-in { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; height: 52px; border-radius: 999px; background: #fff; box-shadow: 0 6px 22px rgba(10, 10, 10, 0.1); display: flex; align-items: center; gap: 12px; padding: 0 8px; color: #62666c; font-size: 0.92rem; }
.ph-in .round { width: 38px; height: 38px; box-shadow: none; background: #f3f2f0; flex: none; }
.ph-in .mic { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: #f3f2f0; display: grid; place-items: center; }
.ph-in .mic svg { width: 16px; height: 16px; stroke: #444; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.sidebtn { position: absolute; left: -12px; width: 3px; background: #2c2c2e; border-radius: 2px; }

/* ---------- Bande sombre : chiffres ---------- */
.dark { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(40px, 6vw, 88px); position: relative; overflow: hidden; }
.dark .h2 { color: #fff; max-width: 14ch; }
.dark__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 8vh, 96px); }
.fig { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 14px; align-content: start; }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig__n { white-space: nowrap; font: 500 clamp(2rem, 3.8vw, 3.4rem)/1 var(--f); letter-spacing: -0.05em; }
.fig__n em { font-style: normal; color: var(--pig); }
.fig p { color: #a6a9ad; font-size: 0.98rem; max-width: 24ch; }

/* ---------- Co-deal ---------- */
.eqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eq { background: var(--ivory); border-radius: var(--r-card); padding: 40px; display: grid; gap: 22px; align-content: start; transition: transform 0.3s var(--ease); }
.eq:hover { transform: translateY(-2px); }
.eq--deal { background: var(--ink); color: #fff; }
.eq__t { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.eq li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 0.98rem; }
.eq--deal li { border-color: rgba(255, 255, 255, 0.16); }
.eq li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.eq--deal li::before { background-color: var(--pig); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.eq li b { font-weight: 500; }
.eq li span { color: var(--muted); }
.eq--deal li span { color: #c9cbce; }
.note { margin-top: 32px; text-align: center; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.note span { color: var(--muted); }

/* ---------- Comparatif ---------- */
.cmp { background: var(--ivory); border-radius: var(--r-card); overflow: hidden; }
.cmp__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cmp__row:first-child { border-top: 0; }
.cmp__c { padding: 24px 36px; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.cmp__c + .cmp__c { border-left: 1px solid var(--line); color: var(--ink); }
.cmp__head .cmp__c { font-weight: 500; font-size: 1.1rem; color: var(--ink); align-items: center; }
.cmp__c svg { width: 18px; height: 18px; flex: none; margin-top: 4px; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cmp__c .x { stroke: #9a9ea3; }
.cmp__c .ok { stroke: var(--teal); }

/* ---------- Installation / pour qui ---------- */
.band { background: var(--ivory); border-radius: var(--r-card); padding: clamp(32px, 5vw, 64px); }
.band__head { display: grid; gap: 12px; margin-bottom: 44px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 0 28px; border-left: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.step:first-child { border-left: 0; padding-left: 0; }
.step i { font: 500 0.92rem var(--f-mono); font-style: normal; color: var(--muted); }
.step p { color: var(--muted); font-size: 0.98rem; }
.who { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; max-width: 640px; }
.tag { height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; font-weight: 500; transition: transform 0.25s var(--ease), background 0.25s; }
.tag:hover { transform: translateY(-2px); background: var(--gray); }

/* ---------- FAQ ---------- */
.faqs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 1.02rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 1.5px; background: currentColor; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 40px 24px 0; color: var(--muted); text-wrap: pretty; max-width: 58ch; }

/* ---------- Appel final ---------- */
.final { padding: clamp(100px, 16vh, 180px) 0 0; text-align: center; overflow: hidden; }
.final__in { display: grid; gap: 22px; justify-items: center; }
.final__in .h2 { max-width: 20ch; }
.outline { margin-top: clamp(56px, 10vh, 110px); width: min(100%, 1080px); margin-inline: auto; }
.outline svg { width: 100%; height: auto; }
.outline path, .outline ellipse, .outline circle { fill: none; stroke: #d5d9e2; stroke-width: 1.3; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 0.9rem; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.foot ul { display: grid; gap: 9px; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: inline-flex; }
  .jobs { grid-template-columns: 1fr; padding-left: 0; }
  .jobs__txt { max-width: none; }
  .dark__grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .appwin__body { grid-template-columns: 1fr; height: 460px; }
  .side { display: none; }
  .main { border-radius: 16px 16px 0 0; }
  .grid2, .eqs, .faqs { grid-template-columns: 1fr; }
  .c2 { min-height: 0; }
  .who { grid-template-columns: 1fr; }
  .tags { justify-content: flex-start; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .cmp__c { padding: 18px 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .actions .btn { width: 100%; }
  .dark__grid { grid-template-columns: 1fr; }
  .fig { border-left: 0; padding: 0 0 28px; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .fig:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line-2); }
  .step:last-child { border: 0; }
  .cmp__row { grid-template-columns: 1fr; }
  .cmp__c + .cmp__c { border-left: 0; border-top: 1px dashed var(--line-2); }
  .cmp__head .cmp__c:first-child { display: none; }
  .phone { width: min(100%, 340px); }
  .b { max-width: 88%; }
  .panel { min-height: 520px; padding-bottom: 260px; }
  .panel__pig { bottom: -40px; right: -70px; width: 260px; }
}
@media (min-width: 1101px) { .mmenu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.win__row b { white-space: nowrap; } @media (max-width: 640px) { .win { width: 92%; } .win__row small { white-space: nowrap; } }



/* Cartes animées (scènes en boucle) : seulement quand le script les active */
.art.live .win__row small { transition: background .3s, color .3s, transform .3s; }
.art.live .win__row small.n { background: #ecebe8; color: #62666c; }
.art--a.live .win { min-height: 0; top: 16px; gap: 8px; padding-bottom: 12px; }
.art--a.live .win__row { padding: 5px 10px; }
.wa { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; width: 78%; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(10,10,10,.22); font-size: .74rem; line-height: 1.35; color: #0a0a0a; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.wa.is-on { opacity: 1; transform: none; }
.wa--out { background: #e3f4ea; }
.wa__t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa__t b { font-weight: 600; margin-right: 6px; }
.wa__dots { display: none; gap: 4px; padding: 4px 0; }
.wa.is-typing .wa__dots { display: inline-flex; }
.wa.is-typing .wa__t { display: none; }
.wa__dots i { width: 6px; height: 6px; border-radius: 50%; background: #8a8f96; animation: waDot 1s infinite ease-in-out; }
.wa__dots i:nth-child(2) { animation-delay: .15s; } .wa__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.art--b.live .bars i { transform-origin: bottom; transition: transform .32s cubic-bezier(.2,.7,.2,1), background .2s; }
.art--b.live .bars i.hot { background: var(--pig-deep); }
.art--b.live .cursor { right: auto; left: 0; top: 0; opacity: 0; transition: transform .5s cubic-bezier(.45,.05,.2,1), opacity .2s; }
.art--b.live .cursor span { opacity: 0; transform: scale(.9); transform-origin: left top; transition: opacity .25s, transform .25s; }
.art--b.live .cursor.say span { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wa__dots i { animation: none; } }

/* Conversation « Il connaît votre niche » */
.blur { filter: blur(5px); user-select: none; }
.att { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; margin: 8px 0; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; font-weight: 500; }
.att svg { width: 16px; height: 16px; flex: none; }
.thread { position: relative; }
.thread.live .tb { visibility: hidden; }
.thread.live .tb.show { visibility: visible; animation: tbIn .28s cubic-bezier(.2,.7,.2,1) both; }
.thread.live .tb.out { animation: tbOut .28s ease both; }
@keyframes tbIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tbOut { to { opacity: 0; transform: translateY(-6px); } }
.tb--dots { display: none; position: absolute; width: 62px; padding: 14px 16px; gap: 5px; }
.thread.live .tb--dots.show { display: flex; visibility: visible; animation: none; }
.tb--dots i { width: 7px; height: 7px; border-radius: 50%; background: #8a8f96; animation: waDot 1s infinite ease-in-out; }
.tb--dots i:nth-child(2) { animation-delay: .15s; } .tb--dots i:nth-child(3) { animation-delay: .3s; }

/* Carte « Un deal à closer » : les étapes s'enchaînent, la barre de suivi se remplit */
.flow.live > * { visibility: hidden; }
.flow.live > .show { visibility: visible; animation: tbIn .3s cubic-bezier(.2,.7,.2,1) both; }
.flow.live > .out { animation: tbOut .28s ease both; }
.flow .tag i { transition: transform .3s; }
.flow.live .tb.show .tag i { animation: tagPulse 1.4s ease-in-out 2; }
@keyframes tagPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(23,119,90,.45); } 50% { box-shadow: 0 0 0 6px rgba(23,119,90,0); } }
.flow .bar { display: none; height: 4px; border-radius: 999px; background: #2b2b2b; overflow: hidden; margin-top: 10px; }
.flow.live .bar { display: block; }
.flow .bar i { display: block; height: 100%; width: 0; background: #5fd0a8; border-radius: inherit; transition: width 1.1s cubic-bezier(.4,.1,.2,1); }
.flow .bar.full i { width: 100%; }
@media (prefers-reduced-motion: reduce) { .flow.live .tb.show .tag i { animation: none; } }

.ph-file { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; margin: 8px 0; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; font-weight: 500; }
.ph-file svg { width: 16px; height: 16px; flex: none; }

/* Bande de logos : deux lignes qui défilent en sens inverse */
.dark .h2 { max-width: 22ch; }
.logos { margin: clamp(40px, 5vw, 64px) calc(-1 * clamp(40px, 6vw, 88px)) calc(-1 * clamp(16px, 3vw, 40px)); display: grid; gap: 22px; padding-top: 34px; border-top: 1px solid #262626; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__row { overflow: hidden; }
.logos__track { display: flex; align-items: center; gap: 64px; width: max-content; padding-right: 64px; animation: logosGo 120s linear infinite; }
.logos__row--rev .logos__track { animation-direction: reverse; animation-duration: 140s; }
.logos__track img { height: 26px; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); opacity: .62; transition: opacity .2s; flex: none; }
.logos__track img:hover { opacity: 1; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logosGo { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; } .logos__track img[aria-hidden] { display: none; } .logos { -webkit-mask-image: none; mask-image: none; } }

.dark .h2 strong { font-weight: 600; }
.dark .h2 { max-width: 26ch; }

/* Simulateur de deal */
.sim { display: grid; grid-template-columns: 1.1fr .9fr; max-width: 980px; margin: 48px auto 0; border-radius: var(--r-card); overflow: hidden; background: var(--ivory); }
.sim__in { padding: clamp(24px, 4vw, 44px); display: grid; gap: 26px; align-content: start; }
.sim__in h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.sim__f { display: grid; gap: 12px; }
.sim__f label { display: flex; justify-content: space-between; align-items: baseline; font-size: .98rem; font-weight: 500; }
.sim__f output { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.sim input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), #dcdad6 var(--p, 50%)); outline: none; cursor: pointer; }
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(10,10,10,.2); transition: transform .15s; }
.sim input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(10,10,10,.2); }
.sim input[type=range]::-moz-range-track { background: transparent; }
.sim input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.sim input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sim__out { background: var(--ink); color: #fff; padding: clamp(24px, 4vw, 44px); display: grid; gap: 28px; align-content: center; }
.sim__k { display: grid; gap: 4px; }
.sim__k span { font-size: .95rem; color: #a6a9ad; }
.sim__k b { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sim__k:first-child b { color: var(--pig); }
.sim__k small { font-size: .85rem; color: #a6a9ad; }
.sim__n { font-size: .78rem; color: #8a8d92; margin-top: 4px; }
@media (max-width: 760px) { .sim { grid-template-columns: 1fr; margin-top: 36px; } }

.h2--mix { font-weight: 400; }
.h2--mix strong { font-weight: 600; }

/* Vidéo de présentation dans le premier écran (remplace la fenêtre d'application) */
.herovid { position: relative; margin-top: clamp(44px, 7vh, 72px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(10,10,10,0.08); background: var(--ivory); aspect-ratio: 16 / 9; }
.herovid video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .herovid { border-radius: 16px; } }

.herovid__sound { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 1rem/1 var(--font, inherit); font-family: inherit; cursor: pointer; box-shadow: 0 0 0 8px rgba(10,10,10,.08), 0 16px 40px rgba(10,10,10,.28); transition: transform .15s, background .15s; }
.herovid__sound[hidden] { display: none; }
.herovid__sound svg { width: 22px; height: 22px; flex: none; }
.herovid__sound:hover { transform: scale(1.04); background: #262626; }
.herovid__sound:active { transform: scale(.97); }
.herovid__sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { .herovid__sound { padding: 11px 18px; font-size: .9rem; } }
