/* =========================================================
   ASHBOTS — Design system
   Fichier CSS global partagé par toutes les pages
   ========================================================= */

:root {
    --bg:            #06070a;
    --bg-soft:       #0b0d12;
    --card:          rgba(255,255,255,.04);
    --card-hover:    rgba(255,255,255,.075);
    --border:        rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.16);

    --text:   #f5f7fa;
    --muted:  #8d94a3;
    --dim:    #666d7b;

    --primary:       #5865f2;
    --primary-light: #7b87ff;
    --violet:        #8b5cf6;
    --ember:         #ff8a4c;

    --green:  #39d98a;
    --red:    #ff5d73;
    --yellow: #ffc857;

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --wrap: 1180px;

    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--sans);
    background:
        radial-gradient(circle at 50% -10%, rgba(88,101,242,.18), transparent 38%),
        radial-gradient(circle at 92% 30%, rgba(139,92,246,.10), transparent 32%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

::selection { background: rgba(88,101,242,.35); }

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ Fond décoratif ============ */

.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.orb {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .10;
    pointer-events: none;
    z-index: 0;
}
.orb.one { background: var(--primary); top: 60px;  left: -260px; }
.orb.two { background: var(--violet);  top: 620px; right: -300px; }

main, header, footer { position: relative; z-index: 1; }

/* ============ Header ============ */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 74px;
    display: flex;
    align-items: center;
    background: rgba(6,7,10,.74);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.container {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.6px;
}

.logo-icon {
    width: 34px; height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    box-shadow: 0 8px 28px rgba(88,101,242,.35);
    color: #fff;
}
.logo-icon svg { width: 19px; height: 19px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: #a7adba;
    font-size: 14px;
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mobile-menu {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    width: 40px; height: 38px;
    cursor: pointer;
    font-size: 16px;
}

.mobile-panel {
    display: none;
    position: fixed;
    top: 74px; left: 0; right: 0;
    z-index: 99;
    background: rgba(8,9,13,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 22px;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
    display: block;
    padding: 12px 4px;
    color: #b8bec9;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 15px;
}
.mobile-panel .btn { width: 100%; margin-top: 14px; }

/* ============ Boutons ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 11px 17px;
    font-weight: 650;
    font-size: 14px;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn-ghost   { background: transparent; color: #dce0e8; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #6d5dfc);
    box-shadow: 0 8px 28px rgba(88,101,242,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(88,101,242,.38); }

.btn-outline {
    color: #fff;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); }

.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============ Sections & titres ============ */

.section {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
    padding: 104px 0;
}
.section-sm { padding: 64px 0; }

.page-head {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
    padding: 150px 0 10px;
}
.page-head h1 {
    font-size: clamp(38px, 5.5vw, 62px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin-bottom: 16px;
}
.page-head p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 620px;
}

.section-header {
    max-width: 660px;
    margin-bottom: 44px;
}
.section-header h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 14px;
}
.section-header p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}
.section-header.center { margin-inline: auto; text-align: center; }

.eyebrow {
    color: var(--primary-light);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 18%, #8995ff 68%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid rgba(114,128,255,.25);
    background: rgba(88,101,242,.08);
    border-radius: 999px;
    color: #aeb6ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}
.status-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
}

/* ============ Cartes génériques ============ */

.card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border-radius: var(--radius-lg);
    padding: 26px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ============ Fonctionnalités ============ */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.feature {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s, border-color .3s, background .3s;
}
.feature::after {
    content: "";
    position: absolute;
    width: 130px; height: 130px;
    right: -70px; bottom: -70px;
    background: var(--primary);
    filter: blur(65px);
    opacity: .10;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(114,128,255,.25);
    background: var(--card-hover);
}
.feature-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(88,101,242,.12);
    font-size: 19px;
    margin-bottom: 18px;
}
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p  { color: #7c8391; font-size: 13.5px; line-height: 1.65; }
.feature ul { margin-top: 12px; padding-left: 16px; color: #7c8391; font-size: 12.5px; line-height: 1.9; }

/* ============ Tarifs ============ */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; align-items: start; }

.price-card {
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 28px;
    background: rgba(255,255,255,.025);
}
.price-card.featured {
    border-color: rgba(88,101,242,.45);
    background: linear-gradient(145deg, rgba(88,101,242,.12), rgba(255,255,255,.025));
    box-shadow: 0 20px 60px rgba(88,101,242,.10);
}
.popular {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-description { color: #727987; font-size: 12.5px; min-height: 38px; }
.price {
    font-size: 38px;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -2px;
}
.price span { font-size: 12px; color: #707786; font-weight: 500; letter-spacing: 0; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li {
    color: #9298a5;
    font-size: 12.5px;
    padding: 7px 0;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}
.price-features li::before { content: "✓"; color: #6574ff; font-weight: 800; }
.price-features li.off { color: #5c6270; }
.price-features li.off::before { content: "—"; color: #4b515d; }
.price-card .btn { width: 100%; }

/* ============ Tableau ============ */

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    background: rgba(255,255,255,.02);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th, td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
th { color: #aab1be; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; }
td { color: #9aa1ad; }
td strong { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td code, th code { font-family: var(--mono); color: #aeb6ff; font-size: 12.5px; }

/* ============ Code ============ */

pre {
    position: relative;
    background: rgba(0,0,0,.42);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    margin: 16px 0;
}
pre code {
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: #c6ccdb;
    white-space: pre;
}
:not(pre) > code {
    font-family: var(--mono);
    font-size: .88em;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1.5px 6px;
    color: #b9c1ff;
}
.copy-btn {
    position: absolute;
    top: 9px; right: 9px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    color: #aab1be;
    border-radius: 7px;
    padding: 4px 9px;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}
pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ============ Callouts ============ */

.callout {
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    background: rgba(88,101,242,.07);
    border-radius: var(--radius);
    padding: 15px 18px;
    margin: 20px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #b6bcc9;
}
.callout strong { color: #fff; display: block; margin-bottom: 4px; font-size: 13px; }
.callout.warn   { border-left-color: var(--yellow); background: rgba(255,200,87,.07); }
.callout.danger { border-left-color: var(--red);    background: rgba(255,93,115,.07); }
.callout.ok     { border-left-color: var(--green);  background: rgba(57,217,138,.07); }

/* ============ CTA ============ */

.cta {
    position: relative;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 72px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 100%, rgba(88,101,242,.20), transparent 55%),
        rgba(255,255,255,.025);
}
.cta h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -2px; margin-bottom: 14px; }
.cta p  { color: #858c99; max-width: 560px; margin: 0 auto 26px; line-height: 1.7; font-size: 14.5px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */

footer {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 40px;
    background: rgba(255,255,255,.012);
}
.footer-grid {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
    padding: 56px 0 34px;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}
.footer-brand p {
    color: #6e7583;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 12px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 700;
}
.footer-col a {
    display: block;
    color: #727987;
    font-size: 13px;
    padding: 5px 0;
    transition: color .2s;
}
.footer-col a:hover { color: #cfd4dd; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom-inner {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #5e6572;
    font-size: 12px;
}
.footer-bottom-inner .status-link { display: inline-flex; align-items: center; gap: 7px; color: #7c8492; }

/* ============ Layout documentation ============ */

.docs-layout {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
    padding: 110px 0 60px;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 190px;
    gap: 44px;
    align-items: start;
}

.docs-side {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding-right: 6px;
}
.docs-search {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 18px;
}
.docs-search::placeholder { color: #5f6675; }
.docs-side h5 {
    color: #5f6675;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 20px 0 8px;
}
.docs-side h5:first-of-type { margin-top: 0; }
.docs-side a {
    display: block;
    padding: 7px 11px;
    border-radius: 8px;
    color: #868d9b;
    font-size: 13.5px;
    transition: color .2s, background .2s;
}
.docs-side a:hover { color: #fff; background: rgba(255,255,255,.04); }
.docs-side a.active {
    color: #fff;
    background: rgba(88,101,242,.15);
    box-shadow: inset 2px 0 0 var(--primary-light);
}

.docs-main { min-width: 0; padding-bottom: 40px; }
.breadcrumb { color: #5f6675; font-size: 12px; margin-bottom: 14px; }
.breadcrumb a:hover { color: #aab1be; }

.docs-main h1 {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -1.6px;
    line-height: 1.1;
    margin-bottom: 14px;
}
.docs-main .lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 70ch;
}
.docs-main h2 {
    font-size: 23px;
    letter-spacing: -.8px;
    margin: 44px 0 14px;
    padding-top: 6px;
}
.docs-main h3 { font-size: 16.5px; margin: 28px 0 10px; }
.docs-main p {
    color: #9aa1ad;
    font-size: 14.5px;
    line-height: 1.78;
    margin-bottom: 14px;
    max-width: 72ch;
}
.docs-main ul, .docs-main ol {
    color: #9aa1ad;
    font-size: 14.5px;
    line-height: 1.8;
    margin: 0 0 16px 20px;
    max-width: 70ch;
}
.docs-main li { margin-bottom: 6px; }
.docs-main a:not(.btn):not(.card-link) { color: var(--primary-light); }
.docs-main a:not(.btn):not(.card-link):hover { text-decoration: underline; }
.docs-main strong { color: #e6e9ef; }
.docs-main hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.docs-toc {
    position: sticky;
    top: 100px;
    font-size: 12.5px;
}
.docs-toc h6 {
    color: #5f6675;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.docs-toc a {
    display: block;
    color: #7b8290;
    padding: 5px 0 5px 11px;
    border-left: 1px solid var(--border);
    line-height: 1.5;
}
.docs-toc a:hover { color: #fff; border-left-color: var(--primary-light); }

.docs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 50px;
}
.docs-nav a {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: rgba(255,255,255,.025);
    transition: border-color .2s, background .2s;
}
.docs-nav a:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.docs-nav span { display: block; color: #5f6675; font-size: 11px; margin-bottom: 5px; }
.docs-nav strong { font-size: 14px; }
.docs-nav .next { text-align: right; }

.card-link {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.025);
    padding: 18px;
    transition: border-color .2s, background .2s, transform .2s;
}
.card-link:hover { border-color: rgba(114,128,255,.3); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.card-link strong { display: block; font-size: 14.5px; margin-bottom: 6px; }
.card-link span { color: #7c8391; font-size: 12.5px; line-height: 1.6; display: block; }

.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 22px;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -1px;
    width: 27px; height: 27px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(88,101,242,.16);
    color: #aeb6ff;
    font-size: 12px;
    font-weight: 700;
}
.steps > li strong { display: block; color: #fff; margin-bottom: 4px; font-size: 14.5px; }

/* ============ Formulaires ============ */

.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
    position: absolute;
    left: 13px;
    font-size: 14px;
    pointer-events: none;
    opacity: .8;
}
.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field select,
.field textarea {
    width: 100%;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 13px 15px 13px 40px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, background .2s;
}
.field textarea { padding-left: 15px; min-height: 130px; resize: vertical; }
.field select   { padding-left: 15px; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: rgba(114,128,255,.5);
    background: rgba(255,255,255,.055);
}
.field input::placeholder, .field textarea::placeholder { color: #5f6675; }
.field small { display: block; color: #656c79; font-size: 11.5px; margin-top: 7px; line-height: 1.5; }
.field.mono input { font-family: var(--mono); letter-spacing: 1px; }

.show-token {
    position: absolute;
    right: 9px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    color: #aab1be;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 11.5px;
    cursor: pointer;
}
.show-token:hover { background: rgba(255,255,255,.14); color: #fff; }

.terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #8b93a3;
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.terms input { margin-top: 2px; accent-color: var(--primary); }
.terms a { color: var(--primary-light); }

.form-status {
    font-size: 12.5px;
    margin-top: 9px;
    display: none;
}
.form-status.show { display: block; }
.form-status.ok   { color: var(--green); }
.form-status.err  { color: var(--red); }

.security-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #656c79;
    font-size: 11.5px;
    line-height: 1.6;
    margin-top: 16px;
}

/* ============ Divers ============ */

.pill {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.pill-green  { color: #55e49c; background: rgba(57,217,138,.11); }
.pill-blue   { color: #9aa4ff; background: rgba(88,101,242,.13); }
.pill-yellow { color: #ffd587; background: rgba(255,200,87,.11); }
.pill-red    { color: #ff8c9d; background: rgba(255,93,115,.11); }
.pill-grey   { color: #98a0ad; background: rgba(255,255,255,.07); }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.025);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 20px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-light); font-size: 18px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
    padding: 0 20px 18px;
    color: #8f96a3;
    font-size: 13.5px;
    line-height: 1.75;
}
.faq-item .faq-body a { color: var(--primary-light); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ============ Responsive ============ */

@media (max-width: 1100px) {
    .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .docs-toc { display: none; }
}

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu { display: block; }

    .features, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

    .docs-layout { grid-template-columns: 1fr; padding-top: 100px; gap: 20px; }
    .docs-side {
        position: static;
        max-height: none;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        background: rgba(255,255,255,.02);
    }
}

@media (max-width: 620px) {
    .container, .section, .page-head, .footer-grid, .footer-bottom-inner, .docs-layout {
        width: min(100% - 28px, var(--wrap));
    }
    .section { padding: 70px 0; }
    .page-head { padding-top: 120px; }
    .features, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .docs-nav { grid-template-columns: 1fr; }
    .docs-nav .next { text-align: left; }
    .cta { padding: 52px 20px; }
}

/* Pages légales : contenu + sommaire, sans menu latéral */
.legal-layout { grid-template-columns: minmax(0, 1fr) 190px; }
@media (max-width: 1100px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }
