/* ============================================
   MycoGest Documentation - Style Premium Moderne
   Design épuré et professionnel inspiré de Stripe, Vercel, Linear
   ============================================ */

:root {
    /* Palette grise raffinée */
    --docs-bg: #fafafa;
    --docs-sidebar-bg: #ffffff;
    --docs-content-bg: #ffffff;
    --docs-border: #e5e5e5;
    --docs-border-light: #f0f0f0;
    --docs-text: #171717;
    --docs-text-secondary: #525252;
    --docs-text-tertiary: #737373;
    --docs-heading: #0a0a0a;
    --docs-accent: #171717;
    --docs-accent-hover: #404040;
    --docs-code-bg: #fafafa;
    --docs-code-border: #e5e5e5;
    --docs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --docs-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --docs-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --docs-radius-sm: 0.375rem;
    --docs-radius: 0.5rem;
    --docs-radius-lg: 0.75rem;
}

/* ============================================
   Layout avec animations
   ============================================ */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr 240px;
    grid-template-areas: "sidebar content toc";
    gap: 0;
    min-height: 100vh;
    padding-top: 70px;
    background: var(--docs-bg);
}

@media (max-width: 1200px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
        grid-template-areas: "sidebar content";
    }
    
    .docs-toc {
        display: none;
    }
}

@media (max-width: 968px) {
    .docs-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "content";
    }
    
    .docs-sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        z-index: 100;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 24px rgba(0,0,0,0.12);
    }
    
    .docs-sidebar.active {
        left: 0;
    }
}

/* ============================================
   Sidebar Premium - SANS SCROLL
   ============================================ */
.docs-sidebar {
    grid-area: sidebar;
    background: var(--docs-sidebar-bg);
    border-right: 1px solid var(--docs-border);
    padding: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: visible; /* CHANGÉ : plus de scroll */
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
}

/* Header sidebar */
.docs-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--docs-border-light);
    background: var(--docs-sidebar-bg);
    flex-shrink: 0;
}

.docs-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

/* Search moderne */
.docs-search {
    position: relative;
}

.docs-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--docs-text-tertiary);
    font-size: 0.875rem;
}

.docs-search input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--docs-bg);
    color: var(--docs-text);
}

.docs-search input::placeholder {
    color: var(--docs-text-tertiary);
}

.docs-search input:focus {
    outline: none;
    border-color: var(--docs-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

/* Navigation SANS scroll interne */
.docs-nav {
    padding: 1rem 0 2rem;
    flex: 1;
    overflow-y: visible; /* CHANGÉ : plus de scroll */
}

.docs-nav-section {
    margin-bottom: 0;
}

.docs-nav-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--docs-text-tertiary);
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.docs-nav ul li {
    margin: 0;
}

.docs-nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: var(--docs-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    letter-spacing: -0.01em;
    position: relative;
}

.docs-nav ul li a:hover {
    color: var(--docs-text);
    background: var(--docs-bg);
}

.docs-nav ul li a.active {
    color: var(--docs-heading);
    font-weight: 500;
    background: var(--docs-bg);
    border-left-color: var(--docs-accent);
}

/* Badge de nouveau */
.docs-nav ul li a .badge-new {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--docs-accent);
    color: white;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer sidebar moderne */
.docs-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--docs-border-light);
    background: var(--docs-sidebar-bg);
    flex-shrink: 0;
}

.docs-help-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--docs-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--docs-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.docs-help-link:hover {
    background: var(--docs-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--docs-shadow);
    color: white;
}

.docs-help-link i {
    font-size: 1rem;
}

/* ============================================
   Content Area Premium
   ============================================ */
.docs-content {
    grid-area: content;
    padding: 3rem 4rem;
    max-width: 840px;
    background: var(--docs-content-bg);
    color: var(--docs-text);
    line-height: 1.7;
    min-height: calc(100vh - 70px);
    overflow-x: hidden;
}

@media (max-width: 968px) {
    .docs-content {
        padding: 2rem 1.5rem;
    }
}

/* Breadcrumb moderne */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.8125rem;
    color: var(--docs-text-secondary);
}

.docs-breadcrumb a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.docs-breadcrumb a:hover {
    color: var(--docs-accent);
}

.docs-breadcrumb i {
    font-size: 0.625rem;
    opacity: 0.5;
}

/* Typography Premium */
.docs-section {
    margin-bottom: 3rem;
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--docs-heading);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.docs-lead {
    font-size: 1.25rem;
    color: var(--docs-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.docs-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--docs-heading);
    margin: 3rem 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--docs-border-light);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.docs-section h2 {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.docs-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 2rem 0 0.75rem 0;
    letter-spacing: -0.015em;
}

.docs-section h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 1.5rem 0 0.625rem 0;
}

.docs-section p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--docs-text);
}

.docs-section ul,
.docs-section ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.docs-section ul li,
.docs-section ol li {
    margin-bottom: 0.625rem;
    line-height: 1.7;
    color: var(--docs-text);
}

.docs-section a {
    color: var(--docs-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.15s;
}

.docs-section a:hover {
    color: var(--docs-accent-hover);
}

/* Liste avec icônes */
ul.list-icon {
    list-style: none;
    padding-left: 0;
}

ul.list-icon li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

ul.list-icon li i {
    color: var(--docs-accent);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ============================================
   Admonitions Premium (Callouts)
   ============================================ */
.docs-alert {
    padding: 1.25rem;
    border-radius: var(--docs-radius-lg);
    margin: 2rem 0;
    border: 1px solid;
    position: relative;
    font-size: 0.9375rem;
    background: white;
}

.docs-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--docs-radius-lg) 0 0 var(--docs-radius-lg);
}

.docs-alert i {
    float: left;
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.125rem;
}

.docs-alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.docs-alert p {
    margin: 0;
    line-height: 1.6;
}

.docs-alert p:last-child {
    margin-bottom: 0;
}

/* Info callout */
.docs-alert-info {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.docs-alert-info::before {
    background: #0284c7;
}

.docs-alert-info i {
    color: #0284c7;
}

.docs-alert-info strong {
    color: #075985;
}

/* Tip callout */
.docs-alert-tip {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.docs-alert-tip::before {
    background: #16a34a;
}

.docs-alert-tip i {
    color: #16a34a;
}

.docs-alert-tip strong {
    color: #15803d;
}

/* Warning callout */
.docs-alert-warning {
    background: #fef3c7;
    border-color: #fde68a;
}

.docs-alert-warning::before {
    background: #d97706;
}

.docs-alert-warning i {
    color: #d97706;
}

.docs-alert-warning strong {
    color: #b45309;
}

/* Success callout */
.docs-success {
    padding: 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--docs-radius-lg);
    margin: 2rem 0;
    position: relative;
}

.docs-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #16a34a;
    border-radius: var(--docs-radius-lg) 0 0 var(--docs-radius-lg);
}

.docs-success i {
    font-size: 1.25rem;
    color: #16a34a;
    float: left;
    margin-right: 1rem;
    margin-top: 0.125rem;
}

.docs-success strong {
    color: #15803d;
    font-weight: 600;
}

/* ============================================
   Cards Grid Premium
   ============================================ */
.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.docs-quick-link {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.docs-quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--docs-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.docs-quick-link:hover {
    border-color: var(--docs-accent);
    box-shadow: var(--docs-shadow-lg);
    transform: translateY(-2px);
}

.docs-quick-link:hover::before {
    transform: scaleX(1);
}

.docs-quick-link i {
    font-size: 2.25rem;
    color: var(--docs-accent);
    margin-bottom: 1rem;
    display: block;
}

.docs-quick-link h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.docs-quick-link p {
    color: var(--docs-text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.docs-quick-link a {
    color: var(--docs-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s;
}

.docs-quick-link:hover a {
    gap: 0.625rem;
}

/* ============================================
   Glossary Premium
   ============================================ */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.glossary-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    border-left-width: 3px;
    border-left-color: var(--docs-accent);
    transition: all 0.2s;
}

.glossary-item:hover {
    box-shadow: var(--docs-shadow);
    transform: translateY(-1px);
}

.glossary-item dt {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin-bottom: 0.5rem;
}

.glossary-item dd {
    margin: 0;
    color: var(--docs-text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================
   Code Blocks Premium
   ============================================ */
.docs-code {
    background: #0a0a0a;
    color: #e5e5e5;
    padding: 1.5rem;
    border-radius: var(--docs-radius-lg);
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    border: 1px solid #262626;
    box-shadow: var(--docs-shadow-sm);
}

.docs-code code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

code {
    background: var(--docs-code-bg);
    padding: 0.25em 0.5em;
    border-radius: var(--docs-radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875em;
    color: #d946ef;
    border: 1px solid var(--docs-code-border);
    font-weight: 500;
}

/* ============================================
   Tables Premium
   ============================================ */
.docs-field-table table,
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    overflow: hidden;
    font-size: 0.9375rem;
    box-shadow: var(--docs-shadow-sm);
}

.docs-field-table thead,
.docs-table thead {
    background: var(--docs-bg);
}

.docs-field-table th,
.docs-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--docs-heading);
    border-bottom: 1px solid var(--docs-border);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.docs-field-table td,
.docs-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--docs-border-light);
    color: var(--docs-text);
}

.docs-field-table tbody tr:last-child td,
.docs-table tbody tr:last-child td {
    border-bottom: none;
}

.docs-field-table tbody tr:hover,
.docs-table tbody tr:hover {
    background: var(--docs-bg);
}

/* Field List */
.docs-field-list,
.field-list {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--docs-shadow-sm);
}

.docs-field,
.field-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--docs-border-light);
    font-size: 0.9375rem;
}

.docs-field:last-child,
.field-item:last-child {
    border-bottom: none;
}

.docs-field strong,
.field-name {
    color: var(--docs-heading);
    font-weight: 600;
}

.docs-field span,
.field-desc {
    color: var(--docs-text-secondary);
}

@media (max-width: 768px) {
    .docs-field,
    .field-item {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
}

/* ============================================
   Steps Premium
   ============================================ */
.docs-steps {
    margin: 2.5rem 0;
}

.docs-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    transition: all 0.2s;
}

.docs-step:hover {
    box-shadow: var(--docs-shadow);
    border-color: var(--docs-accent);
}

.docs-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--docs-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--docs-shadow);
}

.docs-step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.docs-step-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--docs-heading);
    font-weight: 600;
}

.docs-step-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.docs-step-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Navigation Buttons Premium
   ============================================ */
.docs-nav-bottom {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--docs-border);
}

.docs-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.docs-nav-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--docs-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.docs-nav-buttons .btn-primary {
    background: var(--docs-accent);
    color: white;
    border: none;
}

.docs-nav-buttons .btn-primary:hover {
    background: var(--docs-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--docs-shadow);
}

.docs-nav-buttons .btn-outline {
    background: white;
    color: var(--docs-text);
    border: 1px solid var(--docs-border);
}

.docs-nav-buttons .btn-outline:hover {
    border-color: var(--docs-accent);
    background: var(--docs-bg);
}

@media (max-width: 768px) {
    .docs-nav-buttons {
        flex-direction: column;
    }
}

/* ============================================
   TOC Premium (Right Sidebar)
   ============================================ */
.docs-toc {
    grid-area: toc;
    padding: 3rem 1.5rem 3rem 1.75rem;
    position: sticky;
    top: 70px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    font-size: 0.8125rem;
}

.docs-toc::-webkit-scrollbar {
    width: 4px;
}

.docs-toc::-webkit-scrollbar-thumb {
    background: var(--docs-border);
    border-radius: 2px;
}

.docs-toc h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--docs-text-tertiary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.docs-toc nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--docs-border-light);
}

.docs-toc nav ul li {
    margin: 0;
}

.docs-toc nav ul li a {
    color: var(--docs-text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    display: block;
    padding: 0.375rem 0 0.375rem 1rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.docs-toc nav ul li a:hover {
    color: var(--docs-text);
    border-left-color: var(--docs-border);
}

.docs-toc nav ul li a.active {
    color: var(--docs-heading);
    font-weight: 500;
    border-left-color: var(--docs-accent);
}

/* ============================================
   Progress Bar
   ============================================ */
.docs-progress {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--docs-border-light);
    z-index: 1000;
}

.docs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--docs-accent), var(--docs-accent-hover));
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   Page Header Premium
   ============================================ */
.docs-page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #262626 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: var(--docs-radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: var(--docs-shadow-lg);
}

.docs-page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: white;
    border: none;
    padding: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.docs-page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    color: white;
    margin: 0;
}

/* ============================================
   Workflow Visual Premium
   ============================================ */
.workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2.5rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--docs-radius-lg);
    overflow-x: auto;
    border: 1px solid var(--docs-border);
    box-shadow: var(--docs-shadow-sm);
}

.workflow-step {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--docs-bg);
    border-radius: var(--docs-radius);
    margin: 0 0.5rem;
    border: 1px solid var(--docs-border);
    min-width: 120px;
    transition: all 0.2s;
}

.workflow-step:hover {
    box-shadow: var(--docs-shadow);
    transform: translateY(-2px);
}

.workflow-step .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.workflow-step h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--docs-heading);
}

.workflow-step small {
    color: var(--docs-text-secondary);
    font-size: 0.75rem;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--docs-text-tertiary);
    font-weight: 400;
    flex-shrink: 0;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .workflow {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .workflow-step {
        margin: 0;
        width: 100%;
    }
}

/* ============================================
   Workflow Cards - Cartes Compactes
   ============================================ */
.workflow-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin: 2.5rem -4rem 2.5rem -4rem;
    padding: 2rem 4rem;
    width: calc(100% + 8rem);
}

.workflow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--docs-shadow);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.workflow-card:hover::before {
    transform: scaleX(1);
}

.workflow-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 0 0 0.375rem 0;
    line-height: 1.3;
}

.workflow-card .card-step {
    font-size: 0.75rem;
    color: var(--docs-text-secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.875rem;
    display: inline-block;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .workflow-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin: 2.5rem -1.5rem 2.5rem -1.5rem;
        padding: 2rem 1.5rem;
        width: calc(100% + 3rem);
    }
    
    .workflow-card {
        padding: 0.875rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .workflow-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2.5rem -1.5rem 2.5rem -1.5rem;
        padding: 2rem 1.5rem;
        width: calc(100% + 3rem);
    }
    
    .workflow-card {
        padding: 1.25rem 0.75rem;
    }
}
}
    
    .workflow-card .card-icon {
        font-size: 2rem;
    }
    
    .workflow-card .card-title {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .workflow-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ============================================
   Additional Components
   ============================================ */
.warning-box,
.tip-box,
.success-box,
.example-box {
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: var(--docs-radius-lg);
    position: relative;
    border: 1px solid;
}

.warning-box {
    background: #fef3c7;
    border-color: #fde68a;
}

.tip-box {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.success-box {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.example-box {
    background: var(--docs-code-bg);
    border: 1px dashed var(--docs-border);
    padding: 1.25rem;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Print optimizations */
@media print {
    .docs-sidebar,
    .docs-toc,
    .docs-breadcrumb,
    .docs-nav-bottom,
    .docs-progress {
        display: none;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "content";
        padding-top: 0;
    }
    
    .docs-content {
        max-width: 100%;
        padding: 0;
    }
    
    .docs-alert,
    .docs-quick-link,
    .docs-step {
        page-break-inside: avoid;
    }
}

/* ============================================
   Workflow COMPACT - Sans scroll horizontal
   ============================================ */
.workflow-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background: white;
    border-radius: var(--docs-radius-lg);
    border: 1px solid var(--docs-border);
    box-shadow: var(--docs-shadow-sm);
    flex-wrap: nowrap;
}

.workflow-step-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--docs-bg);
    border-radius: var(--docs-radius);
    border: 1px solid var(--docs-border);
    min-width: 90px;
    transition: all 0.2s;
    flex-shrink: 1;
}

.workflow-step-compact:hover {
    box-shadow: var(--docs-shadow);
    transform: translateY(-2px);
    border-color: var(--docs-accent);
}

.workflow-step-compact .icon {
    font-size: 1.75rem;
    line-height: 1;
}

.workflow-step-compact h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    color: var(--docs-heading);
    text-align: center;
    white-space: nowrap;
}

.workflow-arrow-compact {
    font-size: 1.25rem;
    color: var(--docs-text-tertiary);
    flex-shrink: 0;
    padding: 0 0.25rem;
}

@media (max-width: 968px) {
    .workflow-compact {
        overflow-x: auto;
        justify-content: flex-start;
    }
}