/* Juste Port — feuille de style du site */
@font-face { font-family: "Bricolage"; src: url(../fonts/bricolage.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --night: #0A1030;
  --night-2: #121A45;
  --paper: #F5F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0FA;
  --ink: #0E1430;
  --muted: #535B7A;
  --line: #DDE1F0;
  --line-strong: #BCC3DE;
  --cobalt: #2336F5;
  --cobalt-deep: #1626C9;
  --cobalt-soft: #E4E7FF;
  --sun: #FFD23F;
  --sun-ink: #0E1430;
  --mint: #0E9F6E;
  --mint-soft: #DDF5EB;
  --coral: #E5482A;
  --coral-soft: #FFE6DF;
  --amber: #8C5B00;
  --amber-soft: #FBEFCF;
  --on-night: #FFFFFF;
  --on-night-muted: #B9C0EA;
  --shadow: 0 1px 0 rgba(14,20,48,.04), 0 22px 46px -24px rgba(14,20,48,.45);
  --f-display: "Bricolage", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.06; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.mono { font-family: var(--f-mono); }
.hint { font-size: .84rem; color: var(--muted); }
.err { color: var(--coral); font-size: .88rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
section { padding-block: 96px; position: relative; }

/* ---------- barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), #FF9F43); z-index: 60; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 0 -2px #C79A00, 0 14px 30px -12px rgba(255,210,63,.7); }
.btn-sun:hover { box-shadow: 0 8px 0 -2px #C79A00, 0 18px 36px -12px rgba(255,210,63,.8); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-glass:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); border-radius: 10px; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 9px 14px; font-size: .86rem; }

/* ---------- en-tête ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, border-color .25s, box-shadow .25s; border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top.solid { background: rgba(245,246,251,.9); backdrop-filter: saturate(1.4) blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.top.solid .brand { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--sun); color: var(--night); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; transform: rotate(-6deg); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav a:hover { color: var(--sun); }
.top.solid .nav a:not(.btn) { color: var(--ink); }
.top.solid .nav a:not(.btn):hover { color: var(--cobalt); }
.nav .btn { padding: 11px 18px; font-size: .9rem; color: var(--sun-ink); }
.menu-btn { display: none; font: 700 .92rem var(--f-body); color: #fff; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.top.solid .menu-btn { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav a:not(.btn), .top.solid .nav a:not(.btn) { color: var(--ink); display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: radial-gradient(1200px 600px at 80% 10%, #1D2B8F 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #24135E 0%, transparent 60%), var(--night); color: var(--on-night); overflow: hidden; display: flex; align-items: center; padding: 110px 0 90px; }
#bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, rgba(10,16,48,.85)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; width: 100%; }
.hero-grid > * { min-width: 0; }
.hero .eyebrow { color: var(--sun); display: inline-flex; gap: 10px; align-items: center; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255,210,63,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,210,63,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin-top: 18px; }
.hero h1 .hl { color: var(--sun); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--sun); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); animation: underline .9s 1s cubic-bezier(.6,0,.2,1) forwards; opacity: .55; }
@keyframes underline { to { transform: scaleX(1); } }
.hero .lede { color: var(--on-night-muted); margin-top: 24px; font-size: 1.16rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .88rem; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.chip::before { content: "✓"; color: var(--sun); font-weight: 800; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; color: var(--on-night-muted); font-size: .78rem; display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .scroll-hint { display: none; } }

/* facture animée */
.invoice { position: relative; background: #fff; color: var(--ink); border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); max-width: 460px; margin-inline: auto; width: 100%; overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .3s ease-out; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-strong); margin-bottom: 8px; }
.inv-head strong { font-family: var(--f-display); font-size: 1.05rem; }
.inv-head span { font-size: .74rem; color: var(--muted); font-family: var(--f-mono); }
.inv-badge { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; background: var(--cobalt-soft); color: var(--cobalt); white-space: nowrap; }
.inv-rows { list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: .76rem; }
.inv-rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; transition: background .35s, color .35s; }
.inv-rows li .t { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-rows li .flag { font-size: .62rem; font-weight: 700; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.inv-rows li.bad { background: var(--coral-soft); }
.inv-rows li.bad .flag { opacity: 1; transform: scale(1); background: var(--coral); color: #fff; }
.inv-rows li.ok .flag { opacity: 1; transform: scale(1); background: var(--mint-soft); color: var(--mint); }
.inv-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 12px; border-radius: 10px; background: var(--mint-soft); }
.inv-total span { font-weight: 600; font-size: .9rem; }
.inv-total b { font-family: var(--f-display); font-size: 1.7rem; color: var(--mint); font-variant-numeric: tabular-nums; }
.scanline { position: absolute; left: 0; right: 0; height: 46px; top: 60px; background: linear-gradient(to bottom, rgba(35,54,245,0), rgba(35,54,245,.16) 70%, rgba(35,54,245,.7) 100%); border-bottom: 2px solid var(--cobalt); pointer-events: none; opacity: 0; }
.inv-caption { text-align: center; color: var(--on-night-muted); font-size: .86rem; margin-top: 18px; }
.float-tag { position: absolute; z-index: 3; padding: 9px 13px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .82rem; font-weight: 700; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); display: flex; gap: 8px; align-items: center; animation: bob 5s ease-in-out infinite; }
.float-tag em { font-style: normal; font-size: 1.1rem; }
.ft-1 { top: 0; right: -8px; }
.ft-2 { bottom: -6px; left: -12px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero-visual { position: relative; padding-top: 30px; }
.hero-visual .inv-caption { margin-top: 26px; text-align: right; padding-left: 190px; }
@media (max-width: 520px) { .ft-2 { left: -4px; } .ft-1 { right: -4px; } .invoice { transform: none; } .hero-visual .inv-caption { padding-left: 170px; font-size: .8rem; } }

/* ---------- bandeau transporteurs ---------- */
.marquee { background: var(--night); color: var(--on-night-muted); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 18px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 36s linear infinite; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee-track span::after { content: "◆"; font-size: .6rem; color: var(--sun); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-36px); }
.reveal-zoom { transform: scale(.94); }

/* ---------- contrôles ---------- */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.check { padding: 24px; display: grid; gap: 10px; align-content: start; position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.check:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cobalt); }
.check::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at var(--mx, 50%) var(--my, 0%), rgba(35,54,245,.08), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.check:hover::before { opacity: 1; }
.check p { color: var(--muted); font-size: .94rem; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.ic-coral { background: var(--coral-soft); color: var(--coral); }
.ic-cobalt { background: var(--cobalt-soft); color: var(--cobalt); }
.ic-amber { background: var(--amber-soft); color: var(--amber); }
.ic-mint { background: var(--mint-soft); color: var(--mint); }
.new { position: absolute; top: 18px; right: 18px; font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--sun); color: var(--sun-ink); padding: 4px 8px; border-radius: 6px; }
@media (max-width: 980px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }

/* ---------- IA : section sombre ---------- */
.dark { background: var(--night); color: var(--on-night); overflow: hidden; }
.dark .eyebrow { color: var(--sun); }
.dark .lede { color: var(--on-night-muted); }
.dark-glow { position: absolute; inset: 0; pointer-events: none; }
.dark-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.dark-glow i:nth-child(1) { width: 420px; height: 420px; background: #2336F5; left: -120px; top: -80px; }
.dark-glow i:nth-child(2) { width: 360px; height: 360px; background: #6A2BD9; right: -100px; bottom: -120px; animation-delay: -6s; }
.dark-glow i:nth-child(3) { width: 220px; height: 220px; background: #FFD23F; right: 30%; top: 30%; opacity: .14; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,70px) scale(.95); } }
.ai { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai > * { min-width: 0; }
.ai .lede { margin-top: 18px; }
.ai-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ai-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ai-list li b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.ai-list li span { color: var(--on-night-muted); font-size: .95rem; }
.ai-list .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,210,63,.14); color: var(--sun); font-family: var(--f-display); font-weight: 800; }
.pipeline { position: relative; display: grid; gap: 14px; }
.pipe-step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.pipe-step .fi { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; }
.pipe-step b { display: block; font-size: .98rem; }
.pipe-step small { color: var(--on-night-muted); font-size: .84rem; }
.files { display: flex; gap: 8px; flex-wrap: wrap; }
.file { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--ink); animation: hop 3.6s ease-in-out infinite; }
.file:nth-child(2) { animation-delay: -1.2s; } .file:nth-child(3) { animation-delay: -2.4s; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.pipe-arrow { height: 26px; margin-left: 38px; width: 2px; background: repeating-linear-gradient(to bottom, var(--sun) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: flow 0.8s linear infinite; }
@keyframes flow { to { background-position: 0 12px; } }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- étapes ---------- */
.timeline { position: relative; display: grid; gap: 22px; list-style: none; margin: 0; padding: 0 0 0 64px; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; }
.timeline .fill { position: absolute; left: 21px; top: 8px; width: 3px; height: 0; background: linear-gradient(var(--cobalt), var(--sun)); border-radius: 3px; }
.tl { position: relative; padding: 22px 24px; display: grid; gap: 6px; }
.tl::before { content: attr(data-n); position: absolute; left: -64px; top: 18px; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line-strong); font-family: var(--f-display); font-weight: 800; color: var(--muted); transition: background .4s, border-color .4s, color .4s, transform .4s; }
.tl.lit::before { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: scale(1.08); }
.tl:last-child.lit::before { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.tl .who { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); font-weight: 700; }
.tl p { color: var(--muted); }
@media (max-width: 560px) { .timeline { padding-left: 52px; } .tl::before { left: -52px; width: 38px; height: 38px; } .timeline::before, .timeline .fill { left: 17px; } }

/* ---------- simulateur ---------- */
.sim { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; box-shadow: var(--shadow); }
.sim > * { min-width: 0; }
.sim-in { padding: 32px; display: grid; gap: 24px; align-content: start; background: var(--surface-2); }
.sim-in label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
.sim-in .val { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; color: var(--cobalt); line-height: 1; }
.sim-in input[type=range] { width: 100%; accent-color: var(--cobalt); }
.scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-family: var(--f-mono); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { font: 600 .86rem var(--f-body); padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.sim-out { padding: 32px; display: grid; gap: 18px; align-content: start; }
.sim-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sim-big b { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.sim-big span { color: var(--muted); }
.sim-rows { display: grid; border-top: 1px solid var(--line); }
.sim-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sim-rows b { font-variant-numeric: tabular-nums; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); font-variant-numeric: tabular-nums; }
.chart path.bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.sim-note { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } .sim-in, .sim-out { padding: 22px; } }

/* ---------- démo (moteur repris de l'ancien site) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.t-poids { background: var(--coral-soft); color: var(--coral); }
.t-doublon { background: var(--cobalt-soft); color: var(--cobalt); }
.t-inconnu { background: var(--amber-soft); color: var(--amber); }
.t-perdu { background: var(--mint-soft); color: var(--mint); }
.t-ecarte { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.demo { overflow: hidden; box-shadow: var(--shadow); }
.demo-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.demo-bar .src { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .9rem; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex: none; }
.dot.sample { background: var(--sun); box-shadow: 0 0 0 2px rgba(255,210,63,.35); }
.demo-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-body { padding: 22px 18px 26px; display: grid; gap: 22px; }
@media (min-width: 720px) { .demo-body { padding: 28px; } }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.privacy svg { flex: none; margin-top: 3px; color: var(--mint); }
.upload { display: grid; gap: 18px; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 18px; }
.drops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.drop { position: relative; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; display: grid; gap: 6px; background: var(--surface-2); transition: border-color .15s, background .15s; min-width: 0; }
.drop.over { border-color: var(--cobalt); background: var(--cobalt-soft); }
.drop.done { border-style: solid; border-color: var(--mint); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop small { color: var(--muted); }
.drop .fname { font-family: var(--f-mono); font-size: .8rem; color: var(--mint); overflow-wrap: anywhere; }
.mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.map-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.map-col h3 { font-size: 1rem; }
.map-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .88rem; }
.map-row label { color: var(--muted); }
.map-row label b { color: var(--coral); }
@media (max-width: 720px) { .drops, .mapping { grid-template-columns: 1fr; } }
select, input[type=number], input[type=text], input[type=email], input[type=tel], textarea { font: 500 .95rem var(--f-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
pre.fmt { margin: 0; font-family: var(--f-mono); font-size: .76rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; color: var(--ink); }
details.settings { border: 1px solid var(--line); border-radius: 10px; }
details.settings summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.settings summary::-webkit-details-marker { display: none; }
details.settings summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); }
details.settings[open] summary::after { content: "–"; }
.set-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 4px 14px 16px; }
@media (max-width: 720px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.set-grid label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kpi { padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi b { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi.hl { background: var(--mint-soft); }
.kpi.hl b { color: var(--mint); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi + .kpi { border-left: 0; } .kpi:nth-child(even) { border-left: 1px solid var(--line); } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.split div { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 2px; }
.split span { font-size: .8rem; color: var(--muted); }
.split b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
@media (max-width: 600px) { .split { grid-template-columns: 1fr; } }
.breakdown { display: grid; gap: 8px; }
.bk-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 110px; gap: 12px; align-items: center; font-size: .88rem; }
.bk-row .bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.bk-row .bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 5px; }
.bk-row .v { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bk-row { grid-template-columns: 1fr 90px; } .bk-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font: 600 .9rem var(--f-body); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.tab .c { font-family: var(--f-mono); font-size: .76rem; margin-left: 4px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl-wrap table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 640px; }
.tbl-wrap th { text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tbl-wrap td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-wrap tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mono { font-size: .8rem; }
td.muted { color: var(--muted); }
.tbl-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toast { font-size: .86rem; color: var(--mint); min-height: 1.2em; }
.fallback-csv { width: 100%; min-height: 120px; font-family: var(--f-mono); font-size: .76rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px; }

/* ---------- pourquoi ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why .card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.why .big { font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--cobalt); }
.why p { color: var(--muted); font-size: .94rem; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- tarif ---------- */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.price > * { min-width: 0; }
.price-main { background: var(--night); color: #fff; border-color: var(--night); padding: 36px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.price-main .eyebrow { color: var(--sun); }
.rate { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 13vw, 8.5rem); line-height: .85; letter-spacing: -.04em; color: var(--sun); }
.rate small { font-size: .3em; letter-spacing: 0; margin-left: 6px; }
.price-main p { color: var(--on-night-muted); font-size: 1.05rem; max-width: 42ch; }
.coins { position: absolute; right: 6px; top: 14px; width: 200px; height: 200px; pointer-events: none; opacity: .9; }
.coins span { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE68A, #FFD23F 45%, #C79A00); display: grid; place-items: center; color: #6B5200; font-weight: 800; font-family: var(--f-display); box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); animation: coin 4s ease-in-out infinite; }
.coins span:nth-child(1) { right: 40px; bottom: 30px; }
.coins span:nth-child(2) { right: 100px; bottom: 60px; animation-delay: -1.3s; transform: scale(.8); }
.coins span:nth-child(3) { right: 60px; bottom: 100px; animation-delay: -2.6s; }
@keyframes coin { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-14px) rotateY(180deg); } }
.free { padding: 32px; display: grid; gap: 14px; align-content: start; }
.free ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.free li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: baseline; }
.free li b { font-family: var(--f-display); font-weight: 800; color: var(--mint); font-size: 1.2rem; }
@media (max-width: 820px) { .price { grid-template-columns: 1fr; } }

/* ---------- données ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust .card { padding: 22px; display: grid; gap: 8px; align-content: start; }
.trust p { color: var(--muted); font-size: .94rem; }
@media (max-width: 980px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- moi ---------- */
.me { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 32px; max-width: 900px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(from 0deg, var(--sun), #FF9F43, var(--cobalt), var(--sun)); padding: 4px; animation: spin 8s linear infinite; }
.avatar span { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; color: var(--ink); animation: spin 8s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.me p { color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .me { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--cobalt); font-weight: 700; font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 72ch; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: #fff; overflow: hidden; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact .eyebrow { color: var(--sun); }
.contact .lede { color: var(--on-night-muted); margin-top: 14px; }
.ways { display: grid; gap: 12px; margin-top: 28px; }
.way { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.way:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.way .wi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-size: 1.1rem; flex: none; }
.way small { display: block; color: var(--on-night-muted); font-size: .8rem; }
.way b { font-size: 1.02rem; overflow-wrap: anywhere; }
.needs { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; color: var(--on-night-muted); }
.needs li::before { content: "→ "; color: var(--sun); font-weight: 800; }
.form { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .82rem; color: var(--muted); }
.form .consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--cobalt); }
.form .btn { width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.done { text-align: center; padding: 30px 10px; display: grid; gap: 10px; justify-items: center; }
.done .tick { width: 70px; height: 70px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 2rem; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(0); } }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } .form { padding: 20px; } }

footer { background: var(--night); color: var(--on-night-muted); border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; padding-block: 28px 36px; }
footer a { color: #fff; }

/* bouton flottant mobile */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; transform: translateY(120px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fab.show { transform: none; }
@media (min-width: 981px) { .fab { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.price-main p.eyebrow { font-size: .74rem; color: var(--sun); }
@media (max-width: 600px) { .coins { display: none; } }
