/* styles for projets.html */

#projets-content { padding: 0; }

/* En-tête (Header) */
.projects-header {
    background-color: #0F3D5E;
    padding: 80px 0;
    text-align: center;
}
.projects-header .breadcrumb {
    color: #E2E8F0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.projects-header h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin: 0;
}

/* Filtre */
.projects-filter-section {
    padding: 40px 0 20px;
    display: flex;
    justify-content: center;
}
.filter-controls {
    display: inline-flex;
    position: relative;
    background-color: #F8FAFC;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.filter-active-bg {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #F4B400; /* Yellow */
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.filter-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #4A5565;
    cursor: pointer;
    border-radius: 50px;
    transition: color 0.3s ease;
}
.filter-btn.active {
    color: #FFFFFF;
}

/* Grille */
.projects-grid-section {
    padding: 40px 0;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.project-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.project-img-wrapper {
    position: relative;
    width: 100%;
}
.img-placeholder {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

/*
============================================================== 
Centralized Project Images - Change here to update all pages 
==============================================================
*/
.project-img-1 { background-image: url('../images/projects/project_1.jpeg'); }
.project-img-2 { background-image: url('../images/projects/project_2.jpeg'); }
.project-img-3 { background-image: url('../images/projects/project_3.jpeg'); }
.project-img-4 { background-image: url('../images/projects/project_4.jpeg'); }
.project-img-5 { background-image: url('../images/projects/project_5.jpeg'); }
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.badge-yellow { background-color: #F4B400; color: #333; text-shadow: none; }
.badge-blue { background-color: #3B82F6; }
.badge-grey { background-color: #64748B; }
.badge-darkblue { background-color: #1E3A8A; }

.project-info {
    padding: 25px;
}
.project-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #0F3D5E; /* var(--color-primary) */
}
.project-info .location {
    color: #6A7282;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.project-info .location i {
    color: #F4B400;
    margin-right: 5px;
}
.btn-link {
    display: inline-block;
    color: #0F3D5E;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.btn-link:hover {
    color: #F4B400;
}

/* Pagination */
.pagination-section {
    padding: 20px 0 80px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    gap: 15px;
}
.page-btn {
    background: #FFFFFF;
    border: 1px solid #D1D5DC;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A5565;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.page-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background-color: #F4B400;
    border-radius: 2px;
    transition: transform 0.3s ease;
}
.page-btn:hover {
    color: #0F3D5E;
    border-color: #0F3D5E;
}
.page-btn.active {
    background-color: #F4B400;
    color: #FFFFFF;
    border-color: #F4B400;
}
.page-btn:hover::after,
.page-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Enforce 2 projects per row on mobile */
    }
    .project-info {
        padding: 15px;
    }
    .project-info h3 {
        font-size: 1.05rem;
    }
    .project-info .location {
        font-size: 0.85rem;
    }
    .img-placeholder {
        height: 140px; /* Reduce image height to fit better */
    }
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
    }
    .projects-filter-section .container {
        overflow-x: hidden;
        padding-bottom: 0px;
    }
    .filter-controls {
        flex-wrap: wrap; /* Wrap over lines instead of scroll */
        justify-content: center;
        border-radius: 20px; /* Adapts to multi-line box shape */
        padding: 5px;
        width: 100%; /* Take full width to distribute evenly */
    }
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
