/* =========================================
   PAGE PROJETS (Style 3D Hard Shadow)
   ========================================= */

.projects-section {
    padding-top: 120px;
    padding-bottom: 6rem;
    min-height: 100vh;
}

/* --- en-tête de page --- */
.projects-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.category-section {
    margin-bottom: 6rem; 
}

.category-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.category-title i {
    color: var(--color-primary); 
    font-size: 1.5rem;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 2.5rem;
}

/* =========================================
   CARTE PROJET (Uniforme & 3D Accentué)
   ========================================= */

.project-card {
    background: white;
    /* // bordure épaisse noire identique aux boutons de la home */
    border: 2px solid var(--color-dark); 
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* // transition fluide avec un léger effet de rebond */
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    flex-direction: column;
    /* // effet hard shadow 3d de base */
    box-shadow: 4px 4px 0px var(--color-dark); 

    /* // largeur mobile */
    width: 100%;
    max-width: 500px;
}

/* // tablette : 2 colonnes */
@media (min-width: 768px) {
    .project-card {
        width: calc(50% - 1.25rem); 
        max-width: none;
    }
}

/* // bureau : 3 colonnes */
@media (min-width: 1024px) {
    .project-card {
        width: calc(33.333% - 1.7rem);
    }
}

/* // hover effect fortement accentué */
.project-card:hover {
    /* // déplacement marqué vers le haut et la gauche */
    transform: translate(-4px, -4px);
    /* // ombre orange très profonde pour simuler l'élévation */
    box-shadow: 10px 10px 0px var(--color-primary);
    border-color: var(--color-primary);
    transition: 0.001s ease;
}

/* --- image / haut de carte --- */
.card-image {
    background-color: #f5f5f4;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--color-dark);
}

.project-card:hover .card-image {
    border-bottom-color: var(--color-primary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.card-image i {
    font-size: 4rem;
    color: #d6d3d1;
    transition: 0.3s ease;
}

.project-card:hover .card-image i {
    color: var(--color-primary);
    transform: scale(1.1) rotate(-5deg);
}

/* // badge "projet phare" adapté au style 3d */
.card-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--color-dark);
    box-shadow: 2px 2px 0px var(--color-dark);
    z-index: 10;
}

/* --- contenu / bas de carte --- */
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.project-card:hover .card-title {
    color: var(--color-primary);
    transform: translateY(-1.5px);
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- tags --- */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #f5f5f4;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    text-transform: uppercase;
    transition: all 0.2s;
}

.project-card:hover .tag {
    background: rgba(234, 88, 12, 0.1); 
    color: var(--color-primary);
    border-color: rgba(234, 88, 12, 0.3);
    /* // micro-ombre 3d pour les tags au survol */
    box-shadow: 2px 2px 0px rgba(234, 88, 12, 0.2);
}