/* =====================================================
   EasySHM — Documentation (style du portfolio GalTech)
   ===================================================== */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.fill-icon {
    font-variation-settings: 'FILL' 1;
}

/* Data grid background */
.data-grid-pattern {
    background-image: radial-gradient(#c2c6d8 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

/* Custom scrollbar for technical feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f9fb;
    border-left: 1px solid #c2c6d8;
}

::-webkit-scrollbar-thumb {
    background: #c2c6d8;
}

::-webkit-scrollbar-thumb:hover {
    background: #727787;
}

/* Page entrance */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slow ping (statut "live") */
@keyframes ping-slow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping-slow {
    animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Syntax highlighting (palette claire du portfolio) */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #424655;
    white-space: pre;
    overflow-x: auto;
}

.code-block .kw { color: #0056c6; font-weight: 600; }
.code-block .fn { color: #00429c; }
.code-block .str { color: #006e0b; }
.code-block .num { color: #b3261e; }
.code-block .cm { color: #727787; font-style: italic; }

/* Inline code */
.prose-doc code:not(.code-block) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: #eceef0;
    border: 1px solid #c2c6d8;
    padding: 0.05em 0.35em;
}

/* Sidebar sub-links (scrollspy) */
.toc-link.active {
    color: #0056c6;
    border-left-color: #0056c6;
    background: #f2f4f6;
}

/* Shared memory "bus" animation on the home page */
.bus-line {
    stroke-dasharray: 4 4;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -400;
    }
}
