/* Couleurs Strakt (logo-strakt/kit/GUIDE.md) : Encre #101820, Signal #FA4616.
   Le Signal pur sert aux aplats et grands titres ; --accent (plus profond, 5:1) sert au texte orange et aux boutons. */
:root {
  --ink: #101820; --ink-2: #2b3540; --muted: #5d6670;
  --bg: #f6f7f8; --surface: #fff; --sunken: #eef0f2; --line: #e3e6e9; --line-2: #d3d8dd;
  --signal: #FA4616; --accent: #C9350B; --accent-2: #FA4616; --accent-soft: #fff0ea; --accent-ink: #fff;
  --shadow-sm: 0 1px 2px rgba(16,24,32,.05);
  --shadow: 0 1px 2px rgba(16,24,32,.04), 0 8px 24px -8px rgba(16,24,32,.12);
  --shadow-lg: 0 2px 4px rgba(16,24,32,.04), 0 30px 70px -24px rgba(16,24,32,.28);
  --r: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: Archivo, Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--signal); }
main { overflow-x: clip; }  /* les halos du hero débordent volontairement : pas de défilement horizontal */
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px #fa461626; animation: blink 1.6s infinite; }
.pill { padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.label::before { content: ""; width: 18px; height: 2px; background: var(--signal); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--ink); color: #fff; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); transition: background .15s, box-shadow .2s; }
.btn:hover { background: #232d38; }
.btn:active { scale: .98; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i.go { transform: translateX(3px); }
.btn-accent { background: var(--accent); box-shadow: 0 8px 24px -10px #fa4616aa, inset 0 1px 0 rgba(255,255,255,.18); }
.btn-accent:hover { background: #b02e09; box-shadow: 0 12px 30px -10px #fa4616cc, inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn-ghost:hover { background: var(--sunken); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,247,248,.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 6px 0; }
.brand .logo { height: 26px; width: auto; display: block; overflow: visible; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); font-size: 14px; }
.nav nav a:not(.btn) { position: relative; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--signal); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav nav a:not(.btn):hover::after { scale: 1 1; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* Hero */
.hero { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-bg { position: absolute; inset: -80px -20vw 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.b1 { width: 520px; height: 520px; right: 18%; top: 0; background: radial-gradient(circle, #fa46163d, transparent 65%); }
.b2 { width: 600px; height: 600px; left: 12%; top: 30%; background: radial-gradient(circle, #10182022, transparent 65%); }
.hero-mark { position: absolute; right: 16%; top: 6%; width: min(520px, 60vw); color: var(--ink); opacity: .045; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 32em; margin: 24px 0 34px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* Mots du titre découpés par motion.js */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }

/* Maquette de workflow */
.canvas { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); will-change: transform;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; background-position: 9px 9px; }
.canvas-bar { display: flex; align-items: center; justify-content: space-between; margin: -10px -6px 18px; font-size: 12px; color: var(--muted); }
.canvas-bar b { font-weight: 600; color: var(--ink); font-size: 13px; }
.canvas-bar .live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #e7f6ec; color: #18794e; font-weight: 500; }
.canvas-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.nodes { position: relative; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.nodes::before { content: ""; position: absolute; left: 31px; top: 24px; bottom: 24px; width: 1.5px; background: var(--line-2); }
.node { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: node 7s var(--ease) infinite; animation-delay: calc(var(--n) * 1s); }
.node .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); }
.node.ai .ic { background: linear-gradient(135deg, var(--ink), #2b3a4a); color: var(--signal); border-color: transparent; }
.node b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.node small { display: block; font-size: 12px; color: var(--muted); }
.node .ok { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #fff; opacity: 0; transform: scale(.5);
  animation: ok 7s var(--ease) infinite; animation-delay: calc(var(--n) * 1s + .45s); }
.node .ok .i { width: 12px; height: 12px; stroke-width: 2.6; }
@keyframes node { 0%, 18%, 100% { border-color: var(--line); box-shadow: var(--shadow-sm); } 4%, 10% { border-color: var(--signal); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); } }
@keyframes ok { 0%, 2% { opacity: 0; transform: scale(.5); } 6%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: scale(.5); } }
.toast-mock { position: absolute; right: -18px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 13px; box-shadow: var(--shadow-lg); animation: toast 7s var(--ease) infinite; }
.toast-mock small { display: block; opacity: .65; font-size: 12px; }
.toast-mock .i { color: var(--signal); }
@keyframes toast { 0%, 62% { opacity: 0; transform: translateY(8px); } 68%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: .35; } }

/* Atouts */
.proof { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.proof ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.proof li b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.proof .i { color: var(--accent); margin-top: 2px; }

/* Bandeau d'outils */
.marquee { overflow: hidden; padding: 30px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 clamp(22px, 3vw, 34px)/1 Archivo, sans-serif; letter-spacing: -.03em; color: var(--line-2); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--signal); rotate: 45deg; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 14px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }

/* Projet */
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 32px; transition: box-shadow .3s var(--ease); }
.project:hover { box-shadow: var(--shadow-lg); }
.project-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.media { position: relative; aspect-ratio: 16 / 9; align-self: start; margin: 10px; border-radius: 18px; overflow: hidden; background: var(--ink); }
.media video, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink); }
.media-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; color: #aab4be; font-size: 14px;
  background: radial-gradient(70% 90% at 80% 100%, #fa461633, transparent 70%), linear-gradient(160deg, #1b2733, var(--ink)); }
.media-empty .play { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #fff; box-shadow: 0 0 0 10px #fa461626; animation: pulse 2.4s var(--ease) infinite; }
.media-empty .play .i { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px #fa461600; } }
.project-info { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(12px, 2vw, 26px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.project-info h3 { font-size: clamp(26px, 2.6vw, 34px); }
.project-info > p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 8px; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); }
.project-info .btn { align-self: flex-start; margin-top: auto; }
details.more { border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--ink); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
details.more[open] summary .i { transform: rotate(90deg); }
details.more p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Démo devis */
.demo { border-top: 1px solid var(--line); background: var(--bg); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.demo-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-head h4 { font-size: 22px; letter-spacing: -.025em; }
.demo-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.form { display: grid; gap: 18px; align-content: start; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 7px; }
.field small { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 15px Inter, sans-serif;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #b9c0c7; }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px var(--accent-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 11px; background: var(--sunken); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--signal); }
.range-row .input { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.estimate { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #c3cbd3; }
.estimate span { font-size: 13px; font-weight: 500; }
.estimate b { font: 700 26px Archivo, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.error { color: #b42318; font-size: 13px; margin: -6px 0 0; min-height: 1.3em; }

.result { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0; }
.pipeline { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.pipeline li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.pipeline li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sunken); font-size: 11px; font-weight: 600; }
.pipeline li.run { color: var(--ink); border-color: var(--signal); }
.pipeline li.run::before { content: ""; box-sizing: border-box; border: 2px solid var(--signal); border-right-color: transparent; animation: spin .7s linear infinite; background: none; }
.pipeline li.done { color: var(--accent); border-color: #ffc9b5; background: var(--accent-soft); }
.pipeline li.done::before { content: "✓"; background: var(--signal); color: #fff; }
@keyframes spin { to { transform: rotate(1turn); } }
.preview { position: relative; border-radius: 18px; overflow: hidden; min-height: 560px; border: 1px solid var(--line); background: var(--sunken);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; }
.preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #f6f7f8; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.preview iframe.on { opacity: 1; transform: none; }
.preview-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.preview-empty .doc { width: 120px; height: 150px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 12px; display: grid; gap: 7px; align-content: start; }
.preview-empty .doc i { display: block; height: 6px; border-radius: 3px; background: var(--sunken); }
.preview-empty .doc i:first-child { height: 18px; background: var(--accent-soft); margin-bottom: 4px; }
.preview-empty .doc i:nth-child(3) { width: 70%; } .preview-empty .doc i:last-child { width: 50%; margin-top: auto; background: var(--line-2); }
.preview-empty b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note { font-size: 13px; color: var(--muted); margin: 0 0 0 4px; }

/* Démo relance d'avis */
.demo-avis { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sheet-wrap { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sheet-bar span { display: inline-flex; align-items: center; gap: 6px; color: #18794e; font-weight: 500; }
.sheet-bar span::before { content: ""; width: 12px; height: 14px; border-radius: 2px; background: #18794e; box-shadow: inset 0 -4px 0 #ffffff55; }
.sheet-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th { text-align: left; padding: 9px 7px; background: var(--sunken); color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 8px 7px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background .3s, opacity .3s; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td b { display: block; font-weight: 600; white-space: nowrap; }
.sheet td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .cell { font: 12.5px Inter, sans-serif; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 4px 5px; cursor: pointer; }
.sheet .cell:hover, .sheet .cell:focus { border-color: var(--line-2); background: var(--surface); outline: none; }
.sheet .sent { display: inline-flex; align-items: center; gap: 4px; color: #18794e; font-weight: 600; white-space: nowrap; }
.sheet .sent .i { width: 14px; height: 14px; stroke-width: 2.4; }
.sheet .clear { margin-left: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--sunken); color: var(--muted); cursor: pointer; line-height: 1; }
.sheet .clear:hover { background: var(--line-2); color: var(--ink); }
.sheet tr.scan td { background: #fff7f3; }
.sheet tr.pick td { background: var(--accent-soft); }
.sheet tr.pick td:first-child { box-shadow: inset 3px 0 0 var(--signal); }
.sheet tr.skip td { opacity: .45; }
.sheet tr.just td, .sheet tr.added td { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: #ffe1d4; } 100% { background: transparent; } }
.sheet-sum { margin: 0; font-size: 13px; color: var(--muted); }
.sheet-add { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.sheet-add .input { min-height: 38px; padding: 6px 11px; font-size: 14px; }
.mails { position: relative; display: grid; gap: 12px; align-content: start; min-height: 420px; max-height: 560px; overflow: auto; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--sunken);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 18px 18px; }
.mails-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; }
.mails-empty .i { width: 34px; height: 34px; color: var(--line-2); }
.mails-empty b { color: var(--ink); font-size: 16px; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mail-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; font-size: 13px; }
.mail-head .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--signal); font: 800 14px Archivo, sans-serif; flex: none; }
.mail-head b { display: block; }
.mail-head small { color: var(--muted); }
.mail-head time { margin-left: auto; color: var(--muted); font-size: 12px; }
.mail-subj { padding: 0 14px 10px 54px; font-weight: 600; font-size: 14px; }
.mail-body { margin: 0 12px 12px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); text-align: left; }
.mail-brand { background: var(--ink); color: #fff; text-align: center; padding: 12px; font: 800 17px Archivo, sans-serif; letter-spacing: -.02em; border-bottom: 3px solid var(--signal); }
.mail-body p { margin: 10px 18px; }
.mail-body .small { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.mail-body .stars { text-align: center; color: #f5b301; font-size: 22px; letter-spacing: 4px; margin: 6px 0 4px; }
.mail-btn { display: table; margin: 6px auto 4px; padding: 9px 22px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; }
@media (max-width: 600px) { .sheet-add { grid-template-columns: 1fr; } .mails { min-height: 320px; } }

/* Démo tri des factures */
.demo-fact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.inbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.inbox .sheet-bar .lbl { color: var(--accent); }
.inbox .sheet-bar .lbl::before { background: var(--signal); border-radius: 50%; width: 8px; height: 8px; box-shadow: none; }
.inbox-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 214px; overflow: auto; }
.mail-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.mail-item:hover { border-color: var(--line-2); }
.mail-item.sel { border-color: var(--signal); background: var(--accent-soft); }
.mail-item .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--signal); font: 800 14px Archivo, sans-serif; flex: none; }
.mi-txt { min-width: 0; flex: 1; font-size: 13px; }
.mi-txt b, .mi-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-txt small { color: var(--muted); font-size: 12px; }
.mi-side { display: grid; justify-items: end; gap: 3px; font-size: 11.5px; color: var(--muted); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-weight: 600; }
.chip .i { width: 12px; height: 12px; stroke-width: 2.6; }
.mail-item.done .chip { background: #e6f4ec; color: #18794e; }
.inv-wrap { padding: 14px; border-radius: 14px; background: var(--sunken); }
.inv { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv-top b { display: inline-block; font-size: 14px; }
.inv-top small { display: block; color: var(--muted); font-size: 11.5px; }
.inv-kind { font: 800 15px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--line-2); }
.inv-meta { display: flex; gap: 18px; margin: 12px 0 8px; color: var(--muted); }
.inv-meta b { color: var(--ink); }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th { text-align: left; font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 5px 4px; border-bottom: 1px solid var(--line); }
.inv-lines td { padding: 5px 4px; border-bottom: 1px dashed var(--line); }
.inv-lines th:not(:first-child), .inv-lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.inv-tot { display: grid; justify-content: end; gap: 3px; margin-top: 10px; }
.inv-tot div { display: flex; justify-content: space-between; gap: 24px; }
.inv-tot span { color: var(--muted); }
.inv-tot .ttc { padding-top: 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.inv [data-f] { border-radius: 4px; transition: background .25s, box-shadow .25s; }
.inv [data-f].hit { background: #ffe1d4; box-shadow: 0 0 0 2px #ffe1d4; }
.inv.reading::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(transparent, rgba(250, 70, 22, .18), transparent); border-bottom: 2px solid var(--signal); animation: scan .8s linear infinite; }
@keyframes scan { from { transform: translateY(-36px); } to { transform: translateY(260px); } }
.inv-new { display: grid; grid-template-columns: 1.3fr 1fr .9fr auto; gap: 8px; }
.inv-new .input { min-height: 38px; padding: 6px 11px; font-size: 14px; min-width: 0; }
.fact-sheet td.n, .fact-sheet th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.fact-sheet tfoot td { padding: 9px 7px; background: var(--sunken); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fact-sheet tfoot td b { color: var(--ink); }
@media (max-width: 600px) { .inv-new { grid-template-columns: 1fr 1fr; } .inv-meta { flex-wrap: wrap; gap: 4px 14px; } }
@media (prefers-reduced-motion: reduce) { .inv.reading::after { animation: none; } }

/* Témoignages */
.testis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.testi { margin: 0; display: grid; gap: 16px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testi-stars { color: #f5b301; font-size: 18px; letter-spacing: 3px; }
.testi-stars span { color: var(--line-2); }
.testi blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.testi blockquote::before { content: "« "; }
.testi blockquote::after { content: " »"; }
.testi figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.testi figcaption .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--signal); font: 800 17px Archivo, sans-serif; flex: none; }
.testi figcaption b { display: block; }
.testi figcaption small { color: var(--muted); }
.testi-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.testi-offer { background: var(--ink); border-color: var(--ink); color: #fff; justify-items: start; }
.testi-offer .badge { background: #fa46162e; color: #ffb59c; }
.testi-offer p { margin: 0; font: 700 clamp(19px, 2vw, 22px)/1.35 Archivo, sans-serif; letter-spacing: -.01em; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Qui suis-je */
.about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.about-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--ink) 0 22%, var(--signal) 22% 100%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo span { font: 800 clamp(64px, 9vw, 110px) Archivo, sans-serif; color: var(--signal); letter-spacing: -.04em; }
.about-text h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 6px; }
.about-role { margin: 0 0 22px; color: var(--accent); font-weight: 600; }
.about-bio { margin: 0 0 30px; font-size: 18px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; max-width: 36em; }
.about-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 300px; } }

/* Formulaire de contact (dans le bandeau sombre) */
.contact-form { display: grid; gap: 16px; max-width: 680px; margin: 0 auto; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-align: left; box-shadow: var(--shadow-lg); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.cta .contact-form .error { margin: -4px 0 0; min-height: 0; max-width: none; color: #b42318; font-size: 13px; }
.cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta p.cf-legal { margin: 0; max-width: 300px; font-size: 13px; color: var(--muted); }
.cf-legal a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-done { justify-items: center; text-align: center; padding: 40px 24px; }
.cf-done .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #e6f4ec; color: #18794e; stroke-width: 2.6; }
.cf-done b { font: 700 22px Archivo, sans-serif; }
.cf-done span { color: var(--muted); }
.cta p.cf-direct { margin: 22px auto 0; font-size: 15px; }
.cf-direct a { color: #fff; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } .cf-foot .btn { width: 100%; } }

/* Méthode */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line i { display: block; height: 100%; background: var(--signal); transform-origin: left; }
.steps { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.steps li { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start;
  transition: border-color .3s, box-shadow .3s; }
.steps li:hover { border-color: #ffc9b5; box-shadow: var(--shadow); }
.steps li::before { counter-increment: st; content: "0" counter(st); font: 800 44px/1 Archivo, sans-serif; letter-spacing: -.04em; color: var(--signal); margin-bottom: 12px; }
.steps b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.steps span { color: var(--muted); font-size: 15px; }

/* Contact : bloc encre, logo inversé (blanc + orange) */
.cta { margin: clamp(72px, 10vw, 128px) auto 0; max-width: 1200px; padding: 0 clamp(16px, 4vw, 40px); }
.cta-in { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) 24px; border-radius: 32px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); isolation: isolate; }
.cta-in::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 85% 100%, #fa461640, transparent 70%), radial-gradient(40% 60% at 10% 0%, #2b3a4a, transparent 70%); }
.cta-mark { position: absolute; z-index: -1; right: -40px; top: 50%; width: clamp(220px, 30vw, 380px); translate: 0 -50%; opacity: .14; }
.cta h2 { font-size: clamp(34px, 4.8vw, 60px); margin-bottom: 14px; color: #fff; }
.cta p { max-width: 500px; margin: 0 auto 30px; font-size: 18px; color: #b8c1ca; }
.foot { max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot img { height: 22px; width: auto; }

/* Apparition au défilement (repli sans GSAP ; avec GSAP, motion.js gère tout) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in, .motion .reveal { opacity: 1; transform: none; transition: none; }

@media (max-width: 1000px) {
  .hero, .project-top, .demo, .demo-avis, .demo-fact { grid-template-columns: minmax(0, 1fr); }
  .canvas { max-width: 520px; }
  .toast-mock { right: 12px; }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .project-info { padding: 8px 24px 26px; }
  .hero-mark { right: -10%; }
}
@media (max-width: 600px) {
  .nav nav a:not(.btn) { display: none; }
  .brand .logo { height: 22px; }
  .proof ul { grid-template-columns: 1fr; gap: 16px; }
  .canvas { padding: 20px 16px; }
  .toast-mock { position: static; margin-top: 14px; }
  .preview { min-height: 480px; }
  .form { padding: 18px; }
  .cta-mark { right: -90px; opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .node .ok, .toast-mock { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden] { display: none; }
}
