/* ========================================================= */
/*                   PORTFOLIO — RESPONSIVE                  */
/* ========================================================= */

@media (max-width: 768px) {

    /*******************************/
    /*        HERO PORTFOLIO       */
    /*******************************/
    .portfolio-hero {
        padding: 100px 0 60px;
        background-position: center top;
    }

    .portfolio-hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .portfolio-hero p {
        font-size: 13px;
        padding: 0 10px;
        max-width: 100%;
        height: auto;
    }
    /*******************************/
    /*    SECITON Mes creéations   */
    /*******************************/

    .portfolio-section-title {
        text-align: center;
        margin: 30px 0 40px;
    }

    .portfolio-section-title h2 {
        font-family: var(--font-secondary);
        font-size: 18px;
        font-weight: 500 ;
        color: var(--bleu-nuit);
        margin-bottom: 8px;
    }

    .portfolio-section-title p {
        font-size: 13px;
        font-weight: 300;
        color: var(--gris-anthracite);
    }



/* ========================================================= */
/* ============= CATEGORIES  CARROUSEL MOBILE ============== */
/* ========================================================= */

    /* Le wrapper contrôle le scroll */
    .portfolio-cat-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-bottom: 1rem;
    }

    .portfolio-cat-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Le container ne doit PAS limiter le carrousel */
    .portfolio-categories .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Transforme la grille en carrousel */
    .portfolio-cat-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        padding-bottom: 1rem;
        width: max-content;
    }

    /* Cartes en mode carrousel mobile */
    .cat-card {
        min-width: 240px;
        flex: 0 0 240px;
        height: 270px; 
        padding: 10px;
        scroll-snap-align: center;
    }

    .cat-card img {
        width: 200px;
        height: 150px;
        object-fit: cover;
    }

    .cat-card h3 {
        font-size: 16px;
    }

    .cat-card p {
        font-size: 13px;
    }

    /* Pagination mobile */
    .portfolio-cat-pagination {
        display: block;
        text-align: center;
        margin-top: 12px;
    }

    .portfolio-cat-pagination .dot {
        width: 10px;
        height: 10px;
        background: #cfd6ff;
        border-radius: 50%;
        display: inline-block;
        margin: 0 5px;
        transition: 0.3s;
    }

    .portfolio-cat-pagination .dot.active {
        background: var(--bleu-azur);
        transform: scale(1.3);
    }



    /*******************************/
    /*           FILTRES           */
    /*******************************/
    .portfolio-filters {
        margin: 40px 0 25px;
        padding: 0 10px;
    }

    .filter-btn {
        display: inline-block;
        margin: 8px 5px;
        padding: 6px 18px;
        font-size: 16px;
    }


    /*******************************/
    /*        GRID PROJETS         */
    /*******************************/
    .portfolio-grid {
        grid-template-columns: 1fr;    /* 1 colonne */
        gap: 35px;
        padding: 0 15px;
    }

    .portfolio-card {
        width: 100%;
        height: auto;
        padding: 22px;
    }

    .card-image {
        height: 250px;
    }

    .portfolio-card h3 {
        margin-top: 14px;
        font-size: 18px;
    }


    /*******************************/
    /*             CTA             */
    /*******************************/
    .portfolio-cta {
        margin-top: 50px;
        padding: 50px 20px;
        border-radius: 20px 20px 0 0;
    }

    .portfolio-cta h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .portfolio-cta p {
        font-size: 15px;
        padding: 0 20px;
    }

    .portfolio-cta .btn-primary {
        width: 75%;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}
