/* NeoAI — thème sombre partagé par l'accueil, les articles et la 404 (pas /reports, /pricing ni les pages légales).
   Violet = marque, boutons, liens · vert = ce que l'agent produit (pastilles de résultat) · gris = ce qui se perd ·
   vert WhatsApp = le seul bouton WhatsApp. Polices : Manrope (titres) + Public Sans (texte), comme le Scan et les études de cas. */

:root {
  color-scheme: dark;
  --bg: #07060b;
  --bg-soft: #0b0912;
  --surface: #110e1a;
  --surface-2: #171324;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f2f8;
  --text: #b9b5c6;
  --muted: #8b879c;
  --violet: #483092;
  --violet-2: #6a4fd0;
  --accent: #a891f6;
  --accent-soft: rgba(106, 79, 208, 0.16);
  --accent-line: rgba(168, 145, 246, 0.4);
  --green-hi: #4fdba4;
  --green-soft: rgba(79, 219, 164, 0.1);
  --green-line: rgba(79, 219, 164, 0.3);
  --lost: #4a4660;
  --wa: #25d366;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { position: relative; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* grain */
body::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
strong { font-weight: 600; color: var(--ink); }
[id] { scroll-margin-top: 84px; }
::selection { background: rgba(106, 79, 208, 0.5); color: #fff; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 120px 0; }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--violet-2); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.section-title { max-width: 22ch; margin-bottom: 56px; }

/* Halos violets, comme l'ancien site */
.hero, .article-hero, .notfound { position: relative; overflow: hidden; }
.hero::before, .article-hero::before, .notfound::before { content: ""; position: absolute; z-index: 0; pointer-events: none; width: 70vw; height: 60vw; max-width: 980px; max-height: 760px; top: -30%; right: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(72, 48, 146, 0.55), transparent); filter: blur(70px); }
.hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: 50vw; height: 40vw; max-width: 700px; max-height: 520px; bottom: -25%; left: -15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(72, 48, 146, 0.3), transparent); filter: blur(70px); }
.article-hero::before, .notfound::before { top: -360px; }
.hero > .container, .article-hero > .article, .notfound > .container { position: relative; z-index: 1; }

/* ===== Boutons & liens ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #7a5ee6, #5a3fc4); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(106, 79, 208, 0.35), 0 14px 40px -12px rgba(106, 79, 208, 0.85); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(140, 112, 240, 0.55), 0 18px 48px -12px rgba(106, 79, 208, 1); }
.btn-primary .icon { transition: transform .3s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.text-link, .prose a:not(.btn):not(.case-link) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(168, 145, 246, 0.55); transition: text-decoration-color .2s, color .2s; }
.text-link { font-weight: 600; }
.text-link:hover, .prose a:not(.btn):not(.case-link):hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 40px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(7, 6, 11, 0.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 12px 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.logo img { width: 28px; height: 28px; }
.logo-word span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 500; color: var(--text); }
.nav-links > a { padding: 8px 0; transition: color .2s; }
.nav-links > a:hover { color: var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; padding-left: 22px; border-left: 1px solid var(--line-2); font-size: 0.86rem; color: var(--muted); }
.lang a { padding: 6px 2px; transition: color .2s; }
.lang a:hover, .lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.burger .icon { width: 24px; height: 24px; }

/* Bouton WhatsApp : rond vert, halo qui grossit en s'effaçant (inspiré de 1600.agency) */
.wa { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--wa); color: #fff; }
.wa::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--wa); animation: wa-halo 2s ease-out infinite; }
.wa svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes wa-halo { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.7); opacity: 0; } }

/* ===== Hero ===== */
.hero { padding: 72px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.eyebrow { margin-bottom: 22px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; vertical-align: 2px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 4px rgba(79, 219, 164, 0.14); }
.hero .lead { max-width: 33rem; margin: 22px 0 34px; font-size: 1.2rem; line-height: 1.6; }
.cta-note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* Maquette de conversation */
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -6% -8% 6%; border-radius: 40px; background: radial-gradient(closest-side, rgba(106, 79, 208, 0.45), transparent); filter: blur(40px); }
.thread { position: relative; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.thread-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.thread-head span { white-space: nowrap; }
.thread-head .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.thread-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); }
.thread-body { display: flex; flex-direction: column; gap: 16px; padding: 32px 22px 28px; background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 16px 16px; }
.bubble { align-self: flex-start; max-width: 88%; padding: 11px 16px; border-radius: 4px 16px 16px 16px; background: #221d31; border: 1px solid rgba(255, 255, 255, 0.06); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.bubble + .tr { margin-top: -8px; }
.tr { padding-left: 4px; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.agent-line { padding: 2px 0 2px 14px; margin-left: 4px; border-left: 1px solid var(--accent-line); font-size: 0.92rem; line-height: 1.5; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-hi); font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.chip-sale { background: var(--green-hi); border-color: var(--green-hi); color: #052116; }
.thread-caption { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.thread-caption a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .2s; }
.thread-caption a:hover { color: var(--ink); }

/* ===== Comment ça marche : trois étapes reliées par un trait ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; }
.steps > li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent-line); font-family: var(--display); font-weight: 700; color: var(--accent); }
.steps > li:last-child::before { background: var(--green-hi); border-color: var(--green-hi); color: #052116; box-shadow: 0 0 0 6px rgba(79, 219, 164, 0.12), 0 0 30px -4px rgba(79, 219, 164, 0.6); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -26px; height: 1px; background: linear-gradient(90deg, rgba(168, 145, 246, 0.45), rgba(168, 145, 246, 0.12)); }
.steps h3 { margin: 22px 0 8px; font-size: 1.45rem; }
.steps p { max-width: 30ch; }
.after-steps { max-width: 44rem; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.08rem; color: var(--ink); }

/* ===== Pour qui ===== */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-col { padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.fit-yes { background: linear-gradient(180deg, rgba(79, 219, 164, 0.07), rgba(79, 219, 164, 0) 40%), var(--surface); border-color: rgba(79, 219, 164, 0.2); }
.fit-title { margin-bottom: 22px; font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.fit-col ul { display: grid; gap: 16px; }
.fit-col li { position: relative; padding-left: 36px; }
.fit-col li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px 12px; }
.fit-yes li::before { background-color: rgba(79, 219, 164, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fdba4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.fit-no li::before { background-color: rgba(255, 255, 255, 0.05); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8699' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E"); }

/* ===== Témoignages ===== */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.t-card blockquote p { font-family: var(--display); font-size: 1.22rem; font-weight: 600; line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); }
.t-card .tr { padding: 0; font-size: 0.9rem; }
.who { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.who .name { font-weight: 600; color: var(--ink); }
.who p { font-size: 0.95rem; }
.who .text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 0.94rem; }
.who .text-link svg { width: 11px; height: 11px; fill: var(--accent); }
.lede-note { margin: -36px 0 40px; color: var(--muted); }

/* ===== Qui est derrière ===== */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 22px; border: 1px solid var(--line-2); filter: saturate(0.9) contrast(1.02); }
.about h2 { margin-bottom: 22px; }
.about p { max-width: 36rem; font-size: 1.15rem; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 2px; list-style: none; cursor: pointer; font-family: var(--display); font-size: 1.1rem; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { max-width: 640px; padding: 0 2px 24px; }

/* ===== CTA final & bloc Scan des articles ===== */
.cta-panel, .scan-panel { position: relative; overflow: hidden; padding: 88px 40px; border: 1px solid rgba(168, 145, 246, 0.25); border-radius: 32px; text-align: center; background: radial-gradient(80% 90% at 50% 0%, rgba(106, 79, 208, 0.42), transparent 70%), linear-gradient(180deg, #120e20, #0a0812); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.cta-panel h2, .scan-panel h2 { max-width: 22ch; margin: 0 auto 18px; }
.cta-panel p, .scan-text { max-width: 36rem; margin: 0 auto; font-size: 1.1rem; }
.cta-panel .btn, .scan-panel .btn { margin-top: 34px; }
.cta-panel .cta-note, .scan-panel .cta-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.scan { padding: 0 0 120px; }
.scan-panel .kicker { justify-content: center; }
.scan-panel .alt { margin-top: 20px; font-size: 0.94rem; color: var(--muted); }
.scan-panel .alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ===== Pied de page ===== */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: 0.94rem; }
.footer-brand { margin-bottom: 36px; color: var(--text); }
.footer-brand strong { font-family: var(--display); font-weight: 800; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 96px; }
.footer-grid ul { display: grid; gap: 10px; align-content: start; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover, .footer-grid a[aria-current="page"] { color: var(--ink); }
.signature { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* ===== Articles (guide, attribution) ===== */
.article-hero { padding: 72px 0 0; }
.article { max-width: 760px; margin: 0 auto; padding: 0 28px 96px; }
.article h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 26px; }
.kicker { display: inline-flex; margin-bottom: 18px; font-size: 0.92rem; font-weight: 600; color: var(--accent); }
.kicker b { font-weight: 600; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; font-size: 0.9rem; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 1px solid var(--line-2); }
.chapo { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.toc { margin: 44px 0 8px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin-bottom: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); }
.toc ol { columns: 2; column-gap: 32px; list-style: decimal-leading-zero; padding-left: 28px; font-size: 0.95rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; color: var(--muted); }
.toc a { color: var(--ink); transition: color .2s; }
.toc a:hover { color: var(--accent); }
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 72px 0 18px; }
.prose p + p { margin-top: 18px; }
.num-list { counter-reset: n; display: grid; gap: 18px; margin-top: 10px; }
.num-list > li { position: relative; padding-left: 46px; counter-increment: n; }
.num-list > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--accent); }
.dot-list { display: grid; gap: 14px; margin-top: 10px; }
.dot-list > li { position: relative; padding-left: 24px; }
.dot-list > li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.after-p { margin-top: 22px; }
.author-box { display: flex; align-items: center; gap: 22px; margin-top: 80px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.author-box img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.author-box p { font-size: 0.97rem; }
.author-links { display: flex; gap: 20px; margin-top: 10px !important; }
.author-links a { font-weight: 600; font-size: 0.92rem; }
.prose .faq-list { margin-top: 10px; }
.case-links { display: grid; gap: 12px; margin-top: 12px; }
.case-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.case-link:hover { border-color: var(--accent-line); transform: translateX(3px); }
.reports-lang { margin-top: -6px; margin-bottom: 16px; font-size: 0.92rem; color: var(--muted); }
.pull { margin: 36px 0 10px; padding: 30px 32px; border-radius: 22px; border: 1px solid rgba(168, 145, 246, 0.25); background: linear-gradient(160deg, rgba(106, 79, 208, 0.2), rgba(106, 79, 208, 0.04)); }
.pull .pull-intro { font-size: 0.95rem; }
.pull blockquote p { margin-top: 10px; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.pull .tr-quote { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.pull figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* Barre des heures ouvrées */
.split { margin: 30px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.split-labels { display: grid; grid-template-columns: 64fr 36fr; gap: 10px; margin-bottom: 9px; font-size: 0.84rem; line-height: 1.3; }
.split-labels span:first-child { color: var(--ink); font-weight: 600; }
.split-labels span:last-child { text-align: right; color: var(--muted); }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.split-bar .seg { width: 64%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--violet-2)); box-shadow: 0 0 18px -2px rgba(106, 79, 208, 0.35); transition: width 1.2s var(--ease) .15s; }
html.js .split:not(.visible) .seg { width: 0; }
.split figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

/* Barres "à réservation égale" */
.bars { margin: 28px 0 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bars-title { margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.bar-row + .bar-row { margin-top: 16px; }
.bar-label { display: block; margin-bottom: 7px; font-size: 0.88rem; }
.bar-track { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.bar { height: 20px; width: var(--v); border-radius: 0 6px 6px 0; background: var(--lost); transition: width 1.2s var(--ease) .15s; }
.bar.is-agent { background: linear-gradient(90deg, #10b981, var(--green-hi)); box-shadow: 0 0 22px -4px rgba(79, 219, 164, 0.6); }
html.js .bars:not(.visible) .bar { width: 0; }
.bar-val { font-size: 0.88rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-axis { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 0.78rem; color: var(--muted); }
.bars figcaption { margin-top: 16px; font-size: 0.93rem; }

/* Barème d'attribution */
.attr { display: grid; gap: 12px; margin: 10px 0 26px; }
.attr-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.attr-path { display: flex; align-items: center; min-width: 0; }
.attr-path > span { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.attr-path .a-lead { flex-shrink: 0; background: var(--ink); color: var(--bg); }
.attr-path .a-agent { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(168, 145, 246, 0.3); }
.attr-path .a-book { background: var(--green-soft); color: var(--green-hi); border: 1px solid var(--green-line); }
.attr-path .a-other { border: 1px solid var(--line-2); color: var(--text); }
.attr-path .a-none { border: 1px dashed var(--lost); color: var(--muted); }
.attr-path .a-link { flex: 0 0 18px; height: 1px; padding: 0; border-radius: 0; background: var(--line-2); }
.attr-score { display: flex; align-items: center; gap: 14px; }
.attr-score strong { min-width: 3.4ch; text-align: right; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--green-hi); font-variant-numeric: tabular-nums; }
.is-zero .attr-score strong { color: var(--muted); }
.dial { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--green-hi); background: var(--green-hi); }
.is-half .dial { background: conic-gradient(var(--green-hi) 0 50%, transparent 50% 100%); }
.is-zero .dial { background: transparent; border-color: var(--muted); }

/* Tableau comparatif */
.compare-wrap { margin: 30px 0 26px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; line-height: 1.5; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); vertical-align: bottom; border-bottom-color: var(--line-2); }
.compare tbody th { width: 21%; font-weight: 600; color: var(--ink); }
.compare .is-agency { background: rgba(106, 79, 208, 0.1); border-left: 1px solid rgba(168, 145, 246, 0.6); border-right: 1px solid rgba(168, 145, 246, 0.6); color: var(--ink); }
.compare thead .is-agency { border-top: 1px solid rgba(168, 145, 246, 0.6); border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child .is-agency { border-bottom: 1px solid rgba(168, 145, 246, 0.6); border-radius: 0 0 14px 14px; }

/* Tableau de la règle d'attribution */
.rule { width: 100%; margin: 6px 0 24px; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.rule th, .rule td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rule thead th { font-size: 0.85rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-2); }
.rule .pct { font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--green-hi); white-space: nowrap; }
.rule .pct.is-zero { color: var(--muted); }

/* ===== 404 ===== */
.notfound { padding: 140px 0; text-align: center; }
.notfound h1 { margin-bottom: 18px; }
.notfound .row-links { justify-content: center; }

/* ===== Apparition au scroll (masqué seulement quand JS est actif) ===== */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .thread .ta { opacity: 0; transform: translateY(10px); }
html.js .thread.visible .ta { animation: pop .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 0.45s + 0.3s); }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 6px 28px 20px; background: rgba(9, 8, 14, 0.97); border-bottom: 1px solid var(--line); }
  .nav-links.open > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open .lang { padding: 16px 0 0; border-left: 0; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  section { padding: 88px 0; }
  .hero { padding: 40px 0 80px; }
  .hero-grid, .about, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual::before { inset: 8% 0 -8% 0; }
  .about { gap: 32px; }
  .about img { max-width: 300px; }
  .t-grid { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .steps > li { padding: 0 0 36px 64px; min-height: 44px; }
  .steps > li:last-child { padding-bottom: 0; }
  .steps > li::before { position: absolute; left: 0; top: 0; }
  .steps > li:not(:last-child)::after { top: 52px; bottom: 6px; left: 21px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(168, 145, 246, 0.45), rgba(168, 145, 246, 0.12)); }
  .steps h3 { margin-top: 6px; }
  .steps p { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, auto); gap: 24px 64px; }
}
@media (max-width: 760px) {
  .fit { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .compare { display: grid; }
  .compare thead, .compare tbody, .compare tr { display: contents; }
  .compare thead th:first-child, .compare tbody th { display: none; }
  .compare th, .compare td { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 0.75rem; color: var(--muted); }
  .compare thead th { margin-top: 18px; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; background: var(--surface-2); }
  .compare tbody tr:last-child td { border-bottom: 1px solid var(--line); border-radius: 0 0 16px 16px; }
  .compare thead th:nth-child(2) { order: 10; margin-top: 0; } .compare td:nth-child(2) { order: 11; }
  .compare thead th:nth-child(3) { order: 20; } .compare td:nth-child(3) { order: 21; }
  .compare thead th:nth-child(4) { order: 30; } .compare td:nth-child(4) { order: 31; }
  .compare .is-agency { background: #161126; border-left: 1px solid rgba(168, 145, 246, 0.6); border-right: 1px solid rgba(168, 145, 246, 0.6); }
  .compare thead .is-agency { border-top: 1px solid rgba(168, 145, 246, 0.6); background: #1d1631; }
  .compare tbody tr:last-child .is-agency { border-bottom: 1px solid rgba(168, 145, 246, 0.6); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .article { padding-left: 18px; padding-right: 18px; }
  .nav { padding: 10px 14px 10px 18px; gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 7px 13px; font-size: 0.86rem; }
  .logo { font-size: 1.08rem; gap: 7px; }
  .logo img { width: 24px; height: 24px; }
  .burger { padding: 6px; }
  section { padding: 72px 0; }
  .hero { padding: 28px 0 64px; }
  .eyebrow { margin-bottom: 16px; font-size: 0.86rem; }
  .hero .lead { margin: 16px 0 24px; font-size: 1.08rem; }
  .hero .btn { width: 100%; }
  .section-title { margin-bottom: 40px; }
  .fit-col, .t-card { padding: 26px 22px; }
  .cta-panel, .scan-panel { padding: 60px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-hero { padding-top: 44px; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .bars, .split { padding: 20px 18px; }
  .pull { padding: 24px 20px; }
  .attr-row { grid-template-columns: 1fr; padding: 18px; }
  .attr-score { order: -1; }
  .attr-score strong { text-align: left; }
  .attr-path { flex-direction: column; align-items: flex-start; }
  .attr-path .a-link { flex: 0 0 10px; width: 1px; height: 10px; margin-left: 16px; }
  .rule thead { display: none; }
  .rule tr { display: block; margin-bottom: 12px; padding: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .rule th, .rule td { display: block; padding: 6px 18px; border: 0; }
  .rule td::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); }
}
@media (max-width: 360px) {
  .nav-cta .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa::before { display: none; }
  html.js .reveal, html.js .reveal.visible { opacity: 1; transform: none; transition: none; }
  html.js .thread .ta, html.js .thread.visible .ta { opacity: 1; transform: none; animation: none; }
  html.js .split .seg, html.js .bars .bar { transition: none; }
  html.js .split:not(.visible) .seg { width: 64%; }
  html.js .bars:not(.visible) .bar { width: var(--v); }
  .btn, .case-link, .faq-item summary::after { transition: none; }
}
