/* =========================================
   1. LAYOUT DE LA SECTION RÉALISATIONS
   ========================================= */
   .projects-section {
    padding-top: 210px; 
    width: 100%;
    min-height: 80vh;
}

.project-item-container {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.project-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 30px 35px;
    text-decoration: none;
    color: #999; 
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* --- REGROUPEMENT TEXTE --- */
.project-text-group {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.project-title {
    font-family: var(--font-main);
    font-size: 2.2vw; /* Fluide sur PC */
    font-weight: 500;
    margin: 0;
}

.project-category {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.2vw;
    margin: 0;
}

/* --- MINIATURE --- */
.project-thumb {
    width: 110px;
    height: 70px;
    overflow: hidden;
    margin-left: 40px;
    background: #f0f0f0;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item:hover {
    color: #000;
}

/* --- BARRE DE TRI --- */
.sorting-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 45px;
    width: 100%;
}

.sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-light);
    font-size: 16px;
    color: #000000;
    transition: color 0.3s ease;
}

.sort-btn.active, .sort-btn:hover {
    color: #000;
}

/* On cache pour GSAP */
.projects-section, .footer {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   2. SYSTÈME RESPONSIVE (AJUSTÉ)
   ========================================= */

/* --- A. TABLETTES (iPad Air / Pro - 1024px) --- 
   Ici on empêche le texte de devenir trop petit */
@media (max-width: 1024px) {
    .projects-section {
        padding-top: 150px;
    }

    .project-title, .project-category {
        font-size: 3.5vw; /* On agrandit un peu pour la tablette */
    }

    .project-item {
        padding: 25px 40px;
    }
}

/* --- B. SMARTPHONES (iPhone / Pixel - 480px) --- */
@media (max-width: 480px) {
    
    .projects-section {
        padding-top: 100px;
    }

    .sorting-nav {
        gap: 16px;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .sort-btn {
        font-size: 14px;
    }

    .project-item {
        padding: 20px 16px;
        justify-content: space-between; /* Titre à gauche, Image à droite */
    }

    .project-text-group {
        flex-direction: column; /* Empilé pour iPhone */
        gap: 4px;
        align-items: flex-start;
    }

    .project-title {
        font-size: 18px; /* Taille fixe nette */
        line-height: 1.2;
    }

    .project-category {
        font-size: 14px;
        opacity: 0.6;
    }

    .project-thumb {
        width: 80px;
        height: 50px;
        margin-left: 16px;
        flex-shrink: 0;
    }
}