.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #06668C;
    background: transparent;
    color: #06668C;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #06668C;
    color: white;
}

.projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

/* Animation Flip Card */
.project-card {
    height: 350px;
    background-color: transparent;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front {
    background: white;
    border: 1px solid #EBF2FA;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-back {
    background: #06668C;
    color: white;
    transform: rotateY(180deg);
}

.project-tag {
    font-size: 0.7em;
    font-weight: 800;
    color: #679436;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-project {
    border: 4px solid #679436 !important;
    border-radius: 15px;
    transform: scale(1.02);
}

.ac-badge {
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: bold;
}

.flip-trigger {
    background: none;
    border: none;
    color: #06668C;
    font-weight: bold;
    cursor: pointer;
}

.card-back .flip-trigger { color: white; border: 1px solid white; padding: 5px 10px; border-radius: 5px; }

.github-link {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}