@import url(fonts/inter.css);
@import url(fonts/manrope.css);
:root {
  --bg: #ffffff; --bg-soft: #f6f6fb; --surface: #ffffff; --text: #3a3950; --heading: #14122b; --muted: #6c6b83; --border: #e7e6f0;
  --primary: #5b4cf0; --primary-dark: #4637d6; --primary-soft: #efedff; --accent: #ff6b8b; --green: #16a34a; --amber: #d97706; --red: #dc2626;
  --radius: 16px; --shadow: 0 1px 2px rgba(20,18,43,.04), 0 8px 28px rgba(20,18,43,.06); --shadow-lg: 0 30px 80px rgba(20,18,43,.16);
  --container: 1180px; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d0c17; --bg-soft: #13121f; --surface: #181729; --text: #c8c7da; --heading: #f4f3fb; --muted: #9492ad; --border: #28273d; --primary-soft: #231f4a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --bg: #0d0c17; --bg-soft: #13121f; --surface: #181729; --text: #c8c7da; --heading: #f4f3fb; --muted: #9492ad; --border: #28273d; --primary-soft: #231f4a; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
pre { background: #14122b; color: #e7e6f5; padding: 18px 20px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.site-head .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.25rem var(--font-head); color: var(--heading); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #5b4cf0, #ff6b8b); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 8px; }
.logo-mark span { background: rgba(255,255,255,.92); border-radius: 2px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { background: var(--bg-soft); color: var(--heading); text-decoration: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--heading); padding: 8px; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 12px 16px 18px; border-bottom: 1px solid var(--border); margin: 0; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .head-actions .btn-ghost { display: none; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem var(--font); padding: 11px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 26px rgba(91,76,240,.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn-danger { color: var(--red); }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 820px; background: radial-gradient(closest-side, rgba(91,76,240,.18), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(255,107,139,.16), transparent 70%); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.gradient-text { background: linear-gradient(120deg, #5b4cf0, #ff6b8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase { margin: 56px auto 0; max-width: 1080px; border-radius: 22px; padding: 10px; background: linear-gradient(135deg, rgba(91,76,240,.3), rgba(255,107,139,.25)); box-shadow: var(--shadow-lg); }
.showcase img { border-radius: 14px; width: 100%; }
.browser { border-radius: 14px; overflow: hidden; background: var(--surface); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: var(--green); font-weight: 800; font-size: 12px; margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font: 800 2.2rem var(--font-head); color: var(--heading); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.cta-band { border-radius: 28px; padding: 56px 32px; text-align: center; color: #fff; background: radial-gradient(60% 120% at 10% 0%, #7c6cff, transparent), linear-gradient(135deg, #3b2fc9, #14122b); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band .btn { border: 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .95rem; }
.compare th { background: var(--bg-soft); font-weight: 700; color: var(--heading); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--green); font-weight: 800; } .no { color: var(--muted); } .part { color: var(--amber); font-weight: 700; }

/* Marketplace */
.market-head { padding: 56px 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.market-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 32px 0 80px; }
@media (max-width: 900px) { .market-layout { grid-template-columns: 1fr; } }
.filters a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: .95rem; }
.filters a:hover, .filters a.active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.filters h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 12px 8px; }
.search-box { display: flex; gap: 8px; margin-top: 20px; max-width: 640px; }
.search-box input { flex: 1; }
input, select, textarea { width: 100%; font: inherit; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type=checkbox], input[type=radio] { width: auto; }
label { font-weight: 600; font-size: .92rem; color: var(--heading); display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.help { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pkg-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform .15s, box-shadow .15s; color: var(--text); }
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pkg-card .top { display: flex; gap: 14px; align-items: center; }
.pkg-card h3 { font-size: 1.05rem; margin: 0; }
.pkg-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.pkg-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.pkg-icon { flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.price { font-weight: 800; color: var(--heading); }
.price.free { color: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.badge-amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.badge-violet { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars span { color: #d8d6e5; }
.stars .on { color: #f59e0b; }
.stars .half { background: linear-gradient(90deg, #f59e0b 50%, #d8d6e5 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-page { padding: 44px 0 90px; }
.pkg-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.pkg-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.pkg-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .pkg-layout { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: 90px; }
.buy-box .price { font-size: 2rem; display: block; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; margin: 18px 0 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; color: var(--heading); font-weight: 500; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 85%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-bottom: 28px; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 12px; border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.shots figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; }
.review { border-top: 1px solid var(--border); padding: 18px 0; }
.review .reply { margin: 10px 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-size: .93rem; }
.rating-bars { display: grid; gap: 6px; font-size: .86rem; }
.rating-bars div { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; }
.bar { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; } .bar span { display: block; height: 100%; background: #f59e0b; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--heading); border-color: var(--primary); text-decoration: none; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 240px 1fr 200px; gap: 40px; padding: 48px 0 90px; align-items: start; }
.docs-nav, .docs-toc { position: sticky; top: 90px; font-size: .93rem; }
.docs-nav a, .docs-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.docs-nav a.active, .docs-nav a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.docs-toc a { color: var(--muted); font-size: .86rem; padding: 4px 8px; } .docs-toc .l3 { padding-left: 20px; }
@media (max-width: 1100px) { .docs-layout { grid-template-columns: 220px 1fr; } .docs-toc { display: none; } }
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; } }

/* Formulaires, compte, alertes */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: var(--bg-soft); }
.auth .card { width: min(100%, 440px); padding: 34px; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }
.flash-wrap { position: fixed; top: 80px; right: 16px; z-index: 60; width: min(420px, calc(100% - 32px)); }
.page { padding: 44px 0 90px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list .grow { flex: 1; min-width: 200px; }
.license { font: 600 .9rem ui-monospace, Menlo, monospace; background: var(--bg-soft); border: 1px dashed var(--primary); color: var(--heading); padding: 6px 10px; border-radius: 8px; user-select: all; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card strong { display: block; font: 800 1.7rem var(--font-head); color: var(--heading); }

/* Pied de page */
.site-foot { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-soft); font-size: .93rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--text); }
.site-foot .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px; color: var(--heading); cursor: pointer; }
.star-btn { background: none; border: 0; font-size: 1.7rem; color: #d8d6e5; cursor: pointer; padding: 0 2px; }
.star-btn.on { color: #f59e0b; }
.logo-sub { font-weight: 600; color: var(--primary); font-size: .8em; margin-left: -4px; }
