
/* Project tag styles */
.project-tag {
    background-color: rgb(183, 162, 155);
    color: black;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-tag:hover {
    opacity: 0.9;
}

/* Styles pour les filtres de projets */
.filter-bullets {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 10px;
    margin: 0 auto 50px auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: rgba(248, 243, 233, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--main-decor-color);

    max-width: 100%;
    text-align: center;
    position: relative;
    z-index: 20;
    /* Centrage amélioré avec auto margins */
    left: 0;
    right: 0;
    transform: none;
    width: 85%; /* Réduction de la largeur par défaut */
    box-sizing: border-box; /* S'assurer que padding est inclus dans la largeur */
}

.category-bullet {
    background-color: #f8f3e9;
    width: auto;
    height: auto;
    border-radius: 20px; 
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    color: var(--main-fonts-color);
    border: 2px solid var(--main-decor-color);
    display: inline-block;
}

.category-bullet:hover,
.category-bullet.active {
    background-color: var(--main-decor-color);
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.category-bullet::after {
    content: '';
    display: none;
}

.category-bullet:hover::after,
.category-bullet.active::after {
    display: none;
}

/* S'assurer que les cartes de projet s'affichent correctement */
.work .card {
    transition: all 0.5s ease-in-out;
}

.work .card.filtered-out {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* Style pour les cartes de projet */
.work .card.inprogress {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.work .card.done {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    pointer-events: auto !important;
}

.work .card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.work .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Effet de scan lumineux au survol */
.work .card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: 2;
}

.work .card:hover::after {
    top: 100%;
    left: 100%;
}

/* Indicateur discret de catégorie */
.work .card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-decor-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.work .card:hover::before {
    opacity: 1;
}

/* Styles desktop spécifiques */
@media only screen and (min-width: 769px) {
    .filter-bullets {
        margin: 30px auto 50px auto;
        max-width: 80%;
        width: auto;
    }
    
    .category-bullet {
        padding: 10px 15px;
        font-size: 16px;
        margin: 5px 8px;
        color: var(--main-fonts-color);
    }
    
    .category-bullet.active {
        background-color: var(--main-decor-color);
        color: white;
    }
    
    .category-bullet:hover::after {
        display: none;
    }
}

/* Styles spécifiques pour les mobiles */
@media only screen and (max-width: 768px) {
    .filter-bullets {
        padding: 8px;
        gap: 4px;
        width: 90%; /* Réduire la largeur pour éviter les débordements */
        max-width: 95vw; /* Limiter à 95% de la fenêtre */
        margin: 15px auto 25px auto;
        box-sizing: border-box; /* Inclure padding dans la largeur */
        position: relative;
        transform: none; /* Éviter les transformations qui affectent le centrage */
        left: 0;
        right: 0;
    }
    
    .category-bullet {
        padding: 6px 8px;
        font-size: 12px;
        margin: 2px;
        flex-shrink: 1; /* Permettre au bouton de se rétrécir */
    }
    
    .category-bullet:hover,
    .category-bullet.active {
        transform: scale(1.05); /* Légère réduction de l'effet d'échelle */
    }
}

/* Styles pour très petits écrans */
@media only screen and (max-width: 480px) {
    .filter-bullets {
        padding: 5px;
        width: 90%; /* Réduire davantage la largeur */
        max-width: 90vw; /* Limiter à 90% de la fenêtre */
        margin: 10px auto 20px auto;
    }
    
    .category-bullet {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 32px;
    }
}
/* Styles pour les cartes filtrées */
.card[data-category] {
                transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

/* Les styles spécifiques pour le filtrage sont maintenant appliqués directement via JavaScript */
.work .card.appear {
                transform: translateY(0);
                animation: bump 0.8s ease-out forwards;
}

/* S'assurer que les cartes avec data-category ont toujours leur attribut visible */
.card[data-category] {
                position: relative;
}

.card[data-category]::before {
                content: attr(data-category);
                position: absolute;
                top: 0;
                right: 0;
                background-color: rgba(0,0,0,0.5);
                color: white;
                padding: 2px 5px;
                font-size: 10px;
                opacity: 0;
                z-index: 10;
                border-radius: 0 10px 0 10px;
}

.card[data-category]:hover::before {
                opacity: 1;
}

/*──────────────────
