/* Barre de recherche, filtres, tri et toggle */
.marketplace-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
}
.marketplace-filters-new {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.filter-pill {
    background: linear-gradient(135deg, #232336 70%, #18181b 100%);
    color: #f3f3f7;
    border: none;
    border-radius: 0.9rem;
    padding: 0.38rem 1.25rem;
    font-size: 1.07rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    outline: none;
    box-shadow: 0 2px 8px rgba(139,92,246,0.07);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}
.filter-pill.active, .filter-pill:focus {
    background: linear-gradient(135deg, #a855f7 60%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139,92,246,0.13);
}
.filter-pill:hover {
    background: linear-gradient(135deg, #8b5cf6 60%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,92,246,0.13);
}
.marketplace-sort-toggle {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.toggle-btn {
    background: #232336;
    border: none;
    border-radius: 0.55rem;
    color: #a855f7;
    padding: 0.45rem 0.85rem;
    font-size: 1.18rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(139,92,246,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-btn.active, .toggle-btn:focus {
    background: linear-gradient(135deg, #a855f7 60%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139,92,246,0.13);
}
.toggle-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 60%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,92,246,0.13);
}
.marketplace-sort-select {
    background: #18181b;
    color: #f3f3f7;
    border: 1.5px solid #8b5cf6;
    border-radius: 0.5rem;
    padding: 0.5rem 2.2rem 0.5rem 1.1rem;
    font-size: 1.08rem;
    margin-left: 0.7rem;
    box-shadow: 0 2px 12px rgba(139,92,246,0.08);
    appearance: none;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}
.marketplace-sort-select:focus, .marketplace-sort-select:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 18px rgba(139,92,246,0.13);
}
.marketplace-sort-select::-ms-expand {
    display: none;
}
.marketplace-sort-toggle {
    position: relative;
}
.marketplace-sort-toggle::after {
    content: '\25BC';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a855f7;
    font-size: 1.1rem;
    pointer-events: none;
}
/* Avatar rond petit format */
.workflow-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    background: #232336;
    border: 1.5px solid #232336;
}
/* Grille variée pour workflows */
/* ...existing code... */
/* ...existing code... */
@media (max-width: 1100px) {
    .workflows-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .workflows-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-card {
    background: #141414;
    padding: 2.2rem 2rem 1.7rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 420px;
    max-height: 420px;
    height: 420px;
    width: 100%;
    align-items: flex-start;
    border: 1.5px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
}

.workflow-card:hover {
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    
    transition: all 0.2s ease;
}
@media (max-width: 700px) {
    .workflow-card {
        min-height: 410px;
    }
}
/* ...existing code... */

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1.2rem;
}
@media (max-width: 700px) {
    .workflow-header {
        margin-bottom: 1rem;
    }
}

.workflow-stars {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: #facc15;
    font-weight: 600;
    font-size: 1.15rem;
}
@media (max-width: 700px) {
    .workflow-stars {
        font-size: 1rem;
    }
}
.workflow-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    text-align: left;
    width: 100%;
}
@media (max-width: 700px) {
    .workflow-title {
        font-size: 1.2rem;
    }
}
.workflow-description {
    color: #bdbdbd;
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
    text-align: left;
    width: 100%;
}
@media (max-width: 700px) {
    .workflow-description {
        font-size: 0.95rem;
    }
}
.workflow-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: #8b5cf6;
    margin-bottom: 0.6rem;
    width: 100%;
}
@media (max-width: 700px) {
    .workflow-meta {
        font-size: 0.9rem;
    }
}
.workflow-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 2.2em; /* pour garder l'alignement même si peu de tags */
    gap: 0.4rem;
    position: relative;
}
@media (max-width: 700px) {
    .workflow-tags {
        margin-bottom: 0.5rem;
    }
}
.workflow-tags .tag {
    flex: 0 0 auto;
    margin-right: 0.4rem;
    background: #232336;
    color: #fff;
    border-radius: 12px;
    padding: 0.22rem 0.9rem;
    font-size: 0.93rem;
    white-space: nowrap;
    /* Cacher initialement pour éviter le scintillement */
    visibility: hidden;
    /* Suppression des propriétés d'ellipsis individuelles */
}
@media (max-width: 700px) {
    .workflow-tags .tag {
        font-size: 0.85rem;
    }
}
/* Barre de recherche marketplace */
.marketplace-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.2rem;
    background: var(--bg-surface);
    border-radius: 1.2rem;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 2px 12px rgba(139,92,246,0.04);
    border: 1px solid var(--border-primary);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.marketplace-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
    padding: 0.2rem 0.5rem;
}
.marketplace-search-bar i {
    color: var(--accent-violet);
    width: 22px;
    height: 22px;
}

/* Grille de petits carrés marketplace */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.marketplace-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-primary);
    border-radius: 1.1rem;
    box-shadow: 0 4px 18px rgba(139,92,246,0.06);
    padding: 1.1rem 1.1rem 1.1rem 1.1rem;
    min-height: 220px;
    min-width: 0;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    position: relative;
}

.marketplace-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
}
.marketplace-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.marketplace-card-meta {
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.marketplace-card-author {
    color: #8b5cf6;
    font-weight: 600;
}
.marketplace-card-desc {
    color: var(--text-secondary);
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
    min-height: 36px;
}
.marketplace-card-tags {
    margin-bottom: 0.7rem;
}
.marketplace-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
}
/* Grille de bulles marketplace */
.market-bubble-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.market-bubble {
    background: rgba(30,30,40,0.93);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(139,92,246,0.09);
    border: 2px solid var(--border-primary);
    width: 320px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    overflow: hidden;
    padding: 0 1.2rem;
}

.bubble-icon-bg {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    margin: 0 auto 1.1rem auto;
    box-shadow: 0 4px 24px 0 rgba(139,92,246,0.13);
}
.bubble-icon-bg.violet {
    background: linear-gradient(135deg, #8b5cf6 60%, #a855f7 100%);
    color: #fff;
}
.bubble-icon-bg.green {
    background: linear-gradient(135deg, #22c55e 60%, #16a34a 100%);
    color: #fff;
}
.bubble-icon-bg.blue {
    background: linear-gradient(135deg, #3b82f6 60%, #2563eb 100%);
    color: #fff;
}
.bubble-content {
    text-align: center;
    width: 100%;
}
.bubble-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}
.bubble-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}
.bubble-author {
    color: #8b5cf6;
    font-weight: 600;
}
.bubble-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    min-height: 48px;
}
.bubble-tags {
    margin-bottom: 1.2rem;
}
.bubble-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.btn-tertiary {
    background: var(--bg-tertiary);
    color: var(--accent-violet);
    border: 1px solid var(--border-primary);
}
.btn-tertiary:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}
@media (max-width: 900px) {
    .market-bubble {
        width: 95vw;
        height: 320px;
        border-radius: 2rem;
        margin-bottom: 1.5rem;
    }
}
/* Bulles sobres autour des cartes modules (façon Chaos) */
.feature-bubble-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.bubble-bkg {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.3s;
}
.bubble-bkg-violet {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6 60%, #a855f7 100%);
    left: -30px;
    top: 10px;
}
.bubble-bkg-green {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #22c55e 60%, #16a34a 100%);
    right: -25px;
    top: 30px;
}
.bubble-bkg-blue {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #3b82f6 60%, #2563eb 100%);
    left: 50px;
    bottom: -20px;
}
.feature-bubble-wrap .feature-card {
    position: relative;
    z-index: 1;
}
/* Globe 3D vectoriel animé pour la marketplace */
.market-globe-bg {
    position: relative;
    width: 340px;
    height: 320px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.globe-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.market-mesh-bg, .market-bubbles { display: none !important; }
/* Mesh gradient animé pour la marketplace */
.market-mesh-bg {
    position: relative;
    width: 340px;
    height: 320px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.mesh-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.market-bubbles { display: none !important; }
/* Marketplace bubbles custom shapes & animation */
.alt-shape { border-radius: 30% 70% 60% 40%/60% 30% 70% 40%; }
.alt-oval { border-radius: 50% 50% 40% 60%/60% 40% 60% 50%; }
.alt-square { border-radius: 1.5rem; }
.alt-dot { width: 22px !important; height: 22px !important; background: #8b5cf6 !important; left: 80px !important; top: 200px !important; box-shadow: 0 2px 8px 0 #8b5cf655; animation-delay: 2.7s; }
.bubble-icon-violet { color: #8b5cf6; font-size: 2.1rem; }
.bubble-icon-orange { color: #ff6b35; font-size: 1.7rem; }
.bubble-icon-green { color: #22c55e; font-size: 1.7rem; }
.bubble-icon-blue { color: #3b82f6; font-size: 1.5rem; }
.pulse { animation: float 6s ease-in-out infinite, pulse-bubble 2.5s infinite; }
.rotate { animation: float 7s ease-in-out infinite, rotate-bubble 6s linear infinite; }
@keyframes pulse-bubble {
    0%,100% { box-shadow: 0 4px 24px 0 rgba(139,92,246,0.12); transform: scale(1); }
    50% { box-shadow: 0 8px 32px 0 rgba(139,92,246,0.18); transform: scale(1.08); }
}
@keyframes rotate-bubble {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.bubble-1 { top: 30px; left: 30px; width: 70px; height: 70px; background: rgba(139,92,246,0.13); animation-duration: 6s; animation-delay: 0s; }
.bubble-2 { top: 120px; right: 40px; width: 60px; height: 60px; background: rgba(255,107,53,0.13); box-shadow: 0 4px 24px 0 #ff6b3555; animation-duration: 7s; animation-delay: 1.5s; }
.bubble-3 { bottom: 40px; left: 60px; width: 55px; height: 55px; background: rgba(34,197,94,0.13); box-shadow: 0 4px 24px 0 #22c55e33; animation-duration: 5.5s; animation-delay: 3s; }
.bubble-4 { bottom: 60px; right: 60px; width: 45px; height: 45px; background: rgba(59,130,246,0.13); box-shadow: 0 4px 24px 0 #3b82f633; animation-duration: 6.5s; animation-delay: 2.2s; }

.market-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 1rem;
    margin-bottom: 3rem;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.market-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.market-title-gradient {
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.market-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.market-bubbles {
    position: relative;
    width: 340px;
    height: 320px;
    z-index: 1;
}
.bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 24px 0 rgba(139,92,246,0.12);
    animation: float 6s ease-in-out infinite;
}
.bubble-1 {
    top: 30px; left: 30px; width: 70px; height: 70px;
    background: rgba(139,92,246,0.13);
    animation-duration: 6s;
    animation-delay: 0s;
}
.bubble-2 {
    top: 120px; right: 40px; width: 60px; height: 60px;
    background: rgba(34,197,94,0.13);
    box-shadow: 0 4px 24px 0 rgba(34,197,94,0.10);
    animation-duration: 7s;
    animation-delay: 1.5s;
}
.bubble-3 {
    bottom: 40px; left: 60px; width: 55px; height: 55px;
    background: rgba(59,130,246,0.13);
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.10);
    animation-duration: 5.5s;
    animation-delay: 3s;
}
.bubble-4 {
    bottom: 60px; right: 60px; width: 45px; height: 45px;
    background: rgba(245,158,11,0.13);
    box-shadow: 0 4px 24px 0 rgba(245,158,11,0.10);
    animation-duration: 6.5s;
    animation-delay: 2.2s;
}
@keyframes float {
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-18px);}
}

/* Cartes modules marketplace */
.features-grid .feature-card {
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(139,92,246,0.07);
    background: rgba(30,30,40,0.85);
    border: 1.5px solid var(--border-primary);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.features-grid .feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(.4,0,.2,1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.features-grid .flex {
    justify-content: center;
}
.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}
.features-grid .feature-card .btn {
    min-width: 110px;
}
/* Navigation standardisée */
.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand i {
    color: var(--accent-violet);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-violet);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-mobile {
    display: none;
}

/* Styles des boutons standardisés */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-primary {
    background: var(--accent-violet);
    color: white;
    border-color: var(--accent-violet);
}

.btn-primary:hover {
    background: var(--accent-violet-light);
    border-color: var(--accent-violet-light);
}








.docs-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-primary);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.brand-info i {
    color: var(--accent-violet);
    width: 24px;
    height: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: var(--accent-violet);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-violet);
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.1);
}

.footer-social i {
    width: 20px;
    height: 20px;
}




.marketplace-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
    justify-content: center;
}
.filter-btn {
    background: #232336;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.filter-btn.active, .filter-btn:hover {
    background: #8b5cf6;
    color: #fff;
}
.btn-like {
    background: transparent;
    color: #8b5cf6;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.3em;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}
.btn-like.liked {
    color: #facc15;
}
.btn-like .lucide-star {
    margin-right: 0.2em;
}
.workflows-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 2.5rem auto;
    max-width: 1300px;
    justify-items: center;
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1.2rem;
}
.workflow-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
.workflow-stars {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: #facc15;
    font-weight: 600;
    font-size: 1.15rem;
}
.workflow-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
/* Description tronquée à 3 lignes max avec ellipsis */
.workflow-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.7em;
    min-height: 4.7em;
    line-clamp: 3;
    box-sizing: border-box;
}
.workflow-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 1rem;
    color: #8b5cf6;
    margin-bottom: 0.6rem;
    justify-content: center;
    width: 100%;
}
.workflow-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    min-height: 2.2em;
}
.workflow-tags .tag {
    flex: 0 0 auto;
    margin-right: 0.4rem;
    background: #2d2250;
    color: #a78bfa;
    border-radius: 10px;
    padding: 0.18rem 0.9rem;
    font-size: 0.93rem;
    text-transform: uppercase;
    
    
    
}
.workflow-marketplace {
    display: flex;
    gap: 1.3rem;
    color: #a3a3a3;
    font-size: 1.03rem;
    margin-bottom: 1.2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.workflow-marketplace .marketplace-premium {
    display: none !important;
}
.workflow-actions {
    margin-top: auto;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}
.workflow-actions .btn {
    min-width: 110px;
    font-size: 1rem;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
}


.workflow-username {
    color: #8b5cf6;
    word-break: break-word;
    white-space: normal;
 }

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    background: #232336;
    color: #f3f3f7;
    border: 1px solid #3a3a4d;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.pagination-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: #232336;
    border-color: #3a3a4d;
    color: #f3f3f7;
}



.filter-pill {
            transition: all 0.2s ease;
            cursor: pointer;
            border: 1px solid transparent;
        }
        .filter-pill:hover {
            background-color: rgba(139, 92, 246, 0.1);
            border-color: rgba(139, 92, 246, 0.3);
        }
        .filter-pill.active {
            background-color: #8b5cf6;
            color: white;
            border-color: #8b5cf6;
        }
        .marketplace-search-bar input::placeholder {
            transition: all 0.2s ease;
        }
        #search-button {
            transition: all 0.2s ease;
            padding: 8px;
            border-radius: 6px;
        }
        #search-button:hover {
            background-color: rgba(139, 92, 246, 0.1);
            transform: scale(1.05);
        }
        #search-button:active {
            transform: scale(0.95);
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .loading-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        .pagination-btn {
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .pagination-btn:hover {
            background-color: rgba(139, 92, 246, 0.1);
        }
        /* Forcer le centrage de la pagination même après mise à jour AJAX */
        .pagination-container {
            display: flex !important;
            justify-content: center !important;
            margin: 2rem 0 !important;
        }
        /* Style amélioré pour les numéros de pagination */
        .pagination-btn {
            font-size: 1rem !important;
            font-weight: 700 !important;
            padding: 0.6rem 0.9rem !important;
        }