
@media screen and (max-width: 852px) {
    /* 1. Supprime le défilement vertical sur le body */
    html, body {
        height: auto;
        min-height: 100%;
        margin: 0;
        padding: 0;
    }
    .main {
        margin-top: 60px; /* hauteur de la nav sur mobile */
    }

     .page-link {
        min-height: 100vh;
        margin: 0;
        padding: 0;
        background-size: cover;
        background-position: 50%;
    }







    .burger.open {
    transform: translateX(0px);
    }


    .nav {
        min-height: 60px; 
        padding: 10px;
        z-index: 3000;
    }

    .burger {
        top: 15px;
        right: 20px; 
        width: 60px;
        height: 50px;

    }




    .menu {
        margin-top: 50px; /* Décale pour éviter le burger */
        padding: 10px;
    }

    .menu button {
        font-size: 21px;
        text-align: right;
    }

    .menu-wrapper {
        box-shadow: none;
        filter: invert(1); 
        width: 100%; /* Menu plein écran */
        max-width: 100%; /* Largeur max pour éviter qu'il soit trop large */
        z-index: 2999;
    }

    /* 3. Ajuste les sections principales */

    /* 4. Ajuste les images et le slider */
    .menu-image {
        height: 300px;
         /* Réduit la hauteur de l'image du menu */
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .hero-text-0, .hero-text-1 {
        margin-top: 50px;
        margin-bottom: -20px;
    }

    .hero-text-0 {
        margin-left: 10px;
    }

    .hero-text-1 {
        margin-right: 10px;
    }

    .hero-text-0 h2, .hero-text-1 h2 {
    font-size: 18px;  /* taille du titre */
    line-height: 1.2; /* hauteur de ligne */
    margin-bottom: 20px;
    }


    .hero-text-0 p, .hero-text-1 p {
      font-size: 12px; /* taille du paragraphe */
      line-height: 1.6;
      margin-bottom: 90px;
    }

    .slider {
        max-width: 80%; /* Slider plein écran */
        margin-bottom: 0px;
        margin-top: 60px;
    }

    .choice {
        margin-top: 50px;
        margin-bottom: 40px;
    }
    /* 8. Cache les éléments non essentiels si besoin */
    .choice img {
        width: 125px; /* Réduit la taille des images */
    }

    .footer {
        top: -20px;
        margin-bottom: -20px;
        padding: 10px;
        height: 20px;
    
    }


    .footer-btn {
        flex-direction: row;
        gap: 20px;
        /* Pas de decalage : centrage identique au grand ecran. */
    }

    .contact-btn {
        font-size: 17px;
    }


    /* 5. Ajuste les grilles de produits */
    .item-page {
        top: 20px;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes max sur mobile */
        max-width: 95%;
        margin: 20px auto;
        margin-bottom: 70px;
    }

    .item-page1 {
        justify-content: center;
        left: 0;
    }

    .item-page1 img {
        width: calc(50% - 10px); /* 2 images par ligne */
    }

    /* 6. Ajuste les popups */
    .popup-content {
        width: 95%; /* Popup presque plein écran */
        max-width: none;
        padding: 15px;
    }

    .item-popup {
        max-width: 250px;
        padding: 3px;
        
    }

    .slider-arrow {
        font-size: 10px;
        height: 80px;
        font-weight: 1000;
    }

    .slider-arrow.prev {
    left: 0px;
    }

    .slider-arrow.next {
        right: 0px;
    }



}