/* ============================================================
   Verify by Zecible - Shared CSS (index + console)
   ============================================================ */

/* ====== TOKENS (CSS variables) ====== */
:root {
    --bg:           #ffffff;
    --bg-surface:   #f8fafc;
    --bg-elevated:  #ffffff;
    --bg-sidebar:   #fafbfc;
    --text:         #0f172a;
    --text-soft:    #475569;
    --text-muted:   #64748b;
    --border:       #e2e8f0;
    --border-soft:  #f1f5f9;
    --brand:        #6239bd;
    --brand-rgb:    98, 57, 189;
    --brand-soft:   #ede5fb;
    --brand-hover:  #532fa0;
    --accent:       #2563eb;
    --success:      #16a34a;
    --success-rgb:  22, 163, 74;
    --success-soft: #dcfce7;
    --warning:      #d97706;
    --warning-rgb:  217, 119, 6;
    --warning-soft: #fef3c7;
    --danger:       #dc2626;
    --danger-soft:  #fee2e2;
    --code-bg:      #0f172a;
    --code-text:    #e2e8f0;
    --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md:    0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg:    0 12px 32px rgba(15, 23, 42, 0.10);
}
html[data-theme="dark"] {
    --bg:           #0a0e1a;
    --bg-surface:   #11172a;
    --bg-elevated:  #161d33;
    --bg-sidebar:   #080c17;
    --text:         #f1f5f9;
    --text-soft:    #cbd5e1;
    --text-muted:   #94a3b8;
    --border:       #1e2940;
    --border-soft:  #161d33;
    --brand:        #a78bfa;
    --brand-rgb:    167, 139, 250;
    --brand-soft:   #2a1f4a;
    --brand-hover:  #c4b5fd;
    --accent:       #60a5fa;
    --success:      #4ade80;
    --success-rgb:  74, 222, 128;
    --success-soft: #052e16;
    --warning:      #fbbf24;
    --warning-rgb:  251, 191, 36;
    --warning-soft: #422006;
    --danger:       #f87171;
    --danger-soft:  #450a0a;
    --code-bg:      #050816;
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg:    0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ====== RESET ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; background: var(--bg); color: var(--text); transition: background 0.2s ease, color 0.2s ease; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
.mono { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; user-select: none; }

/* ====== BOUTONS (communs) ====== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; text-decoration: none; min-height: 44px; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: white; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--brand); color: var(--brand); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; color: white; }
html[data-theme="dark"] .btn-success { background: var(--success); color: #052e16; }
html[data-theme="dark"] .btn-success:hover { background: #86efac; }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-surface); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* CTA "Try it" : mise en avant forte de l'action de test (dominant au premier coup d'oeil) */
.btn-try { background: linear-gradient(120deg, var(--brand) 0%, #8c5fe0 100%); color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.35); animation: btn-try-glow 2.8s ease-in-out infinite; }
.btn-try:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.45), 0 0 0 4px rgba(var(--brand-rgb), 0.16); animation: none; }
.btn-try:active { transform: translateY(0); }
.btn-try svg { transition: transform 0.2s ease; }
.btn-try:hover svg { transform: translateX(3px); }
@keyframes btn-try-glow {
    0%, 100% { box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.28), 0 0 0 0 rgba(var(--brand-rgb), 0.0); }
    50%      { box-shadow: 0 4px 18px rgba(var(--brand-rgb), 0.46), 0 0 0 5px rgba(var(--brand-rgb), 0.12); }
}
.btn-lg { padding: 14px 26px; font-size: 15px; min-height: 50px; border-radius: 10px; }

/* ====== THEME TOGGLE (commun) ====== */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: transparent; border: 1px solid var(--border); color: var(--text-soft); cursor: pointer; transition: all 0.15s ease; }
.theme-toggle:hover { background: var(--bg-surface); color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ====== CODE TOKENS (communs hero-code, tabs-body, code-block) ====== */
.tk-cmd { color: #c084fc; }
.tk-flag { color: #60a5fa; }
.tk-str { color: #86efac; }
.tk-key { color: #f472b6; }
.tk-num { color: #fbbf24; }
.tk-comment { color: #64748b; font-style: italic; }
.tk-tag { color: #f87171; font-weight: 600; font-size: 10px; padding: 1px 5px; border: 1px solid rgba(248,113,113,0.3); border-radius: 3px; margin-left: 4px; }

/* ============================================================
   LANDING (index.php) - styles spécifiques
   ============================================================ */

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { height: 34px; display: flex; align-items: center; }
.brand-mark img { height: 100%; width: auto; }
/* Bascule logo clair/sombre (classes type Metronic, réimplémentées pour le thème data-theme du module verify) */
.theme-dark-show { display: none; }
html[data-theme="dark"] .theme-light-show { display: none; }
html[data-theme="dark"] .theme-dark-show { display: inline-block; }
.brand-text { font-weight: 800; }
.brand-text span { color: var(--brand); font-weight: 500; margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a:not(.btn) { padding: 8px 14px; border-radius: 6px; color: var(--text-soft); font-weight: 500; font-size: 14px; }
.site-nav a:not(.btn):hover { background: var(--bg-surface); color: var(--text); }

/* HERO */
.hero { padding: 80px 32px 96px; max-width: 1240px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 24px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: verify-pulse 2s ease-in-out infinite; }
@keyframes verify-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }
.hero h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 24px; }
@media (max-width: 768px) { .hero h1 { font-size: 40px; } }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand) 0%, #8c5fe0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--text-soft); margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; }
.hero-meta-item { display: flex; align-items: center; gap: 6px; }
.hero-meta-item svg { color: var(--success); }
.hero-code { background: var(--code-bg); border-radius: 14px; padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-code-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-code-dots { display: flex; gap: 6px; }
.hero-code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.hero-code-dots span:nth-child(1) { background: #ef4444; }
.hero-code-dots span:nth-child(2) { background: #f59e0b; }
.hero-code-dots span:nth-child(3) { background: #22c55e; }
.hero-code-label { color: #94a3b8; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.hero-code-body { padding: 20px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--code-text); white-space: pre; }

/* TRUST STRIP - bande editoriale a filets (option B) */
.trust { position: relative; background: var(--bg-surface); border-block: 1px solid var(--border); padding: 40px 0; }
.trust::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.trust-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 4px 32px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item:last-child { padding-right: 0; }
.trust-eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.trust-eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.trust-value { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--brand); background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trust-label { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); font-weight: 500; max-width: 222px; }
@media (max-width: 768px) {
    .trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .trust-item { padding: 4px 24px; }
    .trust-item:first-child, .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* SECTIONS / FEATURES */
.section { max-width: 1240px; margin: 0 auto; padding: 96px 32px; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.section-eyebrow-row { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.section-eyebrow-row .section-eyebrow { margin-bottom: 0; }
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); margin-bottom: 12px; line-height: 1.15; }
.section-sub { font-size: 17px; color: var(--text-soft); max-width: 640px; margin: 0 auto; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all 0.2s ease; }
.feature:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.feature h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }
.feature-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-fields code { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--bg-surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; color: var(--text-soft); }

/* CODE SECTION (avec tabs cURL/JS/PHP/Python) */
.code-section { background: var(--bg-surface); border-block: 1px solid var(--border); }
.code-section-inner { max-width: 1240px; margin: 0 auto; padding: 80px 32px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
@media (max-width: 1024px) { .code-section-inner { grid-template-columns: 1fr; gap: 40px; } }
.code-section-text h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; line-height: 1.2; }
.code-section-text p { color: var(--text-soft); margin-bottom: 24px; line-height: 1.7; }
.code-section-text ul { list-style: none; }
.code-section-text ul li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--text-soft); font-size: 15px; }
.code-section-text ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); }
.code-section-text ul li::after { content: ''; position: absolute; left: 4px; top: 12px; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.tabs { background: var(--code-bg); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 12px; overflow-x: auto; }
.tabs-nav button { background: transparent; border: none; color: #94a3b8; padding: 12px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s ease; white-space: nowrap; }
.tabs-nav button:hover { color: #e2e8f0; }
.tabs-nav button.active { color: #c084fc; border-bottom-color: #c084fc; }
.tabs-body { padding: 20px; max-height: 420px; overflow-y: auto; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane pre { color: var(--code-text); font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; white-space: pre; overflow-x: auto; }

/* CTA */
.cta { padding: 96px 32px; background: var(--bg); }
.cta-inner { max-width: 880px; margin: 0 auto; text-align: center; padding: 64px 48px; border-radius: 20px; background: linear-gradient(135deg, var(--brand) 0%, #4f2da3 100%); color: white; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%); pointer-events: none; }
.cta-inner h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; position: relative; }
.cta-inner p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; position: relative; }
.cta-inner .btn-primary { background: white; color: var(--brand); position: relative; }
.cta-inner .btn-primary:hover { background: #f8fafc; }
.cta-inner .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.4); color: white; position: relative; margin-left: 8px; }
.cta-inner .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: white; color: white; }

/* FOOTER */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner small { color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-soft); font-size: 13px; font-weight: 500; }

/* ============================================================
   CONSOLE (console.php) - styles spécifiques
   ============================================================ */

/* Console : font-size un peu plus dense que landing */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; font-size: 15px; }
@media (max-width: 1024px) { .app { grid-template-columns: 1fr; } }

/* SIDEBAR */
.sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
@media (max-width: 1024px) { .sidebar { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; z-index: 100; transition: left 0.25s ease; box-shadow: var(--shadow-lg); } .sidebar.open { left: 0; } }
.sidebar-header { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.sidebar-brand .mark { height: 30px; display: flex; align-items: center; }
.sidebar-brand .mark img { height: 100%; width: auto; }
.sidebar-brand-text span { color: var(--brand); font-weight: 500; margin-left: 3px; }
.sidebar-search { padding: 14px 16px 8px; position: relative; }
.sidebar-search input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 8px 36px; font-size: 13px; color: var(--text); transition: all 0.15s ease; }
.sidebar-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sidebar-search svg { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 14px; height: 14px; }
.sidebar-kbd { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); }
.sidebar-section { padding: 16px 16px 8px; }
.sidebar-section-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 6px; margin-bottom: 6px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--text-soft); font-size: 13.5px; font-weight: 500; transition: all 0.15s ease; }
.sidebar-link:hover { background: var(--bg-surface); color: var(--text); }
.sidebar-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidebar-link .method { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.04em; }
.sidebar-link .method.post { background: var(--brand); color: white; }
.sidebar-link .method.get { background: var(--success); color: white; }
.sidebar-link .path { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
.sidebar-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; }
.sidebar-legal a { color: var(--text-muted); font-size: 11px; }
.sidebar-legal a:hover { color: var(--text-soft); }
.auth-status { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.auth-status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.auth-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.auth-status.ok .dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.auth-status.ko .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.auth-status.wait .dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.auth-status-label { font-size: 12px; font-weight: 600; color: var(--text); }
.auth-status-key { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); word-break: break-all; margin-top: 4px; }
.auth-status button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--text-soft); margin-top: 8px; transition: all 0.15s ease; }
.auth-status button:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }

/* MAIN + TOPBAR */
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; backdrop-filter: blur(8px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px; background: transparent; border: 1px solid var(--border); color: var(--text-soft); }
@media (max-width: 1024px) { .burger { display: flex; } }
.topbar-title { font-size: 14px; color: var(--text-muted); }
.topbar-title strong { color: var(--text); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Console - boutons plus compacts */
.app .btn { padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 13px; min-height: 36px; }
.app .btn svg { width: 14px; height: 14px; }
.app .theme-toggle { width: 36px; height: 36px; border-radius: 6px; }
.app .theme-toggle svg { width: 16px; height: 16px; }

/* MODAL AUTH */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--bg-elevated); border-radius: 14px; padding: 28px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.modal-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; line-height: 1.55; }
.modal-input-row { position: relative; margin-bottom: 12px; }
.modal-input-row input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 44px 11px 14px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); }
.modal-input-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.modal-input-row .toggle-visible { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: none; color: var(--text-muted); border-radius: 6px; }
.modal-input-row .toggle-visible:hover { color: var(--brand); background: var(--bg-surface); }
.modal-input-row .toggle-visible svg { width: 16px; height: 16px; }
.modal-msg { font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.modal-msg:empty { display: none; }
.modal-msg.success { background: var(--success-soft); color: var(--success); }
.modal-msg.error { background: var(--danger-soft); color: var(--danger); }
.modal-msg.info { background: var(--brand-soft); color: var(--brand); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* CONTENT + ENDPOINTS */
.content { padding: 40px 32px 80px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .content { padding: 28px 20px 60px; } }
.endpoint { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 28px; overflow: hidden; scroll-margin-top: 80px; }
.endpoint-header { padding: 22px 26px; border-bottom: 1px solid var(--border); }
.endpoint-method { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.endpoint-method .method { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.05em; color: white; }
.endpoint-method .method.post { background: var(--brand); }
.endpoint-method .method.get { background: var(--success); }
html[data-theme="dark"] .endpoint-method .method.get { color: #052e16; }
.endpoint-method .path { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; color: var(--text); }
.endpoint-desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; margin-top: 6px; }

/* ====== Badge "BETA" (KYB /api/business en version bêta) ====== */
.beta-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1; white-space: nowrap; cursor: default; color: var(--warning); background: linear-gradient(135deg, var(--warning-soft), rgba(var(--warning-rgb), 0.10)); border: 1px solid rgba(var(--warning-rgb), 0.32); box-shadow: 0 1px 2px rgba(var(--warning-rgb), 0.12); }
.beta-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px rgba(var(--warning-rgb), 0.20), 0 0 6px rgba(var(--warning-rgb), 0.55); animation: verify-pulse 1.6s ease-in-out infinite; }
.sidebar-link .beta-tag { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; padding: 1.5px 5px; border-radius: 4px; color: var(--warning); background: var(--warning-soft); border: 1px solid rgba(var(--warning-rgb), 0.30); }
.endpoint-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 26px; }
.endpoint-tabs button { background: transparent; border: none; padding: 14px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 6px; }
.endpoint-tabs button:hover { color: var(--text); }
.endpoint-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.endpoint-tabs button svg { width: 14px; height: 14px; }
/* Onglet "Try it" : bouton plein brand (action interactive) vs l'onglet Documentation plat */
.endpoint-tabs button[data-tab^="try-"] { margin: 7px 0 7px 16px; align-self: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 9px 18px; font-weight: 700; background: linear-gradient(120deg, var(--brand) 0%, #8c5fe0 100%); color: #fff; box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.35); animation: btn-try-live-glow 2.8s ease-in-out infinite; }
.endpoint-tabs button[data-tab^="try-"]:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.45), 0 0 0 4px rgba(var(--brand-rgb), 0.16); animation: none; }
/* État actif : "enfoncé/engagé" - fond plein assombri (vs le dégradé qui pulse de l'inactif), ombre interne + halo de sélection */
.endpoint-tabs button[data-tab^="try-"].active { color: #fff; border-bottom-color: transparent; animation: none; background: color-mix(in srgb, var(--brand) 86%, #000); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(var(--brand-rgb), 0.22); transform: translateY(1px); }
.endpoint-tabs button[data-tab^="try-"].active:hover { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(var(--brand-rgb), 0.22); }
.endpoint-tabs button[data-tab^="try-"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.try-live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: verify-pulse 1.6s ease-in-out infinite; }
@keyframes btn-try-live-glow { 0%, 100% { box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.35); } 50% { box-shadow: 0 5px 20px rgba(var(--brand-rgb), 0.6); } }
.endpoint-panel { display: none; padding: 26px; }
.endpoint-panel.active { display: block; }
.section-label { font-size: 12.5px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0px; display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; }
.section-label .material-symbols-rounded { font-size: 19px; color: var(--brand); flex-shrink: 0; }

/* CODE BLOCKS (avec bouton copy) */
.code-block { position: relative; background: var(--code-bg); color: var(--code-text); padding: 16px 18px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; border: 1px solid var(--border); }
.code-block-wrapper { position: relative; margin-bottom: 24px; }
.code-copy { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #cbd5e1; transition: all 0.15s ease; z-index: 1; }
.code-copy:hover { background: rgba(255,255,255,0.12); color: white; }
.code-copy svg { width: 14px; height: 14px; }
.code-copy.copied { background: var(--success); color: white; }

/* TRY-IT */
.tryit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .tryit-grid { grid-template-columns: 1fr; } }
.tryit-form { display: grid; gap: 12px; }
/* 1 champ par ligne (layout B : label+desc à gauche, input à droite) */
.tryit-row, .tryit-row.col-1, .tryit-row.col-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
/* Champ : label + description en colonne gauche, input (icône intégrée) en colonne droite */
.tryit-field { display: grid; grid-template-columns: 210px 1fr; column-gap: 16px; align-items: center; }
.tryit-field label { grid-column: 1; grid-row: 1; align-self: end; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--text); font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em; }
.tryit-field label .req { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); display: inline-block; font-size: 0; line-height: 0; margin: 0; flex-shrink: 0; }
.tryit-field .tf-input { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; }
.tryit-field .tf-input > .material-symbols-rounded { position: absolute; left: 12px; top: 20px; transform: translateY(-50%); font-size: 16px; color: var(--text-muted); pointer-events: none; }
.tryit-field input, .tryit-field select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px 10px 38px; font-size: 13px; color: var(--text); font-family: 'JetBrains Mono', monospace; transition: all 0.15s ease; }
.tryit-field input:focus, .tryit-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* selects de formulaire : même chevron custom que le select "fixture" (icône champ à gauche conservée) */
.tryit-field select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
html[data-theme="dark"] .tryit-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.tryit-field select option { color: var(--text); background: var(--bg-elevated); }
@media (max-width: 600px) { .tryit-field { grid-template-columns: 1fr; } .tryit-field label, .tryit-field .hint, .tryit-field .tf-input, .tryit-field .field-error { grid-column: 1; } .tryit-field .tf-input { grid-row: auto; } .tryit-field .hint { margin: 1px 0 6px; } }
.tryit-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.tryit-result-wrapper { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; min-height: 300px; }
.tryit-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tryit-result-header .label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tryit-result-header .meta { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.tryit-result-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.tryit-result-status.s2 { background: var(--success-soft); color: var(--success); }
.tryit-result-status.s4 { background: var(--warning-soft); color: var(--warning); }
.tryit-result-status.s5 { background: var(--danger-soft); color: var(--danger); }
.tryit-result { flex: 1; background: var(--code-bg); color: var(--code-text); padding: 14px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.7; overflow: auto; max-height: 100%; white-space: pre-wrap; word-break: break-word; min-height: 200px; }
.tryit-result-placeholder { color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 13px; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; }

/* SCHEMA TABLES (Documentation tab) */
.doc-grid { display: grid; gap: 24px; }
.doc-block h4 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.doc-block h4::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--brand); border-radius: 2px; }
.doc-block p { color: var(--text-soft); font-size: 14px; margin-bottom: 10px; }
.schema-wrapper { border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; }
.schema-table { width: 100%; border-collapse: collapse; }
.schema-table th, .schema-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.schema-table th { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg-surface); padding-block: 9px; border-bottom: 1px solid var(--border); }
.schema-table tbody tr:last-child td { border-bottom: 0; }
.schema-table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 6%, transparent); }

/* Type et Requis : hug content (width:1% + nowrap) - libèrent l'espace pour Description */
.schema-table td.type, .schema-table td.req { width: 1%; white-space: nowrap; }

/* 1ère colonne (Header / Champ / Param / Code) : largeur uniforme sur tous les tableaux pour aligner l'ensemble visuellement */
.schema-table th:first-child, .schema-table td:first-child { width: 26%; }

/* Col Champ : monospace brand, JAMAIS de wrap (scroll horizontal via .schema-wrapper si besoin) */
.schema-table td.field { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; font-weight: 500; color: var(--brand); white-space: nowrap; }

/* Col Type : pill chip (compact mono accent sur fond doux + border) */
.schema-table td.type { font-size: 11px; line-height: 1.4; }
.schema-table td.type .t-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border); font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }

/* Col Requis : pill chip avec dot color-coded */
.schema-table td.req { font-size: 10.5px; }
.schema-table td.req .yes, .schema-table td.req .no { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 999px; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: lowercase; line-height: 1.4; }
.schema-table td.req .yes::before, .schema-table td.req .no::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.schema-table td.req .yes { background: var(--danger-soft); color: var(--danger); }
.schema-table td.req .no { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }

/* Col Description : font + line-height plus aéré, contraste préservé, gère les inline code */
.schema-table td.desc { font-size: 13px; line-height: 1.65; color: var(--text-soft); }
.schema-table td.desc > :first-child { margin-top: 0; }

/* Inline <code class="mono"> dans prose et descriptions : chip subtile (bg + border + brand) */
code.mono { background: var(--bg-surface); border: 1px solid var(--border-soft); padding: 1px 6px; border-radius: 5px; color: var(--brand); font-size: 0.92em; font-weight: 500; white-space: nowrap; }
/* Exception : à l'intérieur des blocs code sombres (pre.code-block), on n'applique pas le chip */
.code-block code.mono, pre code.mono { background: transparent; border: 0; padding: 0; color: inherit; font-weight: inherit; font-size: inherit; white-space: pre; }

/* LANG TABS (cURL/JS/Python sur la doc Console) */
.lang-tabs { display: flex; gap: 0; background: var(--bg-surface); border-radius: 8px; padding: 4px; margin-bottom: 12px; width: fit-content; }
.lang-tabs button { background: transparent; border: none; padding: 6px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: 5px; transition: all 0.15s ease; }
.lang-tabs button.active { background: var(--bg-elevated); color: var(--brand); box-shadow: var(--shadow-sm); }
.lang-pane { display: none; }
.lang-pane.active { display: block; }

/* ============================================================
   QUICK WINS #1 - A11y + UX (chantier 1/3)
   ============================================================ */

/* Skip link (a11y - keyboard nav) */
.skip-link { position: absolute; top: -48px; left: 8px; background: var(--brand); color: white; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; z-index: 1000; transition: top 0.15s ease; text-decoration: none; }
.skip-link:focus { top: 8px; color: white; outline: 2px solid var(--bg); outline-offset: 2px; }

/* Helper text sous chaque input du Try-it */
.tryit-field .hint { display: block; grid-column: 1; grid-row: 2; align-self: start; margin: 0; font-size: 11px; color: var(--text-muted); font-family: 'Inter', sans-serif; line-height: 1.4; }
.tryit-field input[aria-invalid="true"], .tryit-field select[aria-invalid="true"] { border-color: var(--danger); }
.tryit-field input[aria-invalid="true"]:focus, .tryit-field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

/* Loading state (submit en cours - spinner) */
.btn[data-loading="1"] { opacity: 0.85; cursor: progress; pointer-events: none; }
.btn[data-loading="1"] svg { animation: verify-spin 0.8s linear infinite; }
@keyframes verify-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[data-loading="1"] svg { animation: none; } .auth-status .dot { animation: none !important; } .hero-eyebrow .dot { animation: none !important; } .btn-try { animation: none !important; } .endpoint-tabs button[data-tab^="try-"] { animation: none !important; } .try-live-dot { animation: none !important; } .beta-badge::before { animation: none !important; } }

/* Result summary (score + breakdown au-dessus du JSON) */
.tryit-summary { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tryit-summary[hidden] { display: none; }
.tryit-summary-score { display: inline-flex; align-items: baseline; gap: 6px; font-family: 'JetBrains Mono', monospace; padding-right: 14px; border-right: 1px solid var(--border-soft); }
.tryit-summary-score .num { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tryit-summary-score .denom { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.tryit-summary-score .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-left: 8px; }
.tryit-summary-score.s-low .num { color: var(--danger); }
.tryit-summary-score.s-mid .num { color: var(--warning); }
.tryit-summary-score.s-high .num { color: var(--success); }
.tryit-summary-score.s-na .num { color: var(--text-muted); font-size: 18px; }
.tryit-summary-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tryit-summary-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.tryit-summary-pill .num { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tryit-summary-pill.match { background: var(--success-soft); color: var(--success); }
.tryit-summary-pill.partial { background: var(--warning-soft); color: var(--warning); }
.tryit-summary-pill.no_match { background: var(--danger-soft); color: var(--danger); }
.tryit-summary-pill.missing, .tryit-summary-pill.not_searched { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }
.tryit-summary-ambiguous { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-left: auto; }
.tryit-summary-ambiguous svg { width: 12px; height: 12px; flex-shrink: 0; }

/* JSON syntax highlighting (résultat de la requête) */
.tryit-result .j-key { color: #f472b6; }
.tryit-result .j-str { color: #86efac; }
.tryit-result .j-num { color: #fbbf24; }
.tryit-result .j-bool { color: #60a5fa; font-weight: 600; }
.tryit-result .j-null { color: #94a3b8; font-style: italic; }

/* Touch target : code-copy passe de 32 a 36 (compromis layout / a11y) + hit-area étendue */
.code-copy { width: 36px; height: 36px; }
.code-copy::after { content: ''; position: absolute; inset: -6px; }

/* ============================================================
   CHANTIER #2 - Playground (fixtures, reset, copy-curl, history, validation)
   ============================================================ */

/* Form actions : fixture select + reset button + run button -> une seule ligne */
.tryit-actions { flex-wrap: nowrap; }
/* Select "fixture" stylisé façon select2 (chevron custom, sans dépendance JS) */
.tryit-fixture { flex: 1 1 auto; min-width: 0; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v6l-5 9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1l-5-9V3'/%3E%3Cpath d='M8 3h8'/%3E%3Cpath d='M6.5 14h11'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat, no-repeat; background-position: left 12px center, right 12px center; background-size: 16px, 16px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 34px 9px 38px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; min-height: 40px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.tryit-fixture:hover { border-color: var(--brand); background-color: var(--bg-surface); }
.tryit-fixture:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
html[data-theme="dark"] .tryit-fixture { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v6l-5 9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1l-5-9V3'/%3E%3Cpath d='M8 3h8'/%3E%3Cpath d='M6.5 14h11'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.tryit-fixture option { color: var(--text); background: var(--bg-elevated); font-weight: 500; }
.btn-reset { flex: 0 0 auto; background: transparent; border: 1px solid var(--border); color: var(--text-soft); padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all 0.15s ease; font-family: inherit; }
.btn-reset:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-reset:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-reset .material-symbols-rounded { font-size: 16px; }
/* Bouton Run aligné à la même hauteur que select + reset, sans retour à la ligne */
.tryit-actions .btn { flex: 0 0 auto; min-height: 40px; padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.tryit-fixture-note { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.tryit-fixture-note .material-symbols-rounded { font-size: 14px; }

/* Inline validation error sous le champ */
.tryit-field .field-error { display: block; grid-column: 2; grid-row: 3; margin: 4px 0 0; font-size: 11px; color: var(--danger); font-family: 'JetBrains Mono', Menlo, Consolas, monospace; line-height: 1.4; }
.tryit-field .field-error::before { content: '\26A0'; margin-right: 4px; font-family: inherit; }
/* Quand erreur visible, on garde le hint mais on l'atténue */
.tryit-field:has(.field-error) .hint { color: var(--text-muted); opacity: 0.5; }

/* Result header : layout droit (meta + actions) */
.tryit-result-right { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tryit-result-actions { display: inline-flex; gap: 4px; align-items: center; position: relative; }
.tryit-result-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--text-soft); cursor: pointer; transition: all 0.15s ease; min-height: 28px; }
.tryit-result-actions button:hover:not([disabled]) { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.tryit-result-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.tryit-result-actions button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.tryit-result-actions button.copied { color: var(--success); border-color: var(--success); background: var(--success-soft); }
.tryit-result-actions button .material-symbols-rounded { font-size: 14px; }

/* History dropdown panel */
.tryit-history-list { position: absolute; top: calc(100% + 4px); right: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md); min-width: 300px; max-width: 360px; padding: 4px; z-index: 30; max-height: 280px; overflow-y: auto; }
.tryit-history-list[hidden] { display: none; }
.tryit-history-list .empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 12px; font-style: italic; }
.tryit-history-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; align-items: center; transition: background 0.15s ease; border: 0; background: transparent; width: 100%; text-align: left; font-family: inherit; }
.tryit-history-item:hover { background: var(--bg-surface); }
.tryit-history-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tryit-history-item .h-code { padding: 2px 6px; border-radius: 4px; font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.02em; }
.tryit-history-item .h-code.s2 { background: var(--success-soft); color: var(--success); }
.tryit-history-item .h-code.s4 { background: var(--warning-soft); color: var(--warning); }
.tryit-history-item .h-code.s5 { background: var(--danger-soft); color: var(--danger); }
.tryit-history-item .h-time { color: var(--text-muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.tryit-history-item .h-meta { color: var(--text-soft); font-size: 11px; font-family: 'JetBrains Mono', monospace; font-weight: 600; text-align: right; }
.tryit-history-item .h-meta .score { color: var(--brand); }

/* ============================================================
   CHANTIER #3 - Refonte doc (mini-nav sticky + endpoint-meta + json-tree)
   ============================================================ */

/* Mini-nav sticky par endpoint (Headers / Body / Réponse / Exemple) */
.doc-mini-nav { position: sticky; top: 60px; z-index: 5; background: var(--bg-elevated); border-bottom: 1px solid var(--border); margin: -26px -26px 22px; padding: 8px 26px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; backdrop-filter: blur(4px); }
.doc-mini-nav a { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s ease; }
.doc-mini-nav a:hover { background: var(--bg-surface); color: var(--text); }
.doc-mini-nav a.active { background: var(--brand-soft); color: var(--brand); }
.doc-mini-nav a .material-symbols-rounded { font-size: 14px; }
.doc-block { scroll-margin-top: 120px; }

/* Endpoint meta cards (callouts horizontaux remplaçant les .endpoint-desc denses) */
.endpoint-desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; margin-top: 6px; margin-bottom: 12px; }
.endpoint-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.endpoint-meta-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: 10px; }
.endpoint-meta-item .material-symbols-rounded { font-size: 20px; color: var(--brand); flex-shrink: 0; padding-top: 1px; }
.endpoint-meta-item > div { min-width: 0; }
.endpoint-meta-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; letter-spacing: 0.01em; }
.endpoint-meta-item small { display: block; font-size: 12px; color: var(--text-soft); line-height: 1.5; }

/* JSON tree-view repliable (Try-it result panel) */
.tryit-result .json-tree { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.7; }
.tryit-result .j-node { display: inline; }
.tryit-result .j-children { display: block; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.08); margin-left: 4px; }
.tryit-result .j-children[hidden] { display: none; }
.tryit-result .j-line { display: block; }
.tryit-result .j-toggle { background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 0 2px; font-family: inherit; font-size: 9px; line-height: 1; vertical-align: 1px; transition: color 0.15s ease; display: inline-block; width: 12px; text-align: center; user-select: none; }
.tryit-result .j-toggle:hover { color: var(--brand); }
.tryit-result .j-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 2px; }
.tryit-result .j-collapsed-hint { color: var(--text-muted); font-style: italic; font-size: 11px; padding: 0 8px; }
.tryit-result .j-collapsed-hint[hidden] { display: none; }

/* ---- Selecteur de langue (dropdown natif <details>, sans JS -> CSP-safe) ---- */
.lang-switch { position:relative; margin:0 2px; }
.lang-switch summary {
    list-style:none; cursor:pointer;
    display:inline-flex; align-items:center; gap:6px;
    height:40px; padding:0 10px;
    border:1px solid var(--border); border-radius:8px;
    background:transparent; color:var(--text);
    font-size:13px; font-weight:600; letter-spacing:.01em;
    transition:border-color .2s, background .2s;
}
.lang-switch summary::-webkit-details-marker { display:none; }
.lang-switch summary:hover { border-color:color-mix(in srgb, var(--accent) 45%, var(--border)); background:var(--bg-surface); }
.lang-switch summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.lang-switch[open] summary { border-color:color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lang-switch .ls-globe { width:17px; height:17px; color:var(--text-muted); flex:none; }
.lang-switch .ls-chev { width:15px; height:15px; color:var(--text-muted); flex:none; transition:transform .25s; }
.lang-switch[open] .ls-chev { transform:rotate(180deg); }
.lang-switch .lang-menu {
    position:absolute; top:calc(100% + 8px); right:0; min-width:186px;
    background:var(--bg-elevated); border:1px solid var(--border);
    border-radius:12px; box-shadow:var(--shadow-lg);
    padding:6px; z-index:50;
    animation:lang-menu-in .16s ease;
}
@keyframes lang-menu-in { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:none; } }
.lang-switch .lang-menu a {
    display:flex; align-items:center; gap:11px;
    padding:9px 10px; border-radius:8px;
    text-decoration:none; color:var(--text); font-size:13.5px; font-weight:500;
}
.lang-switch .lang-menu a:hover { background:var(--bg-surface); }
.lang-switch .lang-menu .ls-code {
    font-family:'JetBrains Mono', ui-monospace, monospace; font-size:11px; font-weight:700;
    color:var(--text-muted); background:var(--bg-surface);
    border:1px solid var(--border-soft); padding:2px 6px; border-radius:5px; flex:none;
}
.lang-switch .lang-menu .ls-nm { flex:1; }
.lang-switch .lang-menu .ls-ck { width:16px; height:16px; color:var(--accent); opacity:0; flex:none; }
.lang-switch .lang-menu a.active { color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); font-weight:600; }
.lang-switch .lang-menu a.active .ls-ck { opacity:1; }
.lang-switch .lang-menu a.active .ls-code { color:var(--accent); border-color:color-mix(in srgb, var(--accent) 35%, transparent); background:transparent; }
/* aligne le selecteur sur la hauteur du theme-toggle (40px landing, 36px console .app) */
.app .lang-switch summary { height:36px; border-radius:6px; }

/* Verdict de regle match_rule (chip dans le resume de resultat - AXE 3) */
.rule-verdict { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:8px; font-size:12px; font-weight:600; }
.rule-verdict .label { color:var(--text-muted); font-weight:500; }
.rule-verdict.rv-pass { background:var(--success-soft); color:var(--success); }
.rule-verdict.rv-fail { background:var(--danger-soft); color:var(--danger); }

/* Textarea try-it (match_rule) : pleine largeur, sous label/hint */
.tryit-field textarea.tf-textarea { grid-column:1 / -1; width:100%; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 12px; font-size:13px; color:var(--text); font-family:'JetBrains Mono', monospace; resize:vertical; transition:all .15s ease; }
.tryit-field textarea.tf-textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }

/* Pastilles de statut a popover (landing + console). La carte .vstatus-pop est
   appendue au <body> par theme.js (position:fixed) -> jamais rognee par l'overflow
   des tableaux de doc. Repli sans JS : attribut title= natif (retire par le JS). */
code.mono.vstatus { cursor:help; transition:color .12s ease, border-color .12s ease; }
code.mono.vstatus::after { content:""; display:inline-block; width:0.82em; height:0.82em; margin-left:4px; vertical-align:-0.08em; background:currentColor; opacity:0.5; transition:opacity .12s ease; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='11'/%3E%3Cline x1='12' y1='8' x2='12' y2='8'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='11'/%3E%3Cline x1='12' y1='8' x2='12' y2='8'/%3E%3C/svg%3E") center/contain no-repeat; }
code.mono.vstatus:hover, code.mono.vstatus:focus-visible { color:var(--accent); border-color:var(--accent); outline:none; }
code.mono.vstatus:hover::after, code.mono.vstatus:focus-visible::after { opacity:1; }
.vstatus-pop { position:fixed; z-index:9999; max-width:260px; padding:8px 11px; border-radius:8px; background:var(--bg-elevated); color:var(--text); border:1px solid var(--border); box-shadow:var(--shadow-lg); font-size:12.5px; line-height:1.5; pointer-events:none; opacity:0; transform:translateY(2px); transition:opacity .12s ease, transform .12s ease; }
.vstatus-pop.is-on { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce) { code.mono.vstatus, code.mono.vstatus::after, .vstatus-pop { transition:none; } }
