/* ========================================
   PAGE PROJETS - Styles
======================================== */

.projects-page {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        var(--color-cream) 0%,
        #FFF9F5 50%,
        var(--color-cream) 100%
    );
    padding-top: 0;
}

/* Hero Section */
.hero-projects {
    padding: 10rem 3rem 6rem;
    text-align: center;
    background: linear-gradient(
        120deg,
        #fff9f5 0%,
        #f5d5c0 40%,
        #b28069 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-projects .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-brown, #6E321D);
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 6rem 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Project Cards */
.project-card-large {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(61, 40, 32, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        135deg,
        var(--color-peach) 0%,
        var(--color-coral) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-number {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.project-logo {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-info {
    padding: 3rem;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-category {
    font-size: 0.95rem;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--color-cream);
    color: var(--text-medium);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-coral) 100%);
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-orange) 100%);
    transform: translateX(4px);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 3rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--color-peach) 0%,
        var(--color-coral) 100%
    );
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
    border: 1px solid rgba(61, 40, 32, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(61, 40, 32, 0.15);
}



/* Responsive */
@media (max-width: 768px) {
    .hero-projects {
        padding: 6rem 1.5rem 2rem;
    }

    .hero-projects .container {
        min-height: auto;
    }

    .projects-grid-section {
        padding: 3rem 1.5rem;
    }

    .projects-grid {
        gap: 2rem;
    }

    .project-image {
        height: 150px;
    }

    .project-number {
        font-size: 5rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .project-category {
        margin-bottom: 1rem;
    }

    .project-description {
        display: none;
    }

    .project-tags {
        display: none;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* ========================================
   SYSTÈME DE FILTRAGE
======================================== */

.filters-section {
    padding: 2rem 3rem;
    background: var(--color-cream);
    border-bottom: 1px solid rgba(61, 40, 32, 0.08);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group.filter-skills {
    flex: 1;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-medium);
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: white;
    border: 1px solid rgba(61, 40, 32, 0.15);
    border-radius: 8px;
    cursor: pointer;
    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='%233D2820' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-rust);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 72, 51, 0.1);
}

.skill-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-filter {
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-medium);
    background: white;
    border: 1px solid rgba(61, 40, 32, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-filter:hover {
    border-color: var(--color-rust);
    color: var(--text-dark);
}

.skill-filter.active {
    background: var(--color-rust);
    border-color: var(--color-rust);
    color: white;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.reset-filters {
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--color-rust);
    background: transparent;
    border: 1px solid var(--color-rust);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.reset-filters:hover {
    background: var(--color-rust);
    color: white;
}

/* Animation des cartes filtrées */
.project-card-large {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card-large.hidden {
    opacity: 0;
    transform: scale(0.95);
}

.project-card-large.visible {
    opacity: 1;
    transform: scale(1);
}

.skills-select-mobile {
    display: none;
}

/* Responsive filtres */
@media (max-width: 1024px) {
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group.filter-skills {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .filters-section {
        padding: 1.5rem;
    }
    
    .skill-filters {
        display: none;
    }
    
    .skills-select-mobile {
        display: block;
        width: auto;
        min-width: 200px;
        max-width: 300px;
    }
    
    .filter-group.filter-skills {
        flex-direction: column;
        gap: 0.5rem;
        width: auto;
    }
    
    .filter-group.filter-skills .filter-label {
        margin-bottom: 0;
    }
}
