/* ========================================
   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-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);
}

.skill-filter.active {
    background: var(--color-rust);
    border-color: 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);
}

/* 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;
    }
}

/* ============================================================
   REFONTE 2026 — alignement sur la direction éditoriale
   ============================================================ */

.projects-page {
    background: var(--paper);
}

/* Hero : le dégradé plein cadre est remplacé par un bloc typographique
   aligné à gauche, comme sur l'accueil. */
.hero-projects {
    min-height: auto;
    padding: clamp(5rem, 12vh, 8rem) 0 clamp(2rem, 5vh, 3rem);
    background: var(--paper);
    display: block;
}

.hero-projects::before,
.hero-projects::after {
    display: none;
}

.hero-projects .container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    text-align: left;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-transform: none;
    text-align: left;
}

.page-subtitle {
    margin-top: 1.25rem;
    max-width: 46ch;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    text-align: left;
}

/* Filtres : pastilles sobres, filet de séparation */
.filters-section {
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.filters-section .container,
.projects-grid-section .container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skill-filter.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* Cartes projet : plus de boîte flottante. Une grande image, un filet,
   du texte. Rien ne dépasse au survol, donc rien ne peut être rogné. */
.projects-grid-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: var(--paper);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: clamp(2rem, 5vw, 3.5rem);
    max-width: none;
}

.project-card-large {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.project-card-large:hover {
    transform: none;
    box-shadow: none;
}

.project-image {
    height: clamp(200px, 26vw, 280px);
    border-radius: 3px;
    background: var(--paper-warm);
    overflow: hidden;
}

.project-card-large .project-logo {
    max-width: 58%;
    max-height: 58%;
    transition: transform 0.5s var(--ease);
}

.project-card-large:hover .project-logo {
    transform: scale(1.04);
}

.project-info {
    padding: 1.5rem 0 0;
}

.project-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}

.project-category {
    margin-top: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-description {
    margin-top: 0.9rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.project-tags {
    margin-top: 1rem;
    gap: 0.4rem;
}

.tag {
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    font-size: 0.6875rem;
    color: var(--ink-faint);
}

.project-link {
    margin-top: 1.25rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.3s var(--ease);
}

.project-link:hover {
    background: none;
    box-shadow: none;
    transform: none;
    color: var(--accent);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* Appel final : même traitement que sur l'accueil (le dégradé pêche pleine
   largeur faisait tache à côté du reste). */
.cta-section {
    padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
    border-top: 1px solid var(--line);
    background: var(--paper);
    text-align: left;
}

.cta-section .container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.cta-text {
    margin: 0 0 2rem;
    max-width: 50ch;
    font-size: 1rem;
    color: var(--ink-soft);
}

.cta-button {
    padding: 0.95rem 1.9rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.8125rem;
    transition: background 0.3s var(--ease);
}

.cta-button:hover {
    background: var(--accent);
    transform: none;
    box-shadow: none;
}

/* Le conteneur est un flex centré à l'origine : sans cela le sous-titre
   reste au milieu alors que le titre est aligné à gauche. */
.hero-projects .container {
    align-items: flex-start;
    min-height: auto;
}

.hero-projects .page-subtitle {
    margin-left: 0;
    margin-right: 0;
}
