@media screen and (max-width: 1320px) {
    #trail-section {
        flex-direction: column;
    }

    #right-trail-section {
        order: -1;
        width:80vw;
        margin-bottom:15px;
    }

    #left-trail-section {
        order: 1;
        margin-top:30px;
        margin-bottom:10px;
        padding:0px;
    }

    #trail-section{
        padding:25px 0px 25px 0px;
    }

    .link-trail{
        text-align:left;
    }
    
    #img-left-trail {
        width:80vw;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1, 1fr);
    }

    .first-grid {
        grid-area: 1 / 1 / 1 / 1;
        height:30vh;
    }

    .second-grid {
        grid-area: 1 / 1 / 1 / 1;
        height:30vh;
    }

    .third-grid {
        grid-area: 1 / 1 / 1 / 1;
        height:30vh;
    }

    .fourth-grid {
        grid-area: 1 / 1 / 1 / 1;
        height:30vh;
    }

    #img-left-trail{
        height:auto;
    }

    .text{
        line-height: 0px;
    }

    #optionsRando{
        width:100%;
        margin-top:-70%;
        margin-left:100%;
    }
}

@media screen and (max-width: 1250px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        margin-left:3%;
    }

    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        width:50%;
        margin-left:2%;
    }


    #left-introduction img{
        width:80%;
    }

    .smallbanner{
        height:40vh;
    }

    #right-introduction{
        width:90%;
        padding-right:5%;
    }

    #informations a{
        text-align:center;
    }

    /* SECTION OLD-NEWS --------------------------------------------------------------------------------------------------------- */
    .col.img-news{
        width:100%;
        align-items: center;
    }
    
    .img-news img{
        width:92%;
    }

    .text-old-news{
        width:100%;
    }

    .old-news-row{
        padding:0px;
        padding-bottom:15px;
        padding-top:15px;
    }
    
    .text-old-news p{
        width:90%;
    }
    
    .blue-button-old-news{
        padding:5px;
        width:calc(auto,5%);
        border-radius:5px;
    }

    /* SECTION ARTICLES EPINGLES ------------------------------------------------------------------------------------------------ */
    .col-pinned-news-1, .col-pinned-news-2 {
        margin-left:15px;
        margin-top:0px;
    }

    .col-pinned-news{
        width:33%;
    }

    .pagination{
        text-align:left;
        margin-right:8px;
        margin-bottom:5px;
    }
}

@media screen and (max-width: 1220px) {
    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        width:0px;
    }

    .smallbanner{
        height:30vh;
    }

    #right-introduction{
        width:80%;
        margin-left:10%;
        transform:translateY(23vh);
        margin-bottom:110px;
    }

    /* INTRODUCTION ------------------------------------------------------------------------------------------------------------- */
    #trails-block {
        flex-direction: column;
        align-items: center;
        padding:0px;
    }
    
    #left-trails-block {
        width: 100vw;
        margin-bottom: 20px;
        margin:0px;
        padding-left:8%;
    }

    /* FILTRES ------------------------------------------------------------------------------------------------------------------ */
    #filters{
        width:80%;
        margin-left:0px;
        padding:0px;
    }

    #right-trails-block{
        width:100%;
        margin-bottom:6%;
    }

    .trails-element{
        width:92%;
        margin-left:4%;
    }

    .selected-filters{
        width:80%;
        margin-left:5%;
        margin-top:14px;
    }

    #mountainFilters {
        display:none;
    }

    #difficultyFilters{
        display:none;
    }

    #localisation{
        display:none;
    }

    #options{
        display:none;
    }

    #like{
        justify-content: right;
        margin-right:16px;
    }

    .trails-element-infos-body label{
        align-items: start;
    }

    .trails-element-infos-footer-icons{
        align-items:start;
    }

    #distDuree, #lieuRando, #infosHead{
        display:flex;
        flex-direction:row;
    }

    #distDuree{
        margin-bottom:20px;
    }

    #lieuIco{
        margin-top:5px;
    }

    .trails-element-infos-footer-icons p{
        margin:0px;
    }

    #optionsRow{
        display:flex;
        flex-direction:row;
    }

    #optionsRowNiv2{
        display:flex;
        flex-direction:row;
    }
}

@media screen and (max-width: 1145px) {
    .card__content {
        display: none;
    }

    .card{
        height:20vh;
    }
}

@media screen and (max-width: 1120px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        margin-left:2%;
    }

    /* SECTION METEO ---------------------------------------------------------------------------------------------------------- */
    .rectangle-hours {
        display:none;
    }
    
    /* SECTION CONTACT ---------------------------------------------------------------------------------------------------------- */
    .form-group {
        flex-direction: column;
        align-items: start;
        margin-bottom:0px;
    }

    .form-group input[type="email"]{
        width:100%;
        margin:0px;
    }

    #nom, #prenom {
        width: auto;
        margin: 0px;
    }

    #prenom {
        margin-top: 16px;
    }

    .row-contact {
        flex-direction: column-reverse;
        align-items: center;
    }

    .img-contact{
        margin-bottom:0px;
        padding-left:0px;
        margin-top:34px;
        margin-bottom:15px;
        width:100%;
    }

    .form-group input[type="text"]{
        font-size: 14px;
    }

    .form-group input[type="email"]{
        font-size: 14px;
    }

    .form-group textarea{
        font-size: 14px;
    }

    .share-buttons{
        margin-bottom:15px;
    }

    /* ____________________________________________________ PAGE ACCOUNT ________________________________________________________ */

    /* SECTION COMPTE ----------------------------------------------------------------------------------------------------------- */
    .table{
        width:90%;
    }

    .col .tab{
        width:auto;
    }

    .tab{
        margin-left:10%;
        width:80%;
        margin-top:0px;
        margin-bottom:5px;
    }

    #titre_account{
        text-align: left;
        margin-bottom:0px;
    }

    .account{
        margin-top:40px;
    }

    .logout{
        margin-bottom:30px;
        margin-top:0px;
    }

    .informations-account{
        padding:0px;
        margin-left:10%;
    }

    .col .informations-account{
        padding-left:0px;
        margin-left:10%;
    }

    .etiquette-active p{
        margin-top:5px;
        margin-bottom:5px;
        padding:5px;
        text-align: center;
        font-size:14px;
    }

    .etiquettes{
        padding:10px 0px;
        font-size: 14px;
    }

    .etiquettes a{
        font-size:14px;
    }

    .etiquette-active{
        padding:0px;
    }

    #deleteForm{
        margin-top:0px;
    }

    #deleteForm input{
        font-size:14px;
        background-color: #edecec;
        margin-bottom:5px;
        margin-top:5px;
        padding:12px 0px;
    }

    #tab{
        padding:10px 0px;
    }

    #tab span{
        font-size:14px;
        margin-top:-20px;
        margin-left:0px;
    }

    .bx-exit{
        margin-left:0px;
    }

    table tr td{
        display: block;
        width:auto;
        border-bottom:none;
        border-top:none;
        align-items: center;
    }

    table tr{
        border:solid 1px #CCC;
    }

    td{
        padding:10px 10px;
    }

    .mobile-blue-button{
        margin-top:0px;
    }

    .photo-profil{
        transform:translateY(0px);
        align-items: center;
    }
    
    .upload-profil{
        transform:translateY(0px);
    }

    #deco_mobile{
        padding-top:20px;
    }

    /* LOGIN -------------------------------------------------------------------------------------------------------------------- */
    .mobile-only {
        display: inline-block;
    }

    #right-top-login-section{
        padding:0px;
        border:none;
        display:none;
    }

    #left-top-login-section{
        padding:0px;
        display:block;
    }

    #register-form{
        width:80vw;
    }

    #login-form{
        width:80vw;
    }
    
    #password-info{
        margin-left:77%;
        margin-top:-37px;
    }

    #button-return{
        width:80vw;
    }

    #password-info{
        display:none;
    }

    #registerFormButton{
        background-color: #323F45;
    }

    /* RANDO INDIVIDUELLE ------------------------------------------------------------------------------------------------------- */
    #optionsRando{
        width:100%;
        margin-top:0px;
        margin-left:0px;
    }

    .text{
        line-height:26px;
        width:80vw;
    }

    #right-trail-section .text, #optionsRando h4{
        text-align: left;
    }

    #presentation {
        background-image: url(../imgs/accueil/header/2.webp);
    }
}

@media screen and (max-width: 920px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        margin-left:5%;
    }

    /* FILTRES ------------------------------------------------------------------------------------------------------------------ */
    .trails-element {
        flex-direction: column;
    }
    
    .trails-container {
        display: flex;
        flex-direction:row;
        flex-wrap: wrap;
        background-color:#E0EEB9;
        justify-content: center;
        align-items: center;
    }
    
    .trails-element-button {
        flex-basis: 100%;
        margin: 10px 0;
    }

    .trails-element-picture,
    .trails-element-infos,
    .trails-element-button {
        flex: none;
        width: auto;
        margin-left: 0;
    }

    .trails-element-picture {
        flex: 1 1 100%;
        text-align: center;
        width: 90vw;
    }
    
    .trails-element-picture img {
        width: 100%;
        height: auto;
        max-width: 250px;
        height: auto;
    }

    .trails-element-infos-head{
        padding-top:0px;
    }

    .trails-element-button {
        display: flex;
        align-items: center;
    }
    
    .trails-element-button a,
    .trails-element-button span {
        margin-right: 10px;
    }

    /* RANDO INDIVIDUELLE ------------------------------------------------------------------------------------------------------- */
    #optionsRando{
        width:100%;
        margin-top:0px;
        margin-left:0px;
    }

    .right-trail-section .row{
        flex-direction:row;
    }

    .caption{
        display:none;
    }
}

@media screen and (max-width: 768px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        margin-left:8%;
    }

    /* GENERAL ------------------------------------------------------------------------------------------------------------------ */
    h1 {
        font-size: 30px;
        line-height:36px;
        text-align:center;
    }

    .big{
        font-size:40px;
        text-align:center;
    }

    .milieu-bannerGreen h1{
        font-size:30px;
        line-height: 36px;
    }
    
    .milieu-bannerOrange h1{
        font-size:30px;
        line-height: 36px;
    }

    h2 {
        font-size: 22px;
        text-align:center;
    }

    h3 {
        font-size: 20px;
        text-align:center;
    }

    h4 {
        font-size: 18px;
        text-align:center;
    }

    h5 {
        font-size: 16px;
        text-align:center;
    }

    h6 {
        font-size: 14px;
        text-align:center;
    }
    
    p,li, ul, a, label{
        font-size: 14px;
        text-align:justify;
        line-height: 24px;
    }
    
    #favoris{
        display:flex;
        flex-direction:column;
    }

    .history .row{
        display: flex;
        flex-direction: column;
    }

    .milieu-bannerGreen .blue-button{
        font-size:16px;
        padding:10px;
    }

    .milieu-bannerOrange .blue-button{
        font-size:16px;
        padding:10px;
    }

    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        width:0px;
     }

    .smallbanner{
        height:30vh;
    }

    #right-introduction{
        width:80%;
    } 

    /* SECTION FOOTER ----------------------------------------------------------------------------------------------------------- */
    #footer-links{
        flex-direction: column;
        align-items:center;
    }

    #footer-links a{
        line-height: 14px;
    }

    /* ____________________________________________________ PAGE ACCOUNT ________________________________________________________ */

    /* SECTION COMPTE ----------------------------------------------------------------------------------------------------------- */
    #deco_mobile{
        padding-top:0px;
        padding-left:5px;
    }

    /* SECTION FAVORIS ---------------------------------------------------------------------------------------------------------- */
    .fiche-icons, .texte-old h3, .texte-old p, .img-old img, .texte-old{
        width:100%;
        text-align:center;
    }

    .fiche-icons{
        height:auto;
        width:45%;
    }

    #favorite{
        margin-bottom:10px;
    }

    /* ____________________________________________________ PAGE ACCUEIL ________________________________________________________ */

    /* SECTION GALERIE ---------------------------------------------------------------------------------------------------------- */
    .grid-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery{
        height:200px;
    }
    
    /* SECTION SLIDER ----------------------------------------------------------------------------------------------------------- */
    #card-slider{
        flex-direction:column;
        width:100%;
        gap:10px;
        align-items: start;
    }

    .card img{
        width:100%;
        height:100%;
    }

    .card{
        width:80vw;
    }

    /* SECTION PRESENTATION ----------------------------------------------------------------------------------------------------- */
    #p-presentation{
        width:80vw;
        text-align:justify;
        margin-bottom:30px;
    }

    #top-presentation{
        margin-top:15px;
    }

    #search-form{
        flex-direction: column;
    }

    #search-bar{
        width:70vw;
        padding:20px 5vw 20px 5vw;
        margin-top:25px;
        border-radius:5px;
    }

    #search-form button{
        width:80vw;
        padding:10px;
        border-radius:5px;
    }

    #bottom-presentation{
        width:80vw;
    }

    #top-presentation{
        width:80vw;
    }

    /* SECTION SERVICES --------------------------------------------------------------------------------------------------------- */
    #right-services{
        width:auto;
    }

    #right-services p{
        text-align:justify;
        line-height:24px;
    }

    #right-services h2{
        text-align:center;
    }

    #right-services a{
        font-size:14px;
        padding:0px;
        padding-top:10px;
        padding-bottom:10px;
        margin-top:0px;
        text-align:center;
    }

    #right-services .blue-button{
        width:100%;
    }

    #left-services{
        width:100%;
        margin-bottom:15px;
    }

    #left-services img{
        width:80%;
        margin-left:5%;
    }
    
    .content .row{
        flex-direction: column;
    }
    /* SECTION SLIDER ----------------------------------------------------------------------------------------------------------- */
    #bottom-mountains{
        flex-direction: column;
    }

    .accordion{
        margin-top:10px;
        display: flex;
        flex-direction: column;
        height:90vh;
    }

    .tab-montains{
        width:100%;
        margin-bottom:5px;
    }

    /* ____________________________________________________ PAGE A PROPOS _______________________________________________________*/

    /* SECTION HISTORY ---------------------------------------------------------------------------------------------------------- */
    .texte-history{
        width:100%;
    }
    
    .texte-history p{
        text-align:justify;
    }

    .texte-history h2{
        text-align: center;
    }

    .texte-history a{
        width:100%;
        text-align:center;
    }

    .blue-button{
        padding-top:10px;
        padding-bottom:10px;
        padding-left:0px;
        padding-right:0px;
    }

    .gallery-history-1{
        align-items: center;
        margin-top:30px;
        width:100%;
    }

    .gallery-history-1 img{
        width:100%;
    }

    /* ____________________________________________________ PAGE ACTUALITES _____________________________________________________*/

    /* SECTION NOUVEAUTES ------------------------------------------------------------------------------------------------------- */
    .parent{
        grid-template-columns: repeat(1,1fr);
        grid-template-rows: repeat(3,1fr);
    }
    
    .div-last-news-0{
        grid-area: auto;
    }

    .description-singleNews p{
        text-align:justify;
    }

    .div-last-news-1{
        grid-area: auto;
    }

    .div-last-news-2{
        grid-area: auto;
    }

    .container .row{
        flex-direction:column;
    }

    .contenu-singleNews h2{
        text-align:left;
    }

    .fiche-icons a{
        padding-left:10px;
        padding-right:10px;
        text-align:center;
    }

    .fiche-icons span{
        text-align: center;
    }

    .texte-old h3, .texte-old p{
        text-align:left;
    }

    /* SECTION ARTICLES EPINGLES ------------------------------------------------------------------------------------------------ */
    .col-pinned-news-1, .col-pinned-news-2 {
        margin-left:0px;
        margin-top:15px;
    }

    .col-pinned-news{
        width:auto;
    }

    /* ____________________________________________________ PAGE ACTUALITE INDIVIDUELLE _________________________________________ */

    /* SECTION ARTICLE ---------------------------------------------------------------------------------------------------------- */
    .description-singleNews{
        padding:0px;
        order:1;
        width:100%;
    }

    .img-singleNews {
        order: 2;
        width:100%;
    }

    .contenu-singleNews{
        padding-top:10px;
    }

    .date-singleNews{
        margin-top:0px;
    }

    /* ____________________________________________________ PAGE ACCOUNT ________________________________________________________ */

    /* SECTION COMPTE ----------------------------------------------------------------------------------------------------------- */
    #titre_account{
        text-align:center;
    }

    #tab span{
        font-size:14px;
        margin-top:-2px;
        margin-left:14px;
    }

    .bx-exit{
        margin-left:-10px;
    }

    /* ____________________________________________________ PAGE RANDO INDIVIDUELLE _____________________________________________ */

    /* FILTRES ------------------------------------------------------------------------------------------------------------------ */   
    .filters .row{
        display: flex;
        flex-direction: row;
    }

    /* RANDO INDIVIDUELLE ------------------------------------------------------------------------------------------------------- */
    #optionsRando{
        width:100%;
        margin-top:0px;
        margin-left:0px;
    }

    .right-trail-section .row{
        flex-direction:row;
    }

    .buttons-cards a{
        text-align: center;
    }

    .appreciated-description{
        text-align: center;
    }

    .cards-appreciated img{
        height:20vh;
    }

    .cards-appreciated p{
        text-align: center;
    }

    #top-bottom-comments p{
        text-align:center;
    }

    #left-comments-section img, #notation-span p, #commentImg{
        display:none;
    }

    #form-comments-section{
        gap:0px;
    }

    .tab-content{
        padding:25px 0px 25px 40px;
    }
}

@media screen and (max-width: 745px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        margin-left:5%;
    }

    #titrePresentation{
        transform:translateY(130%);
    }
}

@media screen and (max-width:585px){
    #titrePresentation{
        transform:translateY(86%);
    }
}

@media screen and (max-width:500px){
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        margin-left:0%;
    }
}

@media ((max-width:500px) and (max-height: 700px)) {
    /* INTRODUCTION ------------------------------------------------------------------------------------------------------------- */
    #right-introduction {
        transform: translateY(200px);
    }
}


@media screen and (min-width: 501px) and (max-height: 700px) {
    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        width:80%;
        margin-left:10%;
        transform:translateY(380px);
        margin-bottom:30px;
    }

    .smallbanner{
        height:25vh;
    }

    #right-introduction{
        width:80%;
        margin-left:10%;
        transform: translateY(-140px);
    }

    /* GALERIE ------------------------------------------------------------------------------------------------------------------ */
    .image-gallery{
        height:150px;
    }
}

@media screen and (max-width: 445px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        margin-left:0%;
    }

    #weather__widget{
        width:170px;
    }

    #content-trail-2{
        padding:0px;
        padding-top:10px;
        padding-bottom:10px;
    }

    /* RANDONNEES -------------------------------------------------------------------------------------------------------------- */
    #optionsRando .row .row{
        flex-direction:row;
        justify-content: start;
    }
    
    #randoOptionsLigne{
        flex-direction:column;
    }

    .icons-element-body-line{
        gap:0px;
    }

    #link{
        flex-direction:row;
    }

    #duree{
        margin-right:15px;
    }

    #img-left-trail{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .first-grid{
        grid-area : 1 / 1 / 1 / 1;
    }

    .second-grid{
        grid-area : 1 / 1 / 1 / 1;
    }

    .third-grid{
        grid-area : 2 / 2 / 2 / 2;
    }

    .fourth-grid{
        grid-area : 2 / 2 / 2 / 2;
    }

    #infoTrail .row{
        flex-direction:column;
    }

    #buttons-trail{
        padding:0px;
        padding-bottom:5px;
    }

    .tab-content h3{
        width:80vw;
    }

    #left-comments-section, #notation-span p, #commentImg{
        display: none;
    }

    #notation-span{
        margin-top:15px;
    }

    #span-comments .row{
        flex-direction:column;
    }

    .submit-comments{
        width:100%;
        margin-top:0px;
    }

    #appreciated .row{
        flex-direction:column;
    }

    .cards-appreciated{
        width:80vw;
    }

    .cards-appreciated img{
        height:20vh;
    }

    .buttons-cards a{
        text-align: center;
        padding:10px 0px 10px 0px;
        margin-bottom:-20px;
    }

    .appreciated-description{
        margin-bottom:-10px;
    }

    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        transform:translateY(395px);
        width:90%;
        margin-left:5%;
        margin-bottom:45px;
    }

    .smallbanner{
        height:25vh;
    }

    #right-introduction{
        transform: translateY(-120px);
    }

    #introduction{
        flex-direction: column;
    }

    /* SECTION RANDONNEES PAGE -------------------------------------------------------------------------------------------------- */
    #optionsRow{
        display:flex;
        flex-direction:column;
    }

    #optionsRowNiv2{
        display:flex;
        flex-direction:row;
        justify-content:start;
        padding-left:0px;
    }

    .text-rating{
        flex-direction:column;
        justify-content:start;
        align-items:start;
        margin-bottom:10px;
    }

    .star-trail-list{
        margin-left:0px;
    }

    #like{
        align-items:start;
        margin-right:0px;
    }

    .trails-element-infos{
        width:85%;
    }

    .trails-element-picture img{
        max-width:80%;
    }

    .selected-filters{
        width:100%;
    }

    .span.bubble-post-filters{
        padding:5px 24px;
    }

    /* FAVORIS ------------------------------------------------------------------------------------------------------------------ */
    .simple-oldTrails .row{
        flex-direction: column;
    }

    .texte-old h3, .texte-old p{
        text-align: center;
    }

    .fiche-icons{
        width:100%;
    }

    #tab .bx-exit{
        margin-left:0px;
    }

    #tab span{
        margin-left:5px;
    }
}

@media screen and (max-width: 360px) {
    /* SECTION WEATHER ---------------------------------------------------------------------------------------------------------- */
    .weather-grid {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
        margin-left:0%;
    }

    #weather__widget{
        width:auto;
    }

    /* SECTION SMALL BANNER ----------------------------------------------------------------------------------------------------- */
    #left-introduction{
        width:90%;
        margin-left:5%;
        transform:translateY(440px);
        margin-bottom:45px;
    }

    .smallbanner{
        height:25vh;
    }

    #right-introduction{
        transform: translateY(-90px);
    }
}
