/* Kairo Dev — style affiche streetwear / promo GTA :
   grosse typo blanche large (Unbounded), mot au pinceau sec cyan qui chevauche (Kaushan Script + texture),
   stickers roses détourés, photos du jeu en fond. */
:root {
    --bg: #0a0c11;
    --panel: #12151d;
    --panel-2: #181c27;
    --code: #07080c;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .16);
    --white: #ffffff;
    --ink: #f4f6fb;
    --ink-2: #a9b1c3;
    --mut: #78819a;
    --dim: #4b5266;
    --cyan: #18c8ff;
    --cyan-2: #5ad8ff;
    --pink: #ff3cac;
    --ok: #5ef0a8;
    --heavy: 'Unbounded', 'Arial Black', sans-serif;
    --brush: 'Kaushan Script', 'Brush Script MT', cursive;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
p { margin: 0; }
.icon { width: 1em; height: 1em; }
::selection { background: var(--cyan); color: #04121a; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--heavy); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: .95; color: var(--white); }

/* Mot au pinceau sec (cyan) : police au pinceau + stries de poils */
.brush {
    display: inline-block; font-family: var(--brush); font-weight: 400; text-transform: none; letter-spacing: 0;
    color: var(--cyan); line-height: 1; transform: rotate(-4deg);
    -webkit-mask: url('../img/dry-brush.svg') center / 100% 100% no-repeat;
    mask: url('../img/dry-brush.svg') center / 100% 100% no-repeat;
    padding: .02em .12em .1em;
}
.brush-pink { color: var(--pink); }

/* Sticker détouré */
.sticker {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--pink); color: #160612; font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
    border-radius: 44% 56% 50% 50% / 52% 46% 54% 48%;
    box-shadow: 0 0 0 5px #fff, 0 14px 30px rgba(0, 0, 0, .45);
    transform: rotate(12deg); line-height: .95; text-align: center;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.label { display: inline-block; margin-bottom: 16px; padding: 5px 11px; background: var(--pink); color: #160612; font: 800 11px var(--heavy); letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); }

/* ── Boutons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 22px; cursor: pointer; white-space: nowrap;
    border: 2px solid var(--white); border-radius: 0; background: transparent; color: var(--white);
    font: 800 12.5px var(--heavy); letter-spacing: .04em; text-transform: uppercase;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--white); color: var(--bg); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #04121a; }
.btn-primary:hover { background: var(--white); border-color: var(--white); color: #04121a; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 11px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 15px; height: 15px; }

/* ── Navigation ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 17, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; }
.brand span { font: 800 16px var(--heavy); text-transform: uppercase; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font: 700 12px var(--heavy); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--cyan); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }

/* ── Hero affiche ── */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: center; padding: 90px 0 80px; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero-bg.is-photo { filter: saturate(1.15) contrast(1.05); }
/* fond de secours sans photo : trame de points + grain */
.hero-bg.is-fallback { background-color: #0d1018; background-image: radial-gradient(rgba(24, 200, 255, .22) 1.2px, transparent 1.4px), radial-gradient(rgba(255, 60, 172, .14) 1.2px, transparent 1.4px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 17, .35) 0%, rgba(10, 12, 17, .25) 45%, var(--bg) 100%); }
.hero .wrap { position: relative; }
.title { position: relative; display: inline-block; }
.title .heavy { display: block; font: 900 clamp(64px, 13.5vw, 196px) var(--heavy); line-height: .82; letter-spacing: -0.035em; color: var(--white); text-transform: uppercase; }
.title .brush { font-size: clamp(76px, 15vw, 220px); margin-top: -.42em; position: relative; }
.title .sticker { position: absolute; top: -10%; right: -6%; width: clamp(90px, 11vw, 150px); height: clamp(90px, 11vw, 150px); font-size: clamp(13px, 1.5vw, 20px); }
.title .sticker b { font-size: 1.9em; }
.hero .lead { margin: 34px auto 0; max-width: 560px; font-size: 17px; color: var(--ink); font-weight: 500; text-shadow: 0 2px 4px rgba(5, 4, 11, .9), 0 0 24px rgba(5, 4, 11, .85); }
.hero .title .heavy { text-shadow: 0 10px 40px rgba(5, 4, 11, .45); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }

/* ── Code ── */
.code { background: var(--code); border: 1px solid var(--line-2); }
.code-head { display: flex; align-items: center; height: 44px; padding: 0 16px; gap: 4px; border-bottom: 1px solid var(--line); }
.code-tab { font: 12px var(--mono); color: var(--dim); padding: 0 10px; height: 44px; display: inline-flex; align-items: center; }
.code-tab.is-on { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: 13.5px/1.8 var(--mono); color: #dfe5f2; counter-reset: ln; }
.code pre .ln { display: block; }
.code pre .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 18px; margin-right: 20px; text-align: right; color: #343a4a; }
.code-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.code-foot code { color: var(--cyan); }
.t-k { color: var(--pink); }
.t-s { color: #9ff0c9; }
.t-f { color: var(--cyan-2); }
.t-n { color: #ffd166; }
.t-c { color: #4b5266; font-style: italic; }

/* ── Sections ── */
.section { padding: 110px 0; }
.section-alt { background: var(--panel); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 52px; }
.head h2, .split h2 { font-size: clamp(36px, 5.2vw, 72px); max-width: 760px; }
.head h2 .brush, .split h2 .brush { font-size: 1.15em; vertical-align: -.08em; }
.head p { margin-top: 18px; color: var(--ink-2); max-width: 520px; }

/* ── Produits ── */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pkg { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s; overflow: hidden; }
.pkg:hover { border-color: var(--cyan); transform: translateY(-3px); }
.pkg-img { aspect-ratio: 16 / 9; background: var(--panel-2) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.pkg-img.is-empty { display: grid; place-items: center; background-image: radial-gradient(rgba(24, 200, 255, .18) 1px, transparent 1.3px); background-size: 16px 16px; }
.pkg-img.is-empty span { font: 900 26px var(--heavy); text-transform: uppercase; color: rgba(255, 255, 255, .12); letter-spacing: -0.02em; }
.pkg-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.pkg-top { display: flex; justify-content: space-between; gap: 10px; font: 11.5px var(--mono); color: var(--mut); }
.pkg-top .ver { color: var(--dim); }
.pkg h3 { margin-top: 12px; font-size: 19px; line-height: 1.05; }
.pkg p { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.55; flex: 1; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.pkg-foot .cat { padding: 4px 9px; background: rgba(255, 60, 172, .14); color: var(--pink); font: 800 10px var(--heavy); letter-spacing: .06em; text-transform: uppercase; }
.price { font: 900 18px var(--heavy); color: var(--white); }
.price-free { color: var(--ok); }
.owned { font: 800 12px var(--heavy); text-transform: uppercase; color: var(--ok); }
.pkg .badge-new { position: absolute; top: 12px; right: 12px; width: 62px; height: 62px; font-size: 10.5px; box-shadow: 0 0 0 3px #fff; }

/* ── Un seul framework ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split > *, .product > *, .hero .wrap > * { min-width: 0; }
.points { margin-top: 44px; }
.point { padding: 24px 0; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; border-top: 1px solid var(--line); }
.point .n { font: 900 28px var(--heavy); color: var(--cyan); line-height: 1; }
.point h3 { font-size: 18px; }
.point p { grid-column: 2; color: var(--ink-2); font-size: 14.5px; }

/* ── FAQ ── */
.faq { border-top: 2px solid var(--white); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 800 15px var(--heavy); text-transform: uppercase; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--cyan); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 640px; }

/* ── Appel final ── */
.cta { position: relative; padding: 72px 64px; background: var(--cyan); color: #04121a; overflow: hidden; }
.cta h2 { font-size: clamp(36px, 5vw, 68px); color: #04121a; max-width: 760px; }
.cta h2 .brush { color: var(--white); font-size: 1.15em; }
.cta p { margin-top: 14px; color: #0c3a4c; font-weight: 500; max-width: 520px; }
.cta .hero-actions { justify-content: flex-start; }
.cta .btn { border-color: #04121a; color: #04121a; }
.cta .btn:hover { background: #04121a; color: var(--white); }
.cta .btn-primary { background: #04121a; color: var(--white); }
.cta .btn-primary:hover { background: var(--white); color: #04121a; border-color: var(--white); }
.cta .sticker { position: absolute; right: 56px; top: 50%; width: 150px; height: 150px; font-size: 16px; margin-top: -75px; }
.cta .sticker b { font-size: 2em; }

/* ── Boutique ── */
.page-head { padding: 90px 0 50px; text-align: left; }
.page-head .title .heavy { font-size: clamp(56px, 10vw, 140px); }
.page-head .title .brush { font-size: clamp(60px, 10.5vw, 150px); margin-top: -.4em; }
.page-head p { margin-top: 26px; color: var(--ink-2); max-width: 520px; }
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 20px 0 110px; }
.side { position: sticky; top: 100px; align-self: start; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 2px solid var(--line-2); margin-bottom: 22px; transition: border-color .15s; }
.search:focus-within { border-color: var(--cyan); }
.search .icon { color: var(--mut); width: 15px; height: 15px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 14px 'Inter', sans-serif; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav button { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 14px; border: 0; background: none; color: var(--ink-2); font: 700 12px var(--heavy); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-align: left; transition: color .15s, background .15s; }
.side-nav button:hover { color: var(--white); background: var(--panel); }
.side-nav button.is-active { background: var(--cyan); color: #04121a; }
.side-nav span { font: 11.5px var(--mono); opacity: .7; }
.shop .pkg-grid { grid-template-columns: repeat(2, 1fr); }
.empty { padding: 60px 0; text-align: center; color: var(--mut); font: 800 14px var(--heavy); text-transform: uppercase; }

/* ── Fiche produit ── */
.crumbs { display: flex; gap: 10px; font: 11.5px var(--mono); color: var(--mut); padding-top: 40px; }
.crumbs a:hover { color: var(--cyan); }
.product { display: grid; grid-template-columns: 1fr 340px; gap: 64px; padding: 36px 0 110px; align-items: start; }
.product .res { font: 12px var(--mono); color: var(--cyan); }
.product h1 { margin-top: 16px; font-size: clamp(44px, 6.6vw, 92px); line-height: .9; }
.product .tagline { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 600px; }
.product .shot { margin-top: 36px; aspect-ratio: 16 / 9; background: var(--panel) center / cover no-repeat; border: 1px solid var(--line); }
.block { margin-top: 64px; }
.block h2 { font-size: 26px; margin-bottom: 22px; }
.block p { color: var(--ink-2); margin-bottom: 14px; max-width: 640px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.checks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.checks .icon { color: var(--cyan); flex-shrink: 0; margin-top: 4px; width: 15px; height: 15px; }
.buy { position: sticky; top: 100px; padding: 30px; background: var(--panel); border: 2px solid var(--white); }
.buy .amount { font: 900 46px var(--heavy); line-height: 1; letter-spacing: -0.03em; }
.buy .amount.price-free { color: var(--ok); }
.buy .note { margin-top: 10px; color: var(--mut); font-size: 13px; }
.buy form, .buy > .btn { margin-top: 24px; }
.specs { margin: 26px 0 0; padding: 0; list-style: none; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.specs li span:first-child { color: var(--mut); }
.specs li span:last-child { font: 12px var(--mono); }

/* ── Mes achats ── */
.list { border-top: 2px solid var(--white); }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.row .res { font: 11.5px var(--mono); color: var(--cyan); }
.row strong { display: block; margin-top: 6px; font: 800 20px var(--heavy); text-transform: uppercase; }
.row .meta { font: 12px var(--mono); color: var(--mut); }

/* ── Pied de page ── */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 16px; color: var(--mut); font-size: 13.5px; max-width: 300px; }
.footer-col strong { display: block; font: 800 11px var(--heavy); letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font: 11.5px var(--mono); }

/* ── Notifications ── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--panel-2); border-left: 3px solid var(--cyan); font-size: 14px; }
.toast .icon { flex-shrink: 0; color: var(--cyan); }

/* ══════════ Pinceau partout : tous les titres et intitulés au pinceau sec cyan ══════════ */
h2, h3, h4, .product h1, .faq summary, .point .n, .footer-col strong, .row strong, .buy .amount, .price, .owned {
    font-family: var(--brush); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.05;
}
/* gros titres : texture de pinceau sec en tuile de taille fixe (stries fines, jamais étirées) + légère inclinaison */
h2, .product h1, .buy .amount {
    -webkit-mask: url('../img/dry-brush.svg') 0 0 / 560px 190px repeat;
    mask: url('../img/dry-brush.svg') 0 0 / 560px 190px repeat;
}
h3 { -webkit-mask: none; mask: none; }
h2 { color: var(--cyan); transform: rotate(-2deg); transform-origin: left center; padding: .06em .08em .12em 0; }
.head h2, .split h2 { font-size: clamp(44px, 6.4vw, 92px); }
h2 .brush { color: var(--white); font-size: 1em; vertical-align: baseline; transform: none; -webkit-mask: none; mask: none; padding: 0; }
.cta h2 { color: #04121a; }
.cta h2 .brush { color: var(--white); }

.pkg h3 { font-size: 30px; color: var(--cyan); margin-top: 10px; padding-bottom: .05em; }
.point h3 { font-size: 26px; color: var(--cyan); }
.block h2 { font-size: 36px; transform: rotate(-1.5deg); }

.product h1 { font-size: clamp(58px, 8vw, 120px); color: var(--cyan); transform: rotate(-3deg); transform-origin: left center; padding: .04em .1em .14em 0; }
.buy .amount { font-size: 58px; color: var(--white); }
.buy .amount.price-free { color: var(--ok); }
.price { font-size: 27px; color: var(--white); }
.price-free { color: var(--ok); }
.owned { font-size: 22px; }
.row strong { font-size: 32px; color: var(--cyan); }

.faq summary { font-size: 25px; color: var(--white); padding: 18px 0; }
.faq details[open] summary { color: var(--cyan); }
.point .n { font-size: 36px; color: var(--pink); }
.footer-col strong { font-size: 22px; color: var(--cyan); margin-bottom: 10px; }
.empty { font-family: var(--brush); text-transform: none; font-size: 30px; font-weight: 400; }

/* menu, boutons, étiquettes : pinceau aussi, sans texture (trop petits pour les stries) */
.nav-links a { font: 400 19px var(--brush); text-transform: none; letter-spacing: 0; }
.brand span { font: 400 24px var(--brush); text-transform: none; color: var(--cyan); }
.btn { font: 400 18px var(--brush); text-transform: none; letter-spacing: .01em; }
.btn-sm { font-size: 16px; }
.btn-lg { font-size: 21px; }
.label { font: 400 16px var(--brush); text-transform: none; letter-spacing: .01em; padding: 3px 12px 5px; }
.pkg-foot .cat { font: 400 14px var(--brush); text-transform: none; letter-spacing: 0; }
.side-nav button { font: 400 18px var(--brush); text-transform: none; letter-spacing: 0; }
.sticker { font-family: var(--brush); font-weight: 400; text-transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; gap: 48px; }
    .pkg-grid { grid-template-columns: 1fr 1fr; }
    .shop { grid-template-columns: 1fr; }
    .side { position: static; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .product { grid-template-columns: 1fr; gap: 48px; }
    .buy { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .cta { padding: 56px 40px 150px; }
    .cta .sticker { top: auto; bottom: 30px; margin-top: 0; right: 40px; width: 110px; height: 110px; font-size: 12px; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 20px; }
    .hero { min-height: 0; padding: 70px 0 64px; }
    .section { padding: 80px 0; }
    .pkg-grid, .shop .pkg-grid { grid-template-columns: 1fr; }
    .checks { grid-template-columns: 1fr; }
    .head { flex-direction: column; align-items: flex-start; }
    .row { grid-template-columns: 1fr; gap: 14px; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-cta .btn:not(.btn-primary) { display: none; }
    .title .sticker { right: -2%; }
}

/* ══════════ Documentation ══════════ */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 48px 28px 120px; }
.docs > * { min-width: 0; }
.docs-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.docs-side-title { display: block; font: 400 26px var(--brush); color: var(--cyan); margin-bottom: 18px; }
.docs-group { margin-bottom: 22px; display: flex; flex-direction: column; }
.docs-group span { font: 800 10px var(--heavy); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.docs-group a { padding: 6px 10px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: 14px; transition: color .15s, border-color .15s; }
.docs-group a:hover { color: var(--white); border-color: var(--line-2); }
.docs-group a.is-active { color: var(--cyan); border-color: var(--cyan); }
.docs-title { margin-top: 18px; }
.docs-title .heavy { font-size: clamp(48px, 7vw, 104px); }
.docs-title .brush { font-size: clamp(56px, 7.6vw, 116px); margin-top: -.42em; }
.docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.tag-m { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); font: 12px var(--mono); color: var(--ink-2); }
.docs-toc { position: sticky; top: 68px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 36px 0 0; padding: 14px 0; background: rgba(10, 12, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.docs-toc a { font: 400 18px var(--brush); color: var(--ink-2); transition: color .15s; }
.docs-toc a:hover { color: var(--cyan); }
.docs-sec { padding-top: 64px; scroll-margin-top: 130px; }
.docs-sec > p { color: var(--ink-2); max-width: 720px; margin-bottom: 14px; }
.docs-sec h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 22px; }
.docs-sec .code { margin-top: 18px; }
.ic { font: 13px var(--mono); color: var(--cyan); background: rgba(24, 200, 255, .08); padding: 2px 6px; }
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; max-width: 760px; }
.steps li { counter-increment: st; position: relative; padding: 14px 0 14px 56px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 8px; font: 400 30px var(--brush); color: var(--pink); }
.api { margin-top: 26px; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); }
.api-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.api h3 { font-size: 30px; color: var(--white); }
.side { padding: 3px 10px; font: 800 10px var(--heavy); letter-spacing: .06em; text-transform: uppercase; }
.side-s { background: rgba(255, 60, 172, .16); color: var(--pink); }
.side-c { background: rgba(24, 200, 255, .14); color: var(--cyan); }
.sig { display: block; margin-top: 14px; padding: 12px 14px; background: var(--code); font: 13.5px var(--mono); color: #dfe5f2; overflow-x: auto; white-space: nowrap; }
.api > p { margin-top: 14px; color: var(--ink-2); }
.params { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.params th { text-align: left; padding: 9px 12px 9px 0; font: 800 10px var(--heavy); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line-2); }
.params td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.params code { font: 12.5px var(--mono); color: var(--white); }
.params code.ty { color: var(--cyan); }
.ret { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.ret b { font: 800 10px var(--heavy); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); margin-right: 8px; }
@media (max-width: 960px) {
    .docs { grid-template-columns: 1fr; gap: 30px; }
    .docs-side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 0 24px; }
    .docs-side-title { width: 100%; }
    .docs-toc { top: 68px; }
}

/* ══════════ Animations ══════════ */
/* Transition entre les pages (navigateurs compatibles) : la page sort vers le haut, la nouvelle monte */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(0, 0, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: no-preference) {
    /* Hero : le gros mot s'imprime, le pinceau se peint de gauche à droite, le sticker se colle */
    .title .heavy { animation: stamp .7s cubic-bezier(.2, .9, .25, 1.2) both; }
    .title .brush { animation: paint .9s .32s cubic-bezier(.6, 0, .2, 1) both; }
    .title .sticker { animation: stick .55s .95s cubic-bezier(.2, 1.4, .4, 1) both; }
    .hero .lead, .hero .hero-actions, .page-head p, .docs-meta { animation: rise .6s .7s ease both; }

    /* Titres de section : peints à l'arrivée à l'écran (classe .in posée par store.js) */
    /* masqué par l'opacité (un clip-path empêcherait la détection de visibilité) */
    html.js h2:not(.in), html.js .product h1:not(.in) { opacity: 0; }
    html.js h2.in, html.js .product h1.in { animation: paint .85s cubic-bezier(.6, 0, .2, 1) both; }
    html.js .pkg:not(.in), html.js .point:not(.in), html.js .api:not(.in), html.js .faq details:not(.in), html.js .code:not(.in) { opacity: 0; transform: translateY(22px); }
    /* "backwards" : une fois jouée, l'animation rend la main aux styles normaux (le survol des cartes reste actif) */
    html.js .pkg.in, html.js .point.in, html.js .api.in, html.js .faq details.in, html.js .code.in { animation: rise .55s ease backwards; animation-delay: var(--d, 0ms); }
}
@keyframes stamp { from { opacity: 0; transform: scale(1.35); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stick { from { opacity: 0; transform: rotate(-30deg) scale(.3); } to { opacity: 1; transform: rotate(12deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ══════════ Kairo Server : le pack complet ══════════ */
.pack { position: relative; overflow: hidden; }
.pack::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 60, 172, .16) 1.2px, transparent 1.5px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.pack-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.pack-grid > * { min-width: 0; }
.pack-title { display: block; }
.pack-title .heavy { font-size: clamp(56px, 8.5vw, 124px); }
.pack-title .brush { font-size: clamp(64px, 9.5vw, 140px); margin-top: -.4em; color: var(--pink); }
.pack-lead { margin-top: 18px; color: var(--ink-2); max-width: 560px; }
.pack-box { position: relative; padding: 40px 36px 30px; background: var(--panel); border: 2px solid var(--white); }
.pack-sticker { position: absolute; top: -34px; right: -22px; width: 112px; height: 112px; font-size: 15px; }
.pack-sticker b { font-size: 1.6em; }
.pack-price { display: block; font: 400 72px/1 var(--brush); color: var(--white); }
.pack-value { display: block; margin-top: 10px; color: var(--mut); font-size: 14px; }
.pack-value s { color: var(--ink-2); }
.pack-list { list-style: none; margin: 26px 0 0; padding: 0; }
.pack-list li a, .pack-list li.pack-extra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.pack-list li a span, .pack-list li.pack-extra span { font: 400 20px var(--brush); color: var(--cyan); }
.pack-list li.pack-extra span { color: var(--pink); }
.pack-list li a:hover span { color: var(--white); }
.pack-list code { font: 11.5px var(--mono); color: var(--mut); }
.product .incl-grid { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
@media (max-width: 960px) {
    .pack-grid { grid-template-columns: 1fr; gap: 56px; }
    .pack-sticker { right: 10px; }
}
@media (max-width: 600px) { .product .incl-grid { grid-template-columns: 1fr; } }

/* ---- Contenu : étapes, métiers, comparatif, pour qui, FAQ groupée ---- */
.steps-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step-big { position: relative; padding: 34px 28px 30px; background: var(--bg); border: 1px solid var(--line); }
.step-n { display: block; font: 400 64px/1 var(--brush); color: var(--pink); margin-bottom: 18px; }
.step-big h3 { font-size: 26px; }
.step-big p, .job p, .who p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.jobs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.job { padding: 26px 22px; background: var(--bg); transition: background .15s; }
.job:hover { background: var(--panel); }
.job h3 { font-size: 24px; color: var(--cyan); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.compare thead th { font: 400 22px var(--brush); color: var(--white); background: var(--panel); }
.compare thead th:nth-child(2) { color: var(--cyan); }
.compare td:first-child { color: var(--white); font-weight: 600; width: 26%; }
.compare td.yes { color: var(--ink); }
.compare td.yes svg { color: var(--cyan); margin-right: 8px; vertical-align: -2px; }
.compare td.no { color: var(--mut); }
.compare tbody tr:last-child td { border-bottom: 0; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who { padding: 30px 28px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--pink); }
.who h3 { font-size: 26px; }
.faq-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.faq-group-title { display: inline-block; margin-bottom: 8px; padding: 4px 12px; background: var(--pink); color: #fff; font: 800 11px var(--heavy); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-2deg); }
@media (max-width: 960px) {
    .steps-big, .who-grid, .faq-groups { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .jobs-grid { grid-template-columns: 1fr; } }

/* ---- Page « Crée tes scripts » ---- */
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 40px 0 100px; }
.guide > * { min-width: 0; }
.guide-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.guide-toc a { padding: 8px 12px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: 14px; }
.guide-toc a:hover { color: var(--white); border-color: var(--cyan); }
.guide-sec { padding: 56px 0; border-top: 1px solid var(--line); }
.guide-sec:first-child { border-top: 0; padding-top: 0; }
.guide-sec h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 22px; }
.guide-sec h2 .brush { font-size: 1.15em; vertical-align: -.08em; }
.guide-sec h3 { font-size: 24px; margin: 34px 0 12px; }
.guide-sec p, .guide-sec li { color: var(--ink-2); max-width: 720px; line-height: 1.7; }
.guide-sec p + p { margin-top: 14px; }
.guide-sec ul, .guide-sec ol { margin: 14px 0 0; padding-left: 22px; }
.guide-sec li + li { margin-top: 8px; }
.guide-sec li b, .guide-sec p b { color: var(--white); }
.guide-sec .code { margin-top: 22px; }
.callout { margin-top: 24px; padding: 20px 24px; border-left: 4px solid var(--cyan); background: var(--panel); color: var(--ink-2); max-width: 720px; }
.callout b { color: var(--white); }
.callout.pink { border-color: var(--pink); }
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.duo > div { padding: 26px; background: var(--panel); border: 1px solid var(--line); }
.duo h3 { margin: 0 0 8px; }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.ideas div { padding: 22px; background: var(--bg); }
.ideas b { display: block; font: 400 21px var(--brush); color: var(--cyan); margin-bottom: 6px; }
.ideas span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
@media (max-width: 960px) {
    .guide { grid-template-columns: 1fr; gap: 0; }
    .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 30px; }
    .guide-toc a { border-left: 0; border-bottom: 2px solid var(--line); }
    .duo, .ideas { grid-template-columns: 1fr; }
}
/* ── Fiche serveur Kairo : téléphone (chips) et métiers ── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 7px 13px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 600 13px var(--heavy); letter-spacing: .01em; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.srv-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.srv-job { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--bg); }
.srv-job strong { font: 400 20px var(--brush); color: var(--cyan); }
.srv-job span { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 860px) { .srv-jobs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .srv-jobs { grid-template-columns: 1fr; } }