/* ========================================================= */
/*                INDEX — VERSION MOBILE (<768px)            */
/* ========================================================= */

@media (max-width: 768px) {

    /* ======================== */
    /*         HERO             */
    /* ======================== */

    .hero {
        padding: 40px 0;
        padding-top: 60px;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .hero-image img {
        max-width: 90%;
    }


    /* ======================== */
    /*        SERVICES          */
    /* ======================== */

    .section-title {
        font-size: 26px;
    }

    .services {
        padding: 40px 0;
        text-align: left; /* Alignement propre pour carrousel */
    }

    .services-grid {
        display: flex; /* Horizontal */
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Snap automatique */
        gap: 20px;
        padding-bottom: 10px;
        padding-left: calc((100vw - 280px) / 2);
        padding-right: calc((100vw - 280px) / 2);

    }

    .service-card {
        min-width: 240px;
        max-width: 240px;
        scroll-snap-align: center;
        flex-shrink: 0;
        border-radius: 14px;
        padding: 24px 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    }

    .service-card img {
        width: 50px;
        margin-bottom: 16px;
    }

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Masque scrollbar */
    .services-grid::-webkit-scrollbar {
        display: none;
    }


    /* PAGINATION CARROUSEL SERVICES */
    .services-pagination {
        display: flex;
        justify-content: center;
        margin-top: 14px;
        gap: 8px;
    }

    .services-pagination .dot {
        width: 9px;
        height: 9px;
        background: var(--gris-clair);
        border-radius: 50%;
        transition: 0.25s;
    }

    .services-pagination .dot.active {
        background: var(--bleu-azur);
        transform: scale(1.2);
    }

    /* ======================== */
    /*          ABOUT           */
    /* ======================== */

    .about {
        padding: 60px 0;
        text-align: center;
    }

    .about-container {
        flex-direction: column;
    }


    .about-image img {
        max-width: 90%;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .about-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .about-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 40px;
    }

    .about-btn .btn-secondary {
        width: 75%;
        text-align: center;
        padding: 12px 0;
        border-radius: 10px;
    }

    /* ======================== */
    /*        PORTFOLIO         */
    /* ======================== */

    .portfolio {
        padding: 60px 0;
        text-align: center;
    }

    .portfolio-grid {
        flex-direction: column;
        gap: 30px;
    }

    .portfolio-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
        padding-bottom: 30px;
    }

    .project-frame {
        height: auto;
        margin-top: 20px;
    }

    .project-frame img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }


    /* ======================== */
    /*      TESTIMONIALS        */
    /* ======================== */

    .testimonials {
        padding: 50px 0;
        text-align: center;
    }

    .testimonial-card {
        flex-direction: column;
        padding: 30px 20px;
        width: 100%;
    }

    .arrow-left, .arrow-right {
        display: none; /* option : cacher les flèches en mobile */
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
    }


    /* ======================== */
    /*           CTA            */
    /* ======================== */

    .cta {
        padding: 50px 20px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .cta a {
        width: 100%;
        display: block;
        text-align: center;
    }
}
