/* ==========================================================================
   Projets Page Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* --- Page Header --- */
.page-hero {
    background-color: #F0F7F9;
    padding: 2.75rem 0 !important;
}

h1.page-hero__title,
.page-hero h1.page-hero__title {
    font-weight: 700 !important;
    font-size: 3.5rem;
    color: var(--ink);
    margin-top: 0;
}


/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-nav .breadcrumb-item,
.breadcrumb-nav .breadcrumb-item a {
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.5rem;
    color: #94A3B8;
    content: "/";
}


/* --- Filter Bar --- */
.filter-bar-section {
    padding: 0;
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.filter-bar {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    min-width: 0;
}

.filter-group--search {
    flex: 1.5 1 250px;
}

.filter-group label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.filter-group input,
.filter-group select {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    color: var(--ink);
    width: 100%;
    height: 52px;
    transition: all 0.2s ease;
}

.filter-group input:hover,
.filter-group select:hover {
    background-color: #F0F7F9;
    border-color: #156C88;
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23156C88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.25rem) center;
    padding-right: 3rem;
    cursor: pointer;
}

.filter-group input::placeholder {
    color: #94A3B8;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-search {
    background: #156C88;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 2.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    height: 52px;
    font-size: 0.9rem;
}

.btn-search:hover {
    background: #0e4e63;
    transform: translateY(-2px);
}

.btn-reset {
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 2.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    height: 52px;
    font-size: 0.9rem;
}

.btn-reset:hover {
    background: #000;
    transform: translateY(-2px);
}

/* --- Project Grid --- */
.projects-section {
    padding: 0 0 60px;
    margin-top: -45px;
    background-color: #fff;
    position: relative;
    z-index: 5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
    row-gap: 3.5rem;
}

/* --- Project Card --- */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card__image-wrapper {
    width: 100%;
    aspect-ratio: 407 / 297;
    overflow: hidden;
    border-radius: 20px;
    background: #f1f5f9;
    z-index: 1;
}

.project-card__image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.project-card__content {
    background: #fff;
    border-radius: 20px;
    margin: -60px 15px 0 15px;
    padding: 1.15rem 1.4rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.project-card__dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot--v1 { background-color: #00AEE7; }
.dot--v2 { background-color: #B2D235; } 
.dot--v3 { background-color: #E54E26; } 
.dot--v4 { background-color: #B44A9C; } 
.dot--v5 { background-color: #FDB940; } 

.project-card__label,
.project-card__label a {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-card__label a:hover {
    opacity: 0.8;
}

.project-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.project-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.project-card__title a:hover {
    color: var(--primary);
}

.project-card__description {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.project-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

body.volet-1 .project-card__link, 
body.volet-2 .project-card__link, 
body.volet-3 .project-card__link, 
body.volet-4 .project-card__link, 
body.volet-5 .project-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--current-volet-color); /*var(--primary);*/
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.project-card:hover .project-card__link {
    gap: 12px;
}


/* --- Pagination --- */
.pagination {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
    margin-left: -1px;
}

.page-btn:first-child {
    margin-left: 0;
    border-radius: 8px 0 0 8px;
}

.page-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.page-btn:hover {
    background: #F8FAFC;
    z-index: 1;
}

.page-btn.active {
    background: #fff;
    color: var(--primary);
    z-index: 2;
}


/* --- Responsive --- */
@media (max-width: 1200px) {
    .projects-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .filter-group--search, .filter-actions {
        grid-column: span 2;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 1.5rem 0 !important;
    }
    .page-hero__title {
        font-size: 2.75rem;
    }

    .pagination {
        margin-top: 4rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-group--search, .filter-actions {
        grid-column: span 1;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pagination {
        margin-top: 3rem;
        gap: 5px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        border-radius: 6px !important;
        margin-left: 0;
    }
}