@media screen and (max-width: 1700px) and (min-width: 1400px) {
    .block-offre-services .offre {
        width: 30%;
    }

    .block-offre-services .services {
        width: 70%;
    }

    .block-offre-services .services .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .block-offre-services .service {        
        height: 123px;
        padding: 15px 5px 30px 85px;
    }

    .block-offre-services a:nth-child(4) .service {
        background-color: #6FC3EC;
    }

    .block-offre-services a:nth-child(5) .service {
        background-color: #3BB1D6;
    }

    .block-offre-services a:nth-child(6) .service {
        background-color: #A4D6EF;
    }
}

@media screen and (max-width: 900px) and (min-width: 500px) {
    /* PAGE ACCESSOIRES */
    #block-views-block-accessoires-page .view-content {
        flex-direction: column;
        margin: 0 auto;
        width: max-content;
    }
}

/*////////////////////////////////////*/
/*//////////// MIN WIDTH ////////////*/
/*//////////////////////////////////*/

@media screen and (min-width: 1200px) {
    #recherche-vehicules .hidden-mobile {
        display: block !important;
    }
    header .block-superfish > ul > li a {
        padding: 5px 28px;
        font-size: 17px;
    }
}

@media screen and (min-width: 1100px) {
    body.padding-topped {
        padding-top: 130px !important;
    }

    header.sticky-desktop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        height: 110px;
        transform: translateY(-140px);
    }

    ul.sf-menu .sf-sub-indicator {
        right: 25px;
        top: 13px;
        font-size: 10px;
    }

    header.sticky-desktop #block-citroen-moreac-theme-logoheader {
        top: 0;
        max-width: 85px;
    }

    header.sticky-desktop #superfish-main {
        margin-top: 10px;
    }

    header.sticky-desktop #block-telephone-header {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
    }

    header.sticky-desktop.open {
        -webkit-transition: all 500ms ease-in-out;
        -moz-transition: all 500ms ease-in-out;
        -ms-transition: all 500ms ease-in-out;
        -o-transition: all 500ms ease-in-out;
        transition: all 500ms ease-in-out;
        transform: translateY(0);
    }

    /*NAVIGATION PRINCIPALE*/
    #superfish-main {
        text-align: right;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    header .block-superfish ul.sf-menu li {
        display: inline-block;
        float: none;
    }

    header .block-superfish > ul > li a {
        position: relative;
        font-family: 'Poppins';
        font-weight: bold;
        color: #646464;
        text-transform: uppercase;
        text-align: center;
        text-decoration: none;
    }

    header .block-superfish > ul > li > a:before {
        content: "";
        position:absolute;
        left: 0;
        top: 0;
        height: 0;
        left: 20px;
        right: 20px;
        background: #e1412d;
        z-index: -1;
        border-radius: 2px;
        -webkit-transition: all 200ms ease-in-out;
        -moz-transition: all 200ms ease-in-out;
        -ms-transition: all 200ms ease-in-out;
        -o-transition: all 200ms ease-in-out;
        transition: all 200ms ease-in-out;
    }

    header .block-superfish > ul > li > a:hover:before {
        height: 23px;
    }

    header .block-superfish > ul > li:first-of-type > a:hover:before {
        height: 0;
    }

    header .block-superfish > ul > li:first-of-type > a:hover {
        color: #646464;
    }

    header .block-superfish > ul > li > a:hover {
        color: #fff;
    }

    header .block-superfish > ul > li > a:after {
        content: "";
        position: absolute;
        width: 1px;
        height: 14px;
        right: 0;
        top: 5px;
        background: #646464;
    }

    header .block-superfish > ul > li:last-of-type a:after {
        width: 0;
    }

    /*Sous menu*/
    header .block-superfish ul li ul {
        background: #fff;
        top: 33px !important;
        display: none;
    }
    header .block-superfish ul li ul li a {
        text-align: left;
        padding: 12px;
    }

    header .block-superfish ul li ul li a:hover {
        background: #f5f5f5;
    }

}

@media screen and (min-width: 800px) {
    #block-liensfixesdroite a {
        /*transform: translateX(250px);*/
    }

    #block-liensfixesdroite a:hover {
        transform: translateX(-244px);
    }
}

/*////////////////////////////////////*/
/*//////////// MAX WIDTH ////////////*/
/*//////////////////////////////////*/

@media screen and (max-width: 1400px) {
    .block-offre-services {
        flex-direction: column;
        height: auto;
    }

    .block-offre-services .offre,
    .block-offre-services .services {
        width: 100%
    }

    .block-offre-services .offre .wrapper,
    .block-offre-services .services .wrapper {
        margin: 0 auto;
    }

    .block-offre-services h2 {
        text-align: center;
    }
}

@media screen and (max-width: 1300px) {
    .block-texte-accueil {
        height: auto;
    }
    .block-texte-accueil .image {
        display: none;
    }
    .block-texte-accueil .texte {
        justify-content: center;
        width: 70%;
        padding: 0;
        margin: 100px auto;
    }
    .block-texte-accueil .texte .wrapper {
        max-height: none;
        max-width: none;
    }
    .block-texte-accueil .texte .btn-orange {
        margin: 0 auto;
    }

    /* Footer */
    footer #block-pieddepage ul.menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 35px;
        max-width: 90%;
    }

    footer #block-copyright p.texte {
        max-width: 90%;
    }
}

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

    /* HEADER */
    #block-telephone-header p {
        font-size: 14px;
    }

    header .block-superfish > ul > li a {
        font-size: 15px;
        padding: 5px 20px;
    }

    .block-offre-services .services .wrapper {
        grid-template-columns: repeat(2, 1fr);
        border-left: none;
        border-right: none;
    }

    .block-offre-services .service {        
        height: 123px;
        padding: 15px 5px 30px 85px;
    }

    .block-offre-services a:nth-child(4) .service {
        background-color: #6FC3EC;
    }

    .block-offre-services a:nth-child(5) .service {
        background-color: #3BB1D6;
    }

    .block-offre-services a:nth-child(6) .service {
        background-color: #A4D6EF;
    }

    #block-views-block-vehicules-home {
        padding-top: 50px;
    }

    /*PAGE VEHICULES*/
    #recherche-vehicules .hidden-mobile {
        display: none;
    }

    #recherche-vehicules #more-options {
        display: block;
        text-align: right;
    }

    #recherche-vehicules select {
        margin-bottom: 5px;
    }
    #boite-vitesse {
        margin-bottom: 15px !important;
    }

    #choice-etat {
        margin-bottom: 15px;
    }

    #show-kilo, #show-puissance, #show-price {
        margin-bottom: 5px;
    }

    #recherche-vehicules .rnd-btn {
        margin-top: 8px;
    }

    #recherche-vehicules {
        margin: 0 auto 20px auto;
    }

    #trier-par {
        justify-content: center;
    }
    #block-views-block-vehicules-page .wrapper {
        margin-top: 10px;
    }

    #block-views-block-vehicules-page #resultats-recherche {
        max-width: 100%;
    }

    #block-views-block-vehicules-page .view-content {
        justify-content: space-around;
    }

    #block-views-block-vehicules-page .view-content a {
        margin: 10px;
    }

    /*FICHE VEHICULE*/
    #accessoires {
        margin-top: 20px;
        padding: 0 20px !important;
    }

    #equipements p, #carac p {
        max-width: 100%;
    }

    #equipements {
        margin-top: 20px;
    }

    /* Liste actu accueil */
    .view-actualites .view-content {
        flex-direction: column;
        align-items: center;
    }

    .view-actualites .view-content .views-row {
        max-width: 500px;
    }

    /* PAGE CONTACT */
    #block-horairesequipe .horaires {
        flex-wrap: wrap;
    }

    #block-horairesequipe .horaires h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

}

@media screen and (max-width: 1100px) {
    .region-header {
        margin: 10px 49px 10px 33px;
    }

    /*MENU MOBILE*/
    #superfish-main {
        display: none;
    }

    #superfish-main-accordion {
        width: 100% !important;
        top: 0 !important;
        padding-top: 80px !important;
        z-index: 700;
    }

    #superfish-main-accordion  li {
        text-align: center;
    }

    #superfish-main-accordion li a {
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 18px;
        color: #225e7c;
        font-weight: 400;
        padding: 15px;
        display: inline-block;
    }

    #superfish-main-accordion li ul li a {
        font-weight: 600;
        font-size: 16px;
        color: #1f79a7;
        padding-top: 5px;
    }

    #superfish-main-accordion .sf-sub-indicator {
        right: 0px;
        font-size: 12px;
    }

    /*HEADER*/
    header {
        position: fixed;
        z-index: 1000;
        background: #fff;
        left: 0;
        top: 0;
        width: 100%;
    }
    body {
        padding-top: 95px !important;
    }

    #block-telephone-header {
        padding-right: 50px;
        margin-top: 0;
    }

    #block-telephone-header p {        
        max-width: 500px;
    }

    #block-citroen-moreac-theme-logoheader {
        top: 0px;
        max-width: 55px;
    }

    .sf-accordion-toggle {
        position: fixed !important;
        top: 43px !important;
        right: 10px !important;
    }

    /*FICHE VEHICULE*/
    .node--type-vehicule #presentation-vehicule {
        flex-direction: column;
        justify-content: space-between;
        flex-flow: column-reverse;
        align-items: center;
    }

    #caracs-principales {
        padding-left: 0;
    }

    .node--type-vehicule #presentation-vehicule #galerie-vehicule {
        margin-right: 0;
    }

    .node--type-vehicule #presentation-vehicule #caracs-principales {
        width: 100%;
    }

    #infos-supp {
        gap: 25px 0;
    }

    #infos-supp > div#carac,
    #infos-supp > div#equipements,
    #infos-supp > div#accessoires {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    /*FICHE ACCESSOIRE*/
    #presentation-accessoire {
        flex-direction: column;
        align-items: center;
    }

    #galerie-accessoire {
        margin-bottom: 40px;
    }

    .prix-accessoire {
        margin-bottom: 10px;
    }

    /*FOOTER*/
    #infos-contact-footer {
        justify-content: space-around;
    }

    #infos-contact-footer div {
        margin-top: 25px;
    }    

    /* Bloc Services */

    .block-offre-services .services .wrapper {
        grid-template-columns: repeat(1, 1fr);
        width: 50%;
        min-width: 450px;
        border-left: none;
        border-right: none;
    }

}

@media screen and (max-width: 1100px) and (min-width: 900px) {
    form.citroen-moreac-recherche-page-form .recherche-container .block-select {
        max-width: 240px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-range {
        max-width: 330px;
    }
}

@media screen and (max-width: 900px) {
    #block-telephone-header p {
        display: none;
    }
    /*FORM RECHERCHE VEHICULES*/
    .recherche-vehicules-home-form form.citroen-moreac-recherche-page-form {
        padding: 20px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container {
        align-items: center;
        flex-direction: column;
    }

    #toggle-fields {
        display: block;
        text-decoration: underline;
        cursor: pointer;
        color: #07455E;
        margin: 5px 0;
    }

    form.citroen-moreac-recherche-page-form .form-submit {
        height: 40px;
        line-height: 40px;
        background-position: 38px 12px;
    }

    form.citroen-moreac-recherche-page-form .form-actions {
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
    }

    form.citroen-moreac-recherche-page-form .form-actions .accroche {
        margin-bottom: 20px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-range {
        width: 90%;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-select, 
    #block-choixgabaritaccueil .select-type {
        max-width: 410px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .js-form-item {
        margin-bottom: 10px;
    }

    form.citroen-moreac-recherche-page-form .form-type-select select {
        height: 40px;
        line-height: 40px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-select label,
    form.citroen-moreac-recherche-page-form .recherche-container .block-select .label,
    form.citroen-moreac-recherche-page-form .recherche-container .select-type .label {
        display: none;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-select.etat {
        max-width: 410px;
        margin-top: 15px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .block-select#edit-block-trier-par {
        max-width: 410px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .toggle-mobile {
        display: none;
    }

    /* PAGE CONTACT */ 
    #block-horairesequipe .horaires {
        flex-direction: column;
        width: max-content;
        margin: 0 auto;
    }

    #block-horairesequipe .equipe {
        flex-direction: column;
        width: max-content;
        margin: 0 auto;
        margin: 50px auto 0;
    }

    #block-horairesequipe .bloc-contact {
        margin-bottom: 20px;
    }

    .bloc-contact .photo {
        width: auto;
        height: 131px;
        aspect-ratio: 120 / 131;
    }

    #block-contactblock,    
    .block-texte-accueil .texte {
        width: 80%;
    }
}

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

    /* Form véhicule home */
    .citroen-moreac-recherche-page-form-container .intro {
        justify-content: center;
        margin-top: 30px;
    }

    form.citroen-moreac-recherche-page-form .recherche-container .select-type {
        left: auto;
    }

    /*Contact Form*/
    main form .field--type-string,
    main form .field--type-email,
    main form .field--type-entity-reference,
    main form .field--type-telephone,
    main form .field--type-list-integer.field--widget-options-select,
    main form .field--type-list-string {
        width: 100%;
    }

    /*Liens fixes droite*/
    #block-liensfixesdroite {
        position: fixed;
        width: 100%;
        right: auto;
        left: 0;
        top: auto;
        bottom: 0;
        z-index: 1000;
        background: #fff;
        display: flex;
    }

    #block-liensfixesdroite a {
        margin-bottom: 0;
        display: flex;
        padding: 10px;
        justify-content: center;
    }

    #block-liensfixesdroite a:nth-child(1),
    #block-liensfixesdroite a:nth-child(2) {
        border-right: solid 1px #fff;
    }

    #block-liensfixesdroite .fas {
        margin-right: 0;
    }

    #block-liensfixesdroite span {
        display: none;
    }

    /*Copyright*/
    footer .gl-copy {
        padding: 15px 0 55px 0;
    }

    /*FICHE VEHICULE*/
    .node--type-vehicule #presentation-vehicule #prix-vehicule {
        text-align: left;
        position: relative;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .node--type-vehicule #presentation-vehicule #contact-vehicule {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 250px;
        justify-content: space-around;
    }

    /*Slider accueil*/
    #block-views-block-slider-home .view-content .views-row {
        height: 350px;
    }

#pre-map {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 0;
    }

    #pre-map a {
        margin-left: 0;
        margin-bottom: 10px;
    }

    #pre-map h3 {
        line-height: 24px;
        margin-bottom: 20px;
    }

    #blockMap {
        min-height: 337px;
    }

    .leaflet-container .popup {
        margin: 0 auto;
    }

    .leaflet-popup-content {
        max-width: max-content;
    }

    /*photo en haut et en bas*/
    .pos-photo-1.nb-photos-1 .para-photos .para-photo,
    .pos-photo-2.nb-photos-1 .para-photos .para-photo,
    .pos-photo-1.nb-photos-2 .para-photos .para-photo,
    .pos-photo-2.nb-photos-2 .para-photos .para-photo {
        width: 97%;
        max-width: 97%;
        margin: 0 1.5%;
    }
    .pos-photo-1.nb-photos-3 .para-photos .para-photo,
    .pos-photo-2.nb-photos-3 .para-photos .para-photo {
        width: 47%;
        margin: 0 1.5%;
    }
    .pos-photo-1.nb-photos-3 .para-photos .para-photo:nth-child(2n+1),
    .pos-photo-2.nb-photos-3 .para-photos .para-photo:nth-child(2n+1){
        clear: both;
        margin: 0 auto;
    }
    .pos-photo-1.nb-photos-4 .para-photos .para-photo,
    .pos-photo-2.nb-photos-4 .para-photos .para-photo,
    .pos-photo-1.nb-photos-more .para-photos .para-photo,
    .pos-photo-2.nb-photos-more .para-photos .para-photo{
        width: 30%;
        margin: 0 1.5%;
    }
    .pos-photo-1.nb-photos-4 .para-photos .para-photo:nth-child(3n+1),
    .pos-photo-2.nb-photos-4 .para-photos .para-photo:nth-child(3n+1),
    .pos-photo-1.nb-photos-more .para-photos .para-photo:nth-child(3n+1),
    .pos-photo-2.nb-photos-more .para-photos .para-photo:nth-child(3n+1){
        clear: both;
    }
    .pos-photo-1.nb-photos-more .para-photos .para-photo:nth-child(4n+1),
    .pos-photo-2.nb-photos-more .para-photos .para-photo:nth-child(4n+1) {
        clear: none;
    }

    .node--type-vehicule  {
        width: 100%;
    }

}

@media screen and (max-width: 600px) {
    /*Block boutons véhicules*/
    #boutons-vehicules {
        flex-direction: column;
    }


    #block-liensmiseenavant #temp-calendar {
        flex-direction: column;
    }

    #block-liensmiseenavant #temp-calendar h3 {
        margin-left: 0;
        margin-top: 25px;
        text-align: center;
    }

    /*photo à droite et à gauche*/
    .pos-photo-3 .para-photos,
    .pos-photo-4 .para-photos {
        max-width: 97%;
        margin: 20px 1.5%;
    }
    /*photo en haut et en bas*/
    .pos-photo-1.nb-photos-3 .para-photos .para-photo,
    .pos-photo-2.nb-photos-3 .para-photos .para-photo,.pos-photo-1.nb-photos-4 .para-photos .para-photo,
    .pos-photo-2.nb-photos-4 .para-photos .para-photo,
    .pos-photo-1.nb-photos-more .para-photos .para-photo,
    .pos-photo-2.nb-photos-more .para-photos .para-photo{
        width: 97%;
    }
}

@media screen and (max-width: 500px) {
    /* Form véhicules home */
    form.citroen-moreac-recherche-page-form .recherche-container .select-type {
        gap: 15px;
    }
    form.citroen-moreac-recherche-page-form .recherche-container .select-type .select-type-item,
    form.citroen-moreac-recherche-page-form .recherche-container .select-type .select-type-item.active {
        height: 45px;
        width: 150px;
        border-width: 3px;
    }
}

@media screen and (max-width: 400px) {
    #menu-mobility-group {
        display: none;
    }
}