
@media (min-width: 2560px ) {
  .wrapper {
    .section { padding: 5% 45rem; }

        .autres-editeurs {
        padding-top: 0%
    } 
    .newsletter {
      .section { padding-left: 56rem; }
    }
  }
}

@media (max-width: 2560px) {
  .wrapper {
    .section { padding: 5% 32rem; }

        .autres-editeurs {
        padding-top: 0%
    } 
    .newsletter {
      .section { padding-left: 56rem; }
    }
  }
} 

@media (max-width: 1728px) {
  .wrapper {

    .section { padding: 5% 19rem; }
    
    .newsletter { 
        padding: 5% 8rem 5% 0; 

        .section { padding-left: 46rem; }
    }
  }
}

@media (max-width: 1440px) {
nav {
    #logo {
        width: 20vw;
        height: auto;
    }
}

    .wrapper {

    .section {
        padding: 5% 10rem;
    }           
        .newsletter {
            background-size: 26%;
            
            .section {
                padding-left: 30rem;
            }
        }

        .hero {
            h1 {
                width: 65%;
            }
        }
    }

    footer {
        .section {
            padding: 0 5rem;
        }
    }
}

@media (max-width: 1280px) {
    .wrapper {
        .section {
            padding: 5% 8rem;

            .book {
                &:nth-of-type(4) {
                    display: flex;
                }
            }
        }

        .single {
            .articlewrap {
                column-gap: 2rem;

                .article:last-of-type {
                    display: flex;
                }
            }
        }

        .newsletter {
            padding: 5% 3rem 5% 0;

            .section {
                padding-left: 26rem;
            }            
        }        

        .articlewrap {
            .article:last-of-type {
                display: none;
            }
        }
    }  
}

@media (max-width: 1024px) {
    nav {
        #logo {
            width: 30vw;
            height: auto;
        }    

        #nav1 {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            width: 100%;
                        z-index: 999;
            gap: 0;

            li {
                width: 100%;

                a {
                    width: 100%;
                    justify-content: flex-start;
                    padding: 2rem;
                }
            }

                .has-submenu {
        .submenu {
            max-height: 300px;
            opacity: 1;
            position: relative;

            li {
                a {
                    text-align: left;
                    padding-left: 4rem;
                }
            }
        }   
    }
        }

        .burger {
            display: flex;
        }

        .burger.active + #nav1 {
            display: flex;
        }     
    }

    .book {
        &:last-of-type {
            display: flex;
        }
    }

    .wrapper {
        .newsletter {
            background-image: none !important;

            .section {
                padding: 5% 8rem;
            }
        }

        .section {
            justify-content: space-between;

                .titre {
                    width: 100%;
                }

                .ligne {
                    width: 100%;
                }

                .titre {
                    margin: 1rem .5rem;
                }

                .livre {
                    flex-wrap: wrap;
                    justify-content: space-between;
                    gap: 0;

                    .infolivre {
                        width: auto;
                    }

                    .resume {
                        width: 60%;
                    }

                    .commande {
                        margin-top: 3rem;
                        padding-top: 3rem;
                        border-top: 2px solid var(--basalte);
                        width: 100%;

                        .qtytext {
                            margin-top: 1rem;
                        }

                        .single_add_to_cart_button {
                            width: 100%;
                        }
                    }                    
                }

                .block-posts {
                    flex-direction: column;

                    .posts {
                        width: 100%;
                    }

                    .sepPost {
                        display: block;
                    }

                    .sidebar {
                        width: 100%;
                        border: none;
                        padding-left: 0;
                        margin-left: 0;
                    }
                }
        }

        .hero {
            h1 {
                width: 80%;
            }
        }

        .resultats {
            .liste-resultats {
                .grid-resultats {
                    .result-card {
                        width: 44%;
                    }
                }
            }
        }

        .auteurs {
            .liste-auteurs {
                .grid-auteurs {
                    li {
                        width: calc((100% - 2 * 30px) / 3);
                    }
                }
            }
        }  
        
        .single {
            .contenu {
                padding-left: 5rem;
                padding-right: 5rem;
            }

            .articlewrap {
                .article:last-of-type {
                    display: none;
                }
            }
        }
    }

    .boutique-btn-small,
    .manuscrit-btn-small {
        display: block;
    }

    .boutique-btn,
    .manuscrit-btn {
        display: none;
    }

    .boutique-btn-small {
        background-color: var(--foretauvergne);
        color: var(--neigedesvolcans);
        padding: 1rem;
        transition: background-color .3s ease-in-out;
        display: block;
        white-space: nowrap;
    }

}

@media (max-width: 768px) {
    p {
        text-align: left;
    }

    nav {
        #logo {
            width: 40vw;
        }
    }

    .wrapper {

        .hero-carousel .prev,
        .hero-carousel .next {
            display: none;
        }

        .section {
            justify-content: center;

            .livre {
                justify-content: center;
                width: 100%;

                .infolivre {
                    width: 100%;
                    align-items: center;
                    order: 2;
                    margin-top: 3rem;
                    padding-top: 3rem;
                    border-top: 2px solid var(--basalte);

                    .img {
                        width: 48%;
                    }
                }

                .theme,
                .description {
                    width: 100%;
                }

                .resume {
                    width: 100%;
                }

                .commande {
                    order: 3;
                }
            }

            .propos {
                .apropos {
                    .bloc-auteur {
                        width: 100%;
                        border: none;
                        padding: 0;
                    }

                    .livres-auteur {
                        width: 100%;
                        padding-top: 5rem;
                        border-top: 2px solid var(--basalte);

                        .grid-livres {
                            flex-direction: column;

                            .memeauteur {
                                max-width: 100%;
                            }
                        }
                    }
                }
            }

            .detour {
                .grid-livres {
                    flex-direction: column;

                    .detourwrap {
                        max-width: 100%;

                        &:last-of-type {
                            display: block;
                        }
                    }
                }
            }

            .catproduct {
                .bioauteur {
                    .img {
                        height: auto;
                    }
                }
                .bookwrap {
                    .catwrap {
                        width: 100%;
                    }
                }

                .catalogue {
                    flex-direction: column;

                    .filters {
                        width: 100%;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 1rem;

                        .filtre {
                            width: calc(50% - .5rem);
                        }
                    }

                    .bookwrap {
                        width: 100%;
                        gap: 4rem;

                        .catwrap {
                            width: calc(50% - 2rem);
                        }
                    }
                }
            }

            .categories-block {
                flex-direction: column;
            }
                        
        }

        .resultats {
            .liste-resultats {
                .grid-resultats {
                    .result-card {
                        width: 100%;
                    }
                }
            }
        }

        .articlewrap {
            row-gap: 3rem;

            .article:last-of-type {
                display: flex;
            }
        }

        .hero {
            h1 {
                width: 100%;
                font-size: 3rem;
            }
        }

        .auteurs {
            .liste-auteurs {
                .grid-auteurs {
                    li {
                        width: calc((100% - 30px) / 2);
                    }
                }
            }
        }   
        
        .contact {
            .text {
                    .forminator-ui {
                        width: 100%;
                }
            }
        }

        .pageS {
            .text {
                .forminator-guttenberg {
                    .forminator-ui {
                        .forminator-row {
                            .forminator-field-group {
                                .forminator-all-group-copies {
                                    .forminator-grouped-fields {
                                        width: 100%;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        .single {
            .contenu {
                padding-left: 0;
                padding-right: 0;

                p {
                    text-align: justify;
                }

                h3 {
                    text-align: left;
                }
            }
                .articlewrap {
                    .article:last-of-type {
                        display: flex;
                    }
                } 
                
            .etiquettes {
                flex-wrap: wrap;

                .tags {
                    flex-wrap: wrap;
                }
            }
        }        

    }

    footer {

        .section {
            .elements {
                flex-direction: column;
                align-items: center;
                gap: 3rem;

                .infos,
                .contact,
                .legal {
                    width: 100%;
                    padding-bottom: 3rem;
                    border-bottom: 2px solid var(--neigedesvolcans);

                    &:last-of-type {
                        border-bottom: 0;
                    }

                    &:first-of-type {
                        padding-top: 3rem;
                    }
                }

                .infos {
                    img {
                        margin: 0 auto;
                    }

                    address {
                        text-align: center;
                    }
                }

                .contact {
                    p {
                        text-align: center;
                    }

                    .social {
                        justify-content: center;
                        column-gap: 3rem;
                    }
                }

                .legal {
                    text-align: center;

                    p {
                        text-align: center;
                    }
                }
            }
        }
    }
}

@media (max-width: 640px) {
    #nav4 {
        justify-content: center;
    }

    .wrapper {
        .section {
            padding: 8% 3rem;

            .livre {
                .infolivre {
                    .img {
                        img {
                            width: 16rem;
                        }
                    }      
                }
            }  

            .book {
                height: 690px;
                
                .livre {
                    height: 476px;

                    .info {
                        opacity: 1;
                        z-index: 99;
                        bottom: 3rem;
                        left: 0;
                    }
                }
            }
            
            
        }

        .newsletter {
            .section {
                padding: 8% 3rem;
            }
        }

        .single {
            .articlewrap {
                justify-content: space-between;
            }
        }
    }
}

@media (max-width: 425px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        padding-bottom: 2rem;

        .burger {
            position: absolute;
            top: 4rem;
            left: 2rem;
        }

        #logo {
            width: 60vw;
        }

        #nav3 {
            flex-basis: 100%;
            justify-content: center;
        }
    }

    #nav4 {
        flex-wrap: wrap;
        gap: 3rem;

        li {
            a {
                padding: .5rem 0;
                display: flex;
                justify-content: center;

                span {
                    display: none;
                }
            }              
        }

        .show {
            a {
                span {
                    display: block;
                }
            }
        }              
    }    

    .search {
        .search-wrapper {
            width: 80%;
        }

        .home {
            display: none;
        }
    }

    .wrapper {
        .hero-carousel {
            width: 100%;
            margin: 0;
            border-radius: 0;
            height: 350px;

            .carousel-track {
                height: 89%;
            }

            .carousel-nav {
                transform: initial;
                top: auto;
                bottom: 0;
                height: 50px;
                justify-content: center;
                padding: 0;

                button {
                    width: 100%;
                }

                .prev {
                    border-right: 5px solid var(--neigedesvolcans);
                }
            }

            .slide {
                padding: 0 2rem;

                h1 {
                    font-size: 2rem;
                }

                h2 {
                    font-size: 1rem;
                }

            }
        }

        .section {
            .livre {
                .infolivre {
                    .img {
                        width: 73%;

                        img {
                            width: -webkit-fill-available;
                        }
                    }
                }
            }

            .avis-section {
                .avis-grid {
                    flex-direction: column;
                    gap: 0;

                    .avis {
                        width: 100%;
                        margin-top: 3rem;
                        padding-top: 3rem;
                        border-top: 2px solid var(--basalte);

                        .text {
                            margin-top: 1rem;
                        }
                    }

                    .avis:first-of-type {
                        margin-top: 0;
                        padding-top: 0;
                        border-top: none;
                    }
                }
            }

            .catproduct {
                .catalogue {
                    .bookwrap {
                        flex-direction: column;

                        .catwrap {
                            width: 100%;
                        }
                    }
                }
            }
        }
        .newsletter {
            padding: 5rem 3rem;

            .section {
                padding: 8% 0;

                .text {
                    text-align: left;
                }

                form {
                    input {
                        width: 100%;
                    }
                }
            }
        }

        .carnet {
            .articlewrap {
                justify-content: center;
            }
        }   
             
        .auteurs {
            .liste-auteurs {
                .grid-auteurs {
                    li {
                        width: 100%;
                    }
                }
            }
        }  
    
    }

    .section,
    .newsletter {
        padding: 8% 2rem;
    }



    .hero {
        padding: 0;
        align-items: center;

        h1 {
            text-align: center;
        }
    }

    .text,
    p {
        text-align: left;
    }

    .notice {
        width: 100%;
    }

    footer {
        .section {
            padding: 0 3rem;
        }
    }
}

@media (max-width: 393px) {
    .wrapper {
        .hero {
            padding: 0 2rem;

            h1 {
                font-size: 2rem;
            }
        }
    }
}