@media only screen and (max-width: 135px) {

    .btn-ctp {
        padding: 1.5em 0 !important;
    }

    /* #AnnonceMobile svg {
        margin-bottom: -2.5em !important;
        height: auto !important;
    } */
}

@media only screen and (max-width: 285px) {

    #logo {
        width: 6em !important;
        height: auto;
    }

    #navMobile svg {
        width: 1.5em !important;
        height: 1.5em !important;
    }

    header {
        padding: 2em 0.1em !important;
    }

    #headerMobile div article:nth-child(2) {
        gap: 0.5em !important;
        flex-wrap: wrap;
    }

    /* #AnnonceMobile svg {
        margin-top: 2.5em !important;
        height: auto !important;
    } */

    #AnnonceExplore article:is(:nth-child(1), :nth-child(2), :nth-child(4), :nth-child(5)) picture,
    #AnnonceExplore article:nth-child(3) picture:is(:nth-child(1), :nth-child(3)) {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    #paginnation article:nth-child(2) ul li img {
        width: 231px;
        height: 367px;
        object-fit: cover !important;
    }

    #paginnation article:nth-child(2) ul.centered {
        justify-content: center;
        flex-direction: column;
    }

    .none {
        display: none;
    }


    #Explore article:nth-child(2) {
        width: 90%;
        padding: 0.2em !important;
    }

    #Explore article:nth-child(2) picture {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #communaute article {
        background: #ffffff92;
        padding: 5em;

    }

    #communaute article picture button {
        padding: 1em !important;
    }
    #pop-up2 {
        margin-top: 8em !important;
    }
}

@media only screen and (max-width: 323px) {

    #navMobile {
        padding: 0 !important;
        padding-inline: 0 !important;
    }

    #navMobile section {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: wrap;
        gap: 1em;
        align-items: center;
    }

    #logo {
        width: 7em;
        height: auto;
    }

    #navMobile svg {
        width: 1.7em;
        height: 1.7em;
    }

    #headerMobile {
        padding: 1em !important;
        padding-bottom: 0 !important;
    }

    #headerMobile div {
        display: flex;
        flex-direction: column;
        gap: 1em;
        justify-content: space-between;
        margin: 0 !important;
        width: 100% !important;
        padding: 0.4em !important;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(1) {
        overflow: hidden !important;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) {
        gap: 0 !important;
    }

    #headerMobile div article {
        flex-wrap: nowrap !important;

    }

    #headerMobile div article:nth-child(1) picture:nth-child(1) i {
        padding-right: 0;
    }

    #sectionHeaderMobile section:nth-child(1) {
        display: flex;
        flex-direction: column-reverse !important;
    }

    .btn-ctp {
        padding: 1.5em 2em !important;
    }

    /* 
    #paginnation article:nth-child(2) i:first-child {
        margin-left: 0.2em !important;
        position: absolute;
        left: 0;
    }

    #paginnation article:nth-child(2) i:last-child {
        margin-right: 0.2em !important;
        position: absolute;
        right: 0;
    } */

    #paginnation article:nth-child(2) ul li img {
        width: 17%;
        height: 367px;
        object-fit: cover;
    }

    .noneplus {
        display: none !important;
    }

    #Explore article:nth-child(2) {
        width: 90%;
        padding: 0.2em !important;
    }
    #underline {
        padding: 0.3em;
        width: 23vw;
        background: #81BAC0;
        position: absolute;
        z-index: -9999;
        margin-top: -0.6em;
    }

    #underline2 {
        padding: 0.3em;
        width: 25.7vw;
        background: linear-gradient(156.6deg, #EF7A64 -8.29%, #FAC16F 101.3%);
        position: absolute;
        z-index: -9999;
        margin-top: -0.6em;
    }


}

@media only screen and (max-width: 344px) {
    #AnnonceMobile {
        padding-top: 2em;
    }

    #AnnonceMobile svg {
        margin-top: -4em !important;
    }
}

@media only screen and (max-width: 375px) {

    #AnnonceMobile {
        display: block;
        z-index: 999999;
        margin-top: -20em;
    }


    /* #AnnonceMobile svg {
        width: 100%;
        height: max-content;
        min-width: 100% !important;
        margin-bottom: -12em !important;
        filter: drop-shadow(-2px -2px 0px #31313140);
    } */

}

@media only screen and (max-width: 400px) {
    .btn-ctp {
        background: var(--primary);
        color: #fff;
        border-radius: 1em;
        padding: 1.5em 1.5em;
        font-weight: 700;
        cursor: pointer;
        text-wrap: wrap;
    }

    /* #AnnonceMobile svg {
        bottom: 0 !important;
        margin-bottom: -3em;
    } */

    #pop-up2 div button:nth-child(2) {
        background: none;
        color: var(--primary);
    }

    #Annoncepoint article:nth-child(2) {
        width: 100%;
        padding: 4em 1em;
    }

    #Annoncepoint article:nth-child(2) picture {
        width: 100% !important;
        padding: 1.5em 2em !important;

    }

    #temoignage article:nth-child(2) figure picture {
        display: flex;
        flex-direction: column-reverse;
        gap: 1.5em;
        padding: 0;
    }

    #temoignage article:nth-child(2) figure picture div {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
        padding: 0;
    }

}

@media only screen and (max-width: 430px) {
    nav {
        padding: 1.2em 0.2em;
    }

    nav section article:nth-child(2) {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1em;
        align-items: center;
        margin-left: 0;
    }

    header {
        padding: 2em 0.2em;
    }

    #headerMobile div article:nth-child(1) {
        display: none;
    }

    #headerMobile div article:nth-child(2) {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        gap: 2em !important;
    }

    #i-search {
        display: block;
    }

    #Annonce img:nth-child(2) {
        margin-top: 4.5em;
        margin-left: 1em;
        left: 0;
    }

    #Annonce img:nth-child(4) {
        right: 0;
        margin-top: -5em;
        margin-right: 1em;
        width: 6em;
        height: 15em;
    }

    #pop-up2 {
        margin-top: 0 !important;
    }

    #pop-up2 div p {
        font-size: 1.3em;
        font-weight: 700;
        text-align: center;
        text-wrap: wrap;
        width: 100% !important;
    }


    #AnnonceExplore article {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: left !important;
        align-items: center;
    }


    #AnnonceExplore article:nth-child(1) {
        width: 100%;
        justify-content: left !important;
        gap: 2.5em;
    }

    #AnnonceExplore article:nth-child(2) {
        width: 100%;
        gap: 2.5em;
    }

    #AnnonceExplore article:nth-child(4) {
        width: 100%;
        gap: 2.5em;

    }

    #AnnonceExplore article:nth-child(5) {
        width: 100%;
        justify-content: left !important;
        gap: 2.5em;
    }

    #AnnonceExplore article:is(:nth-child(1), :nth-child(2), :nth-child(4), :nth-child(5)) picture,
    #AnnonceExplore article:nth-child(3) picture:is(:nth-child(1), :nth-child(3)) {
        display: flex;
        flex-direction: row;
        text-align: left !important;
        justify-content: start !important;
        gap: 1.5em;
        background: #f5f5f5;
        width: 100%;
        padding: 1em;
        border-radius: 1em;
    }

    #AnnonceExplore article:nth-child(3) picture:nth-child(2) {
        gap: 2em;
    }

    #AnnonceExplore article:nth-child(3) picture:nth-child(2) p:nth-child(3) {
        width: 100%;
        line-height: 1.2em;
    }


    #AnnonceExplore article:is(:nth-child(1), :nth-child(2), :nth-child(4), :nth-child(5)) picture div p {
        text-align: start !important;
    }

    /* 
    #paginnation article:nth-child(2) ul {
        width: 100%;
    } */

    #Explore article:nth-child(2) {
        width: 90%;
        padding: 1em;
    }


}

@media only screen and (max-width: 450px) {

    /* #AnnonceMobile svg {
        bottom: 11em !important;
    } */

    #pop-up2 {
        margin-top: 5em;
    }
}

@media only screen and (max-width: 470px) {
    nav {
        padding: 1.2em 0.5em;
    }

    nav section article:nth-child(2) {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1em;
        align-items: center;
        margin-left: 0;
    }

    header {
        padding: 2em 0.5em;
    }

    #Annoncepoint article:nth-child(2) picture figure {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap !important;
        gap: 2em;
    }

    #Annoncepoint article:nth-child(2) picture {
        padding: 2em 2.5em;

    }

    .none {
        display: none !important;
    }
}

@media only screen and (max-width: 600px) {
    nav {
        background: #fff;
        padding: 1.2em 2em;
    }

    header {
        background: #f5f5f5;
        padding: 2em 2em;
    }

    #AnnonceExplore {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em !important;
    }

    #AnnonceExplore article {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }

    /* 
    #paginnation article:nth-child(2) i:first-child {
        margin-left: 1em;
        position: absolute;
        left: 0;
    }

    #paginnation article:nth-child(2) i:last-child {
        margin-right: 1em;
        position: absolute;
        right: 0;
    } */
}

@media only screen and (max-width: 640px) {
    #lastLiMobile {
        display: none !important;
    }

    #paginnation article:nth-child(2) ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        justify-content: space-between !important;
        align-items: center;
        width: max-content !important;
        height: auto !important;
        padding-top: 0.9em;
        overflow-x: visible !important;
    }
}

@media only screen and (max-width: 720px) {



    #pop-up {
        inset: 0;
        width: 85vw;
        top: 15%;
    }

    #pop-up div {
        align-items: center;
    }

    #pop-up div p {
        width: 85%;
        text-wrap: wrap;
    }

    #pop-up div button {
        text-wrap: wrap;
        width: 70%;

    }

    #paginnation article:nth-child(2) ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
        height: auto !important;
        padding-top: 0.9em;
        overflow-x: visible !important;
    }


    #paginnation article:nth-child(2) ul li {
        user-select: none;
        display: flex;
        flex-direction: column;
        gap: 1em;
        width: 100%;
        position: relative;
        margin-right: 23px;
        /* Parent must be relative for absolute child */
    }

    .none {
        display: none !important;
    }

    #Annonce article:nth-child(3) {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        gap: 3em;
        width: 80% !important;
        padding-top: 20em !important;
        text-align: center;
    }

    #Annoncepoint article:nth-child(1) {
        width: 90%;
    }

    .exploreMobile article:nth-child(2) picture {
        display: flex;
        flex-direction: row;
        gap: 1.5em;
        padding: 1.5em 0 !important;
        min-width: 100% !important;
    }
}


@media only screen and (max-width: 920px) {
    html {
        font-size: 0.8em;
    }

    nav section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2em;
        align-items: center;
    }

    nav section article:nth-child(2) picture {
        display: none;
    }

    nav section article:nth-child(3) {
        display: none;
    }

    #navDesktop {
        display: none;
    }

    #navMobile {
        display: block;
        box-shadow: 0px 2px 4px 0px #00000026 !important;
        padding: 0.5em 1.6em !important;
    }

    #navMobile svg {
        cursor: pointer;
    }

    #headerDesktop {
        display: none;
    }

    #headerMobile {
        display: block;
        background: #fff;
        box-shadow: 0px 2px 4px 0px #00000026 !important;
        padding: 0;
        padding-top: 1.5em;
    }


    #headerMobile div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 2em;
    }

    #article1 {
        padding: 0 !important;
        width: 100%;
    }

    #headerMobile div article:nth-child(1) {
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: center;
        margin: 0 auto;
    }

    #headerMobile div article:nth-child(1) picture {
        background: #F7F7F7;
        padding: 0;
        padding-right: 1em;
        border-radius: 0.9em;

    }
    #headerMobile div article:nth-child(1) picture form{
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        width: 100%;

    }

    #headerMobile div article:nth-child(1) picture input {
        padding: 1em;
        background: none;
        width: 100% !important;
    }

    #headerMobile div article:nth-child(1) picture i {
        font-size: 1.5em; 
        padding: 0.7em 0.8em;
        cursor: pointer;
    }


    #headerMobile div article:nth-child(1) picture:nth-child(2) {
        padding: 1.8em 0;
        border-radius: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap !important;
        gap: 1em;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        overflow-x: auto;
        background: #fff;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2)::-webkit-scrollbar {
        height: 0.3em;
        background: #f5f5f5;
        display: none;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1em;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article p {
        text-wrap: nowrap;
        font-weight: 400;
        cursor: pointer;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article i {
        font-size: 0.5em;
    }

    #pop-up {
        display: none;
    }

    #Explore article:nth-child(2) {
        width: 90%;
        padding: 0;
    }

    #Annonce article:nth-child(3) {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        gap: 5em;
        width: 60%;
        padding-top: 15em !important;
        text-align: center;
    }






}

@media only screen and (max-width: 930px) {
    html {
        font-size: 0.8em;
    }


    #navDesktop {
        display: none;
    }

    #navMobile {
        display: block;
        box-shadow: 0px 2px 4px 0px #00000026 !important;
        padding: 0.5em 1.6em !important;
    }

    #navMobile svg {
        cursor: pointer;
    }

    #headerDesktop {
        display: none;
    }

    #headerMobile {
        display: block;
        background: #fff;
        box-shadow: 0px 2px 4px 0px #00000026 !important;
        padding: 0;
        padding-top: 1.5em;
        padding-bottom: 1.5em !important;
    }


    #headerMobile div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 2em;
    }

    #article1 {
        padding: 0 !important;
        width: 100%;
    }

    #headerMobile div article:nth-child(1) {
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: center;
        margin: 0 auto;
    }

    #headerMobile div article:nth-child(1) picture {
        background: #F7F7F7;
        padding: 0;
        padding-right: 1em;
        border-radius: 0.9em;
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        width: 100%;
    }

    #headerMobile div article:nth-child(1) picture input {
        padding: 1em;
        min-width: max-content;
        background: none;
        width: 100%;
        font-size: 0.9em;
    }

    #headerMobile div article:nth-child(1) picture i {
        font-size: 1.5em;
        padding: 0.7em 0.8em;
        cursor: pointer;
    }


    #headerMobile div article:nth-child(1) picture:nth-child(2) {
        padding: 1.8em 0;
        border-radius: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap !important;
        gap: 1em;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        overflow-x: auto;
        background: #fff;
        display: none !important;
    }

    .fs-mini{
        font-size: 0.8em;
    }
    #headerMobile div article:nth-child(1) picture:nth-child(2)::-webkit-scrollbar {
        height: 0.3em;
        background: #f5f5f5;
        display: none;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1em;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article p {
        text-wrap: nowrap;
        font-weight: 400;
        cursor: pointer;
    }

    #headerMobile div article:nth-child(1) picture:nth-child(2) article i {
        font-size: 0.5em;
    }

    #MainHome #imgGallery {
        display: flex;
        flex-direction: row;
        row-gap: 2em !important;
        column-gap: 2em !important;
        padding: 1em 0.5em;
        /* width: 100vw !important; */
        margin: 0 auto;
        /* min-height: 30em !important; */
        overflow: hidden !important;
        justify-content: left !important;
        height: 58em;
                z-index: -999999;
    }

    .img picture img {
        width: 100%;
        min-width: 100%;
        /* background: red !important; */
        min-height: 85% !important;
        /* height: 100%; */
        display: flex;
        flex-direction: column;
        align-items: center;
        align-items: center;
        /* object-position: left !important; */
        /* scale: 1.2; */
        transform-origin: bottom left;
        object-position: center !important;
        /* object-fit: cover; */
        margin-top: -5em;
    }

    #Annoncepoint article:nth-child(2) picture a {
        padding: unset !important;
     
    }


    #MainHome article {
        z-index: -9999 !important;
    }

    #Annonce {
        display: none;
    }

    #AnnonceMobile {
        display: block;
        z-index: 999999;
        margin-top: -20em;
        background: #fff;
    }

    #pop-up {
        display: none !important;
    }

    #AnnonceMobile svg {
        width: 100%;
        height: max-content;
        min-width: 100% !important;
        position: absolute;
        margin-top: -5.5em;
        z-index: -2;
        object-fit: cover;
        padding: 0 !important;
        scale: 1;
        filter: drop-shadow(-2px -2px 0px #31313140);
    }

    #AnnonceMobile article:nth-child(3) div {
        display: flex;
        width: 85%;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 2em;
        justify-content: center;
        margin: 0 auto;
        align-items: center;
        background: #F0FBF7;
        border-radius: 1.5em;
        padding: 3em;
    }

    #articleAnnonce2 {
        margin-top: 4em;
    }

    #articleAnnonce2 img {
        position: absolute !important;
        display: none;
    }

    #articleAnnonce2 img:nth-child(1) {
        margin-top: -5.4em !important;
        margin-left: 7%;
        left: 0;
    }

    #articleAnnonce2 img:nth-child(3) {
        right: 0;
        margin-top: -10em;
        margin-right: 7%;
        width: 6em;
        height: 15em;
    }

    #Annoncepoint {
        gap: 5em;
    }

    #Annoncepoint article:nth-child(2) picture figure {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2em;
    }

    #Annoncepoint article:nth-child(2) {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3em;
        width: 100%;
        border-radius: 0;
    }


    #Annoncepoint article:nth-child(2) picture {
        width: 95%;
        background: none;
        box-shadow: none;
    }

    #Annoncepoint article:nth-child(2) picture:nth-child(1) {
        margin-bottom: 0;
    }


    #Annoncepoint article:nth-child(2) picture:nth-child(2) {
        margin-top: 0;
    }

    #AnnonceExplore article:nth-child(3) {
        display: flex;
        flex-direction: column;
        gap: 6em;
    }

    #AnnonceExplore {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    #info {
        width: 95%;
        margin-top: 0;
    }

    #AnnonceExplore {
        display: none;
    }

    .AnnonceExploreMobile {
        display: block !important;
    }

    .AnnonceExploreMobile article:nth-child(2) {
        background: none !important;
    }

    .AnnonceExploreMobile article:nth-child(2) picture {
        background: #fff !important;
        border-radius: 1.5em;
        padding: 2em 4em;
        width: 70%;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15) !important;
        display: flex;
        flex-direction: column;
        z-index: -9999;
        gap: 1em;
    }

    .active {
        position: absolute;
        right: 4%;
        margin-top: -3.8em;
        width: 10em;
        content: 10vh;
    }

    .voirPlus {
        box-shadow: 0px 2px 4px 0px #00000026;
        background: #fff;
        padding: 2em;
        font-weight: 700;
        display: flex;
        flex-direction: row;
        gap: 1em;
        align-items: center;
        justify-content: center;
        width: 70%;
        margin: 0 auto;
        border-radius: 1.5em;
        display: none;
    }

    .voirPlus i {
        font-size: 1.3em;
    }

    #AnnonceExplore article:nth-child(1) {
        margin-bottom: 0;
    }

    #AnnonceExplore article:nth-child(5) {
        margin-top: 0;
    }

    #paginnation article:nth-child(2) ul {
        height: 32em;

    }

    #Explore {
        display: none;
    }

    .exploreMobile {
        display: block !important;
    }

    .exploreMobile article:nth-child(2) {
        display: flex;
        flex-direction: row !important;
        align-items: start !important;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 2em !important;
        width: 70% !important;
        padding: 0 !important;
        margin-top: 2em !important;
    }

    .exploreMobile article:nth-child(2) picture {
        display: flex;
        flex-direction: row;
        gap: 1.5em;
        padding: 1.5em 0 !important;
        width: 21em !important;
    }


    #communaute article picture {
        width: 100% !important;
    }

    #communaute article picture p:nth-child(1) {
        width: 80vw !important;
        line-height: 1.5em;
    }

    #communaute article picture p:nth-child(2) {
        width: 80vw !important;
        line-height: 1.5em;
    }

    #communaute article picture p:nth-child(3) {
        width: 80vw !important;
        line-height: 1.5em;
    }

    #communaute article picture button {
        width: 70vw;
    }


    #temoignage article:nth-child(2) {
        display: flex;
        flex-direction: column !important;
        gap: 4em;
        justify-content: center;
        align-items: center;
    }

    #temoignage article:nth-child(2) figure {
        max-height: max-content;
        width: 90%;
    }
}