/* Boutons de téléchargement Markdown */
.md-button.md-button--primary {
    background-color: #3f51b5;
    color: white;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.md-button.md-button--primary:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Badge de version */
.version-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
}

/* Alert boxes personnalisés */
.admonition.security {
    border-left-color: #f44336;
}

.admonition.security > .admonition-title {
    background-color: rgba(244, 67, 54, 0.1);
}

.admonition.security > .admonition-title::before {
    content: "🔒";
    margin-right: 8px;
}

.admonition.architecture {
    border-left-color: #2196f3;
}

.admonition.architecture > .admonition-title {
    background-color: rgba(33, 150, 243, 0.1);
}

.admonition.architecture > .admonition-title::before {
    content: "🏗️";
    margin-right: 8px;
}

/* Code blocks améliorés */
.highlight {
    border-radius: 8px;
    overflow: hidden;
}

/* Table des matières sticky */
.md-sidebar--secondary {
    position: sticky;
    top: 4rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 4px;
}

.status-badge.stable {
    background-color: #4caf50;
    color: white;
}

.status-badge.beta {
    background-color: #ff9800;
    color: white;
}

.status-badge.deprecated {
    background-color: #f44336;
    color: white;
}

/* Mermaid diagrams */
.mermaid {
    text-align: center;
    margin: 20px 0;
}

/* Footer download section */
.download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.download-section a {
    color: white;
    text-decoration: underline;
}

/* Responsive tweaks */
@media screen and (max-width: 76.1875em) {
    .md-sidebar--secondary {
        display: none;
    }
}
