.projets-personnels {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.projets-personnels h2 {
    text-align: center;
    color: #0057B7;
    margin: 2rem 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.intro-paragraph {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Grille */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.2rem;
}

/* Carte */
.projet-block {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-top: 4px solid #0057B7;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 3px 12px rgba(0, 87, 183, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.projet-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 183, 0.13);
}

.projet-block h3 {
    color: #0057B7;
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.projet-block p {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Tags */
.ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ap-tag {
    font-size: 0.74rem;
    background: #e8f4fd;
    color: #1E90FF;
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 600;
}

/* Bouton */
.btn-explore {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #0057B7 0%, #1E90FF 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 87, 183, 0.25);
    margin-top: 0.3rem;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 87, 183, 0.35);
    color: white !important;
}

.btn-explore::after { content: none !important; }

/* Bouton désactivé */
.btn-explore.btn-disabled {
    background: #d0d0d0;
    color: #999 !important;
    pointer-events: none;
    cursor: default;
    box-shadow: none;
}

/* Carte désactivée */
.projet-block:has(.btn-disabled) {
    border-top-color: #ccc;
    opacity: 0.65;
}
.projet-block:has(.btn-disabled):hover {
    transform: none;
    box-shadow: 0 3px 12px rgba(0, 87, 183, 0.07);
}

.projets-personnels a:not(.btn-explore) {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}
.projets-personnels a:not(.btn-explore):hover {
    color: #0057B7;
}

@media (max-width: 640px) {
    .project-list { grid-template-columns: 1fr; }
}
