/* L'attribut hidden l'emporte toujours : sinon un display (grid, flex…) posé sur la classe le rendait inopérant
   (listes « Voir les articles », panneau « Questions »…). */
[hidden] { display: none !important; }

/* Pages publiques (landing, blog, comptes, légal) — même palette que l'application V3. */
:root {
  --ink-0: #0a0b0f; --ink-1: #0e1016; --ink-2: #14161e; --ink-3: #191c26; --ink-4: #1f2330;
  --fg: #e9ebf1; --fg-strong: #fff; --fg-muted: #8a92a6; --fg-subtle: #7a8296;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.11); --line-3: rgba(255, 255, 255, 0.18);
  --brand: #818cf8; --brand-2: #6366f1; --brand-grad: linear-gradient(120deg, #6366f1, #a855f7); --brand-soft: rgba(99, 102, 241, 0.14);
  --warm: #f5b14b; --hot: #ff6a4d; --up: #34d399; --down: #f87171;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --wrap: 1160px; --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink-0); color: var(--fg); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
/* Fond « salle de rédaction » : quadrillage discret qui s'efface vers le bas, un seul halo de signal. */
body { margin: 0; min-height: 100vh; background:
  linear-gradient(180deg, transparent 0, var(--ink-0) 1100px) 0 0 / 100% 100% no-repeat,
  radial-gradient(800px 460px at 12% -8%, rgba(255, 106, 77, 0.10), transparent 62%),
  linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 48px 48px, var(--ink-0); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--fg-strong); }
h1, h2, h3 { color: var(--fg-strong); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink-3); padding: 8px 12px; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 106, 77, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 106, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 77, 0); } }
/* Mot mis en avant : couleur « signal » pleine, soulignée comme un surligneur de rédaction. */
.hl { color: var(--hot); background: linear-gradient(transparent 78%, rgba(255, 106, 77, 0.22) 78%); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-md); border: 1px solid transparent; font: 700 14.5px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), filter 0.2s, background 0.2s, border-color 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-2); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -12px rgba(99, 102, 241, 0.7); }
.btn-primary:hover { color: #fff; background: #7376f3; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- En-tête / pied ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(10, 11, 15, 0.72); border-bottom: 1px solid var(--line); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand-logo { display: block; height: 30px; width: auto; }
.site-brand-name { font: 800 17px/1 var(--font-sans); letter-spacing: 0.08em; color: var(--fg-strong); }
.site-brand-name b { color: var(--hot); font-weight: 800; }
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links a:not(.btn) { color: var(--fg-muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-links a:not(.btn):hover { color: var(--fg-strong); }
@media (max-width: 760px) { .site-links a:not(.btn) { display: none; } }
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--ink-1); padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-h { font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: var(--fg-muted); text-decoration: none; }
.site-foot a:hover { color: var(--fg-strong); }
.foot-tag { color: var(--fg-muted); margin-top: 12px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-subtle); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Landing ---------- */
.tbr-bar { background: #111; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tbr-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.tbr-bar p { margin: 0; color: var(--fg-muted); }
.tbr-bar b { color: var(--fg-strong); }
.tbr-bar a { color: var(--warm); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .hide-sm { display: none; } }
.hero { padding: clamp(48px, 9vw, 104px) 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-muted); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-micro { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--fg-muted); font-size: 14px; }
.hero-micro li, .login-list li, .feature li, .api-points li { display: flex; gap: 8px; align-items: flex-start; }
.hero-micro svg, .login-list svg, .feature li svg, .api-points svg { color: var(--up); flex-shrink: 0; margin-top: 4px; }
.video-card { display: block; text-decoration: none; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--ink-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(99, 102, 241, 0.55); transform: rotate(1.2deg); transition: transform 0.4s var(--ease); }
.video-card:hover { transform: rotate(0) translateY(-4px); }
.video-screen { position: relative; display: grid; align-content: space-between; aspect-ratio: 16 / 10; padding: 22px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 77, 0.55), transparent 55%), linear-gradient(140deg, #1b1f3a, #0e1016 70%); }
.video-kicker { font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm); }
.video-title { font: 800 clamp(34px, 4vw, 52px)/0.95 var(--font-sans); color: #fff; letter-spacing: -0.04em; }
.video-play { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink-0); }
.video-meta { display: block; padding: 16px 20px 18px; color: var(--fg-muted); font-size: 14px; }
.video-meta b { display: block; color: var(--fg-strong); font-size: 15.5px; margin-bottom: 2px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .video-card { transform: none; } }
.logos { padding: 28px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.logos-title { text-align: center; font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; padding-bottom: 20px; animation: marquee 34s linear infinite; }
.marquee-track span { font: 800 22px/1 var(--font-sans); color: var(--fg-subtle); letter-spacing: -0.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .pulse { animation: none; } .video-card, .btn, .feature { transition: none; } }
.sec { padding: clamp(64px, 9vw, 112px) 0 0; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2, .api-band h2, .login-sec h2, .cta h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.sec-head p { color: var(--fg-muted); font-size: 17px; }
.sec-head .eyebrow { color: var(--hot); font-size: 12px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); transition: border-color 0.25s, transform 0.3s var(--ease); }
.feature:hover { border-color: var(--line-3); transform: translateY(-3px); }
.feature--lead { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(90% 70% at 0% 0%, rgba(99, 102, 241, 0.28), transparent 60%), var(--ink-2); }
.feature--lead h3 { font-size: 26px; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--fg-muted); font-size: 14.5px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature--lead { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.api-band { margin-top: clamp(64px, 9vw, 112px); padding: clamp(56px, 7vw, 88px) 0; background: linear-gradient(180deg, rgba(99, 102, 241, 0.07), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.api-band p { color: var(--fg-muted); }
.api-points { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 10px; }
.term { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #07080b; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--fg-subtle); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px; overflow-x: auto; font: 13px/1.7 var(--font-mono); color: var(--fg); }
.c-dim { color: var(--fg-subtle); } .c-cmd { color: var(--warm); } .c-str { color: #a5f3c5; } .c-key { color: var(--brand); }
.quotas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quotas div { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); text-align: center; }
.quotas b { display: block; font-size: 22px; color: var(--fg-strong); }
.quotas span { font-size: 12.5px; color: var(--fg-muted); }
@media (max-width: 900px) { .api-grid { grid-template-columns: minmax(0, 1fr); } }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; transition: border-color 0.25s; }
.post:hover { border-color: var(--line-3); }
.post-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 18px 20px 20px; }
.post-body h3 { font-size: 18px; }
.post-body h3 a { color: var(--fg-strong); text-decoration: none; }
.post-body h3 a:hover { color: var(--brand); }
.post-body p:last-child { color: var(--fg-muted); font-size: 14.5px; margin: 0; }
.post-meta { font: 500 12.5px/1.4 var(--font-mono); color: var(--fg-subtle); margin-bottom: 8px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.login-sec { padding: clamp(64px, 9vw, 112px) 0 0; }
.login-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.login-sec p { color: var(--fg-muted); font-size: 17px; }
.login-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; } }
.cta-card { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(70% 120% at 50% 0%, rgba(99, 102, 241, 0.25), transparent 60%), var(--ink-1); }
.cta-card p { color: var(--fg-muted); max-width: 60ch; margin: 0 auto 26px; }

/* ---------- Formulaires ---------- */
.form-page { display: grid; place-items: center; padding: clamp(40px, 8vw, 96px) var(--gutter) 0; }
.form-page--wide { place-items: stretch; max-width: var(--wrap); margin: 0 auto; }
.form-card { width: 100%; max-width: 460px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.form-card h1 { font-size: 28px; }
.form-card h3 { font-size: 20px; }
.form-intro { color: var(--fg-muted); }
form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.fld small { font-weight: 500; color: var(--fg-subtle); }
.fld input, .fld textarea, .fld select { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-0); color: var(--fg-strong); font: 15px var(--font-sans); transition: border-color 0.2s, box-shadow 0.2s; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fld textarea { resize: vertical; min-height: 140px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--fg-muted); }
.chk input { margin-top: 3px; accent-color: var(--brand-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; min-height: 1.2em; }
.form-msg.is-err { color: var(--down); }
.form-msg.is-ok { color: var(--up); }
.form-alt { margin: 16px 0 0; font-size: 14px; color: var(--fg-muted); }
.big-code { font-size: 64px; font-weight: 700; color: var(--brand); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-aside h1 { font-size: clamp(30px, 4vw, 44px); }
.contact-aside p { color: var(--fg-muted); font-size: 17px; }
.contact-grid .form-card { max-width: none; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Blog et pages de texte ---------- */
.blog-hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: 32px; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.blog-hero p { color: var(--fg-muted); font-size: 18px; }
.post-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 16px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-1); text-decoration: none; color: inherit; transition: border-color 0.25s; }
.post-lead:hover { border-color: var(--brand); }
.post-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.post-lead h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 12px; }
.post-lead-body { display: grid; gap: 6px; padding: 8px; }
.post-lead-text { color: var(--fg-muted); }
.badge { justify-self: start; font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
@media (max-width: 800px) { .post-lead { grid-template-columns: 1fr; } }
.sec-title { margin: 56px 0 20px; font-size: 22px; }
.sec-title small { font-size: 14px; color: var(--fg-subtle); }
.prose-page { max-width: 780px; padding-top: clamp(40px, 7vw, 80px); }
.prose-page h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.back { font-weight: 600; text-decoration: none; }
.lead { font-size: 19px; color: var(--fg); }
.post-cover { width: 100%; border-radius: var(--r-lg); margin: 16px 0 28px; height: auto; }
.prose { font-size: 17px; line-height: 1.75; color: #d4d7e0; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--fg-muted); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; }
.post-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Vérification de présence (demo.php) ---------- */
.dc-form { display: grid; gap: 12px; }
.dc-input { width: 100%; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-0); color: var(--fg-strong); font: 14px/1.5 var(--font-mono); resize: vertical; }
.dc-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.dc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dc-note, .dc-msg { color: var(--fg-muted); font-size: 13.5px; margin: 0; }
.dc-results { display: grid; gap: 14px; margin-top: 20px; }
.dc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dc-tiles div { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 2px; }
.dc-tiles b { font: 700 28px var(--font-mono); color: var(--fg-strong); }
.dc-tiles span { font-size: 13px; color: var(--fg-muted); }
.dc-tiles .is-ok b { color: var(--up); }
.dc-list { display: grid; gap: 8px; }
.dc-item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.dc-badge { font: 600 12px var(--font-mono); color: var(--fg-subtle); }
.dc-item.is-ok .dc-badge { color: var(--up); }
.dc-url { color: var(--fg-strong); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dc-meta { margin: 4px 0 0; font-size: 13px; color: var(--fg-muted); }
@media (max-width: 600px) { .dc-item { grid-template-columns: 1fr; } .dc-tiles b { font-size: 22px; } }
.features--stack { grid-template-columns: 1fr 1fr; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 800px) { .steps-grid, .features--stack { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--fg-muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 14px var(--font-mono); }
.steps b { color: var(--fg-strong); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--fg-strong); }
.faq p { color: var(--fg-muted); margin: 10px 0 0; }
.demo-wrap { max-width: 860px; }
.demo-wrap h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.form-card--wide { max-width: none; }

/* ---------- Documentation de l'API (/api/docs) ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: clamp(32px, 6vw, 64px); }
.doc-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; display: grid; gap: 2px; padding-bottom: 24px; }
.doc-toc-h { margin: 20px 0 8px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.doc-toc-h:first-child { margin-top: 0; }
.doc-toc a { padding: 5px 10px; border-left: 2px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--fg-muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s, background 0.2s; }
.doc-toc a:hover { color: var(--fg-strong); background: var(--ink-2); }
.doc-toc a[aria-current] { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); }
.doc { min-width: 0; }
.doc-hero { padding-bottom: 36px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.doc-hero-sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-muted); max-width: 64ch; }
.doc-sec { margin-bottom: 64px; scroll-margin-top: 84px; }
.doc-sec > h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-sec h3 { font-size: 18px; margin-top: 32px; }
.doc-sec p { max-width: 74ch; }
.doc-lead { color: var(--fg-muted); font-size: 17px; margin-top: 14px; }
.doc :not(pre) > code { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--ink-3); font: 0.86em var(--font-mono); color: var(--fg-strong); overflow-wrap: anywhere; }
.doc-code { margin: 14px 0; padding: 16px 18px; max-width: 100%; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #07080b; font: 13px/1.65 var(--font-mono); color: var(--fg); tab-size: 2; }
.doc-code code { font: inherit; }
.doc-table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14.5px; }
.doc-table th, .doc-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { padding-bottom: 8px; border-bottom-color: var(--line-2); font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); }
.doc-table td { color: var(--fg-muted); }
.doc-table tbody th, .doc-table td:first-child { color: var(--fg-strong); font-weight: 600; }
.doc-table--kv tbody th { width: 34%; }
.doc-quotas { max-width: 560px; margin: 22px 0; }
.doc-note { margin: 20px 0; padding: 14px 18px; border: 1px solid rgba(129, 140, 248, 0.25); border-left: 3px solid var(--brand); border-radius: var(--r-md); background: var(--brand-soft); }
.doc-note p { margin: 0; color: var(--fg-muted); }
.doc-note p + p { margin-top: 8px; }
.doc-note strong { color: var(--fg-strong); }
.doc-route { margin: 16px 0; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); transition: border-color 0.25s; }
.doc-route:hover { border-color: var(--line-2); }
.doc-route--off { opacity: 0.75; border-style: dashed; background: transparent; }
.doc-route-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.doc .doc-path { padding: 0; border: 0; background: none; font: 600 15px var(--font-mono); color: var(--fg-strong); }
.doc-route-sum { margin: 10px 0 0; color: var(--fg-muted); font-size: 15px; }
.doc-caption { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-subtle); }
.doc-flag { font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(248, 113, 113, 0.12); color: var(--down); }
.verb { display: inline-block; min-width: 58px; padding: 4px 9px; border-radius: var(--r-sm); font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.05em; text-align: center; }
.verb-get { background: var(--brand-soft); color: var(--brand); }
.verb-post { background: rgba(52, 211, 153, 0.13); color: var(--up); }
.verb-delete { background: rgba(248, 113, 113, 0.13); color: var(--down); }
.doc-route details { margin-top: 12px; }
.doc-route summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--fg-muted); list-style: none; }
.doc-route summary::-webkit-details-marker { display: none; }
.doc-route summary::before { content: "▸"; display: inline-block; transition: transform 0.2s var(--ease); }
.doc-route details[open] summary::before { transform: rotate(90deg); }
.doc-route summary:hover { color: var(--fg-strong); }
.doc-tabs { margin: 18px 0; }
.doc-tablist { display: flex; flex-wrap: wrap; gap: 4px; }
.doc-tablist [role="tab"] { padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: none; color: var(--fg-subtle); font: 600 13.5px var(--font-sans); cursor: pointer; }
.doc-tablist [role="tab"]:hover { color: var(--fg-strong); }
.doc-tablist [aria-selected="true"] { border-color: var(--line-2); background: #07080b; color: var(--fg-strong); }
.doc-panel-label { margin: 16px 0 0; font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); }
.doc-tabs.is-tabbed .doc-panel-label { display: none; }
.doc-tabs.is-tabbed .doc-code { margin-top: -1px; border-top-left-radius: 0; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .doc-toc-h { display: none; }
  .doc-toc a { flex-shrink: 0; white-space: nowrap; border-left: 0; border-radius: var(--r-sm); }
}
@media (max-width: 600px) {
  .doc-route { padding: 16px; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: auto; }
  .doc-table thead { display: none; }
  .doc-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc-table th, .doc-table td { padding: 2px 0; border: 0; }
  .doc-table--kv tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .doc-route, .doc-toc a, .doc-route summary::before { transition: none; } }

/* ---------- Landing : captures de l'application (cadre de navigateur) ---------- */
.shot { display: block; margin: 0; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--ink-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(99, 102, 241, 0.55); text-decoration: none; transition: transform 0.4s var(--ease), border-color 0.25s; }
.shot img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.shot-bar span { margin-left: 8px; font: 500 12px/1 var(--font-mono); color: var(--fg-subtle); }
a.shot:hover { transform: translateY(-4px); border-color: var(--line-3); }
.shot--hero { transform: perspective(1400px) rotateY(-6deg) rotate(0.6deg); }
.hero-grid:has(.shot--hero) { grid-template-columns: 0.95fr 1.05fr; }
.hero-video { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none; }
.hero-video-play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink-0); }
.hero-video-len { font: 500 12px/1 var(--font-mono); color: var(--fg-subtle); }
.hero-video:hover { color: var(--fg-strong); }

/* Visite guidée : texte et capture en alternance */
.tour { display: grid; gap: clamp(56px, 8vw, 104px); }
.tour-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour-row:nth-child(even) .tour-copy { order: 2; }
.tour-tag { margin: 0 0 10px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.tour-copy h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tour-copy > p { color: var(--fg-muted); }
.tour-copy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.tour-copy li { display: flex; gap: 8px; align-items: flex-start; }
.tour-copy li svg { color: var(--up); flex-shrink: 0; margin-top: 4px; }
.sec-head--sub { margin: clamp(72px, 9vw, 112px) 0 24px; }
.features--small .feature h3 { font-size: 18px; }
@media (max-width: 900px) {
  .hero-grid:has(.shot--hero) { grid-template-columns: 1fr; }
  .shot--hero { transform: none; }
  .tour-row { grid-template-columns: 1fr; }
  .tour-row:nth-child(even) .tour-copy { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }

/* ---------- Landing : bandeau des sources ---------- */
.sources-strip { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.sources-inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.sources-label { font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-subtle); }
.sources-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sources-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--fg); }

/* ---------- Landing : chiffres en grille Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bento-tile { position: relative; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-1); transition: border-color 0.25s, transform 0.3s var(--ease); }
.bento-tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.bento-tile p { margin: 0; position: relative; z-index: 1; }
.bento-kicker { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.bento-num { font: 700 clamp(34px, 3.6vw, 46px)/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fg-strong); }
.bento-text { color: var(--fg-muted); font-size: 14.5px; line-height: 1.5; }
.bento-tile--lead { grid-column: span 2; grid-row: span 2; justify-content: flex-start; background: radial-gradient(90% 60% at 0% 0%, rgba(99, 102, 241, 0.2), transparent 60%), var(--ink-1); }
.bento-tile--lead .bento-num { font-size: clamp(56px, 7vw, 88px); }
.bento-tile--lead .bento-text { max-width: 36ch; }
.bento-shot { position: absolute; left: 22px; top: 58%; width: calc(100% + 18px); height: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); opacity: 0.55; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.bento-tile--signal { border-color: rgba(255, 106, 77, 0.35); background: radial-gradient(100% 80% at 100% 0%, rgba(255, 106, 77, 0.16), transparent 60%), var(--ink-1); }
.bento-tile--signal .bento-num { color: var(--hot); }
/* Dernière ligne : tuile pleine largeur, chiffre et texte côte à côte. */
.bento-tile--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; justify-content: flex-start; align-items: center; gap: 24px; padding-block: 18px; border-color: rgba(99, 102, 241, 0.3); background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), transparent 55%), var(--ink-1); }
.bento-tile--wide .bento-kicker { order: -1; min-width: 9em; }
.bento-tile--wide .bento-text { max-width: 60ch; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-tile--lead { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-tile { min-height: 0; }
  .bento-tile--wide { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Visite guidée : numéros éditoriaux */
.tour-num { display: inline-block; margin-right: 8px; padding-right: 10px; border-right: 1px solid var(--line-3); color: var(--hot); }
@media (prefers-reduced-motion: reduce) { .bento-tile { transition: none; } }

/* ---------- Landing : assistant éditorial ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ai-copy > p:not(.eyebrow) { color: var(--fg-muted); font-size: 17px; }
.ai-copy h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.ai-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ai-points li { display: flex; gap: 8px; align-items: flex-start; }
.local-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.ai-copy > p.local-note { margin-top: 18px; color: var(--fg-subtle); font-size: 14px; }
.ai-points svg { color: var(--up); flex-shrink: 0; margin-top: 4px; }
.ai-demo { margin: 0; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 106, 77, 0.12), transparent 60%), var(--ink-1); box-shadow: 0 30px 80px -40px rgba(99, 102, 241, 0.55); }
.ai-demo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; color: var(--fg-strong); }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.ai-demo-tag { margin-left: auto; font: 500 12px/1 var(--font-mono); color: var(--fg-subtle); }
.ai-msg { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.ai-msg--user { justify-self: end; max-width: 85%; background: var(--brand-2); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg--bot { justify-self: start; max-width: 96%; background: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msg--bot p { margin: 0 0 8px; color: var(--fg); }
.ai-msg--bot strong { color: var(--fg-strong); }
.ai-warn { padding-left: 10px; border-left: 2px solid var(--warm); color: var(--fg-muted) !important; font-size: 13.5px; }
.ai-sources { margin: 0 !important; font-size: 12.5px; color: var(--fg-subtle) !important; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bouton « Haut de page » (mobile et tablette, back-to-top.js) ---------- */
.to-top-marker { position: absolute; top: 120vh; left: 0; width: 1px; height: 1px; pointer-events: none; }
.to-top { display: none; }
@media (max-width: 900px) {
  .to-top { position: fixed; right: 12px; bottom: var(--to-top-bottom, 16px); z-index: 59; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-3); border-radius: 50%; background: rgba(20, 22, 30, 0.92); color: var(--fg-strong, #fff); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
  .to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- Fenêtre « GnewsAlyzer devient Signalytics » (page d'accueil, une fois par navigateur) ---------- */
.rename { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 30px 30px 26px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: radial-gradient(120% 60% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 60%), var(--ink-1); color: var(--fg); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03); overflow: auto; }
.rename[open] { animation: rename-in 0.35s var(--ease); }
.rename::backdrop { background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(4px); }
@keyframes rename-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.rename-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.rename-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--fg-muted); font-size: 26px; line-height: 1; cursor: pointer; }
.rename-x:hover, .rename-x:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--fg-strong); }
.rename .eyebrow { margin: 0 0 14px; }
.rename-names { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 800; font-size: 22px; }
.rename-old { color: var(--fg-subtle); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 106, 77, 0.7); }
.rename-arrow { color: var(--fg-subtle); }
.rename-names img { border-radius: 8px; }
.rename-new { color: var(--fg-strong); }
.rename h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 30px); line-height: 1.15; }
.rename-lead { margin: 0 0 18px; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }
.rename-points { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.5; }
.rename-points li { display: flex; gap: 10px; align-items: flex-start; }
.rename-points svg { flex: none; margin-top: 3px; color: var(--up); }
.rename-points strong { color: var(--fg-strong); }
.rename-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 480px) { .rename { padding: 24px 20px 20px; } .rename-names { font-size: 18px; gap: 8px; } .rename-actions .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .rename[open] { animation: none; } }
