/* CSS Document */
@media screen and (max-width: 2000px) {
    header .region-header {
        padding: 0 5px;
    }

    .banner-intern-top {
        margin-bottom: 20px;
    }

}

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

    /*Header*/

    #menu {
        height: 55px;
        background-color: #edecec;
    }

    .sf-accordion-toggle {
        position: absolute;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        height: 55px;
        width: 55px;
        z-index: 9999;
        background: #104274;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #superfish-main {
        display: none;
    }

    .block-superfish .gl-supermenu-overlay {
        display: none;
    }

    /*Actus home*/
    .view-actualites .view-content .views-row {
        margin: 10px;
    }

    /*Footer*/
    .region-footer {
        margin: 60px auto 0 auto;
        padding: 40px 10px;
    }
}

@media screen and (max-width: 1150px) {
    .block-views-blockvue-professions-home-block-1 .views-row .views-field-title {
        height: 100px;
    }
}

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

    /*Header*/
    .top-header {
        height: 0;
    }

    .top-header li:last-child {
        position: absolute;
        top: 216px;
        right: 0;
        height: 55px;
        width: 39%;
        background-color: #c5e7ee;
    }

    .top-header li:last-child a {
        width: 100%;
        height: 55px;
        line-height: 55px;
        font-size: 16px;
        padding-left: 65px;

    }

    .top-header li:last-child::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 50%;
        height: 30px;
        width: 30px;
        -webkit-transform: translate(0,-50%) rotate(45deg);
        transform: translate(0,-50%) rotate(45deg);
        background: url(../img/svg/picto-votre-espace.svg);
        background-size: cover;
    }

    #block-formulairederecherche {
        position: absolute;
        left: auto;
        bottom: auto;
        width: 50%;
        height: 55px;
        top: 216px;
        left: 46px;
    }

    #block-formulairederecherche .form-actions {
        top: 48%;
    }

    header .block-logoheader {
        position: absolute;
        left: 50%;
        top: 15px;
        width: 220px;
        -webkit-transform: translate(-50%,0);
        transform: translate(-50%,0);
    }

    #block-formulairederecherche input.form-search {
        height: 40px;
        line-height: 55px;
        padding: 0 10px;
    }

    #block-formulairederecherche input.form-search:focus {
        outline: none;
    }

    #block-documentsadherer {
        position: absolute;
        bottom: 15px;
        left: 10px;
        right: 10px;
    }

    .region-header .menu {
        margin-left: 0;
        width: 100%;
    }

    #block-formulairederecherche input.form-search {
        border-radius: 0;
        position: relative; /* ajoute position et bottom pour input research */
        bottom: 9px;   
 }

    #block-formulairederecherche .form-actions input {
        font-size: 23px;
    }
    /*Menu Mobile*/
    #superfish-main-accordion > li > a {
        color: #4d4d4d;
        font-size: 12px;
        font-weight: 700;
        display: inline-block;
        text-transform: uppercase;
    }

    #superfish-main-accordion > li ul li a {
        color: #4d4d4d;
        font-size: 12px;
        padding-left: 40px;
        text-transform: uppercase;
    }

    ul.sf-menu .sf-sub-indicator {
        right: 18px;
    }

    /*Layout*/
    .layout-container {
        overflow: hidden;
    }


    /* .top-header li:nth-child(4) {
        display: none;
    } */

    #detail-logo-fiscapass {
        display: none;
    }

    #block-logofiscapass {
        display: none;
    }

    #block-documentsheader {
        position: relative;
        top: 60px;
        left: 4px;
        z-index: 9999;
    }

    .top-header li:nth-child(4) {
        display: none;
        width: 60px;
        position: absolute;
        top: 216px;
        text-align: center;
        display: block;
        right: 38%;
        left: auto;
        padding-left: 0;
    }

    .top-header li:nth-child(4) a {
        background-image: url(../images/fisca-bleu-small-mobile.jpg);
        width: 58px;
        height: 55px;
    }

}

@media screen and (min-width: 801px) {
    #block-ctninfosfooter {
        display: none;
    }
}

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

    /*Header*/
    .top-header li:last-child {
        width: 60px;
        position: absolute;
        right: 0;
        background-color: #c5e7ee;
        text-align: center;
        overflow: hidden;
    }

    .top-header li:last-child a {
        background-color: transparent;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    #block-formulairederecherche {
        width: calc(100% - 164px);
    }

    .block_login {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,.4);
        z-index: 10000;
    }

    .block_login .btn_esp_pro {
        color: #fff;
    }

    .block_login form {
        position: relative;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }

    /*Block Home*/
    .block-views-blockvue-professions-home-block-1 .view-content {
        flex-direction: column;
        align-items: center;
    }

    .block-views-blockvue-professions-home-block-1 .views-row {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .block-views-blockvue-professions-home-block-1 .views-row .views-field-title {
        height: auto;
        padding: 20px 10px 25px;
    }

    .block-views-blockvue-professions-home-block-1 .views-row .views-field-body {
        padding: 20px 15px 90px 15px;
    }

    /*Nous rejoindre*/
    .paragraph--type--adherer-bulletin,
    .paragraph--type--bloc-double-liens {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .paragraph--type--adherer-bulletin .gauche, .paragraph--type--adherer-bulletin .droite,
    .paragraph--type--bloc-double-liens .gauche, .paragraph--type--bloc-double-liens .droite {
        width: 90%;
    }

    .paragraph--type--adherer-bulletin .gauche,
    .paragraph--type--bloc-double-liens .gauche {
        margin-bottom: 15px;
    }

    .page-node-1685 .paragraph--type--double-colonne {
        flex-direction: column;
        align-items: center;
    }

    .paragraph--type--double-colonne > div {
        width: 95%;
    }

    /*Documentation*/
    .view-documentation .views-row {
        width: 90%;
    }

    /*Page title*/
    .banner-intern-top {
        padding: 35px 10px;
    }

    .banner-intern-top h1 {
        margin: 20px 0;
    }

    /*Form Exposed*/
    .views-exposed-form > .form--inline {
        margin: 30px 0;
        flex-direction: column;
        align-items: center;
    }

    .views-exposed-form > .form--inline > .form-item {
        float: none;
        padding: 0;
        margin-bottom: 0;
        margin-right: 0;
        width: 90%;
    }

    .views-exposed-form .form-type-select,
    .views-exposed-form .shs-widget-container {
        width: 100%;
    }

    .views-exposed-form select,
    .views-exposed-form input {
        width: 100%;
    }

    /*Chiffres clés*/
    .block-views-blockchiffre-cles-block-1 .view-content {
        flex-direction: column;
        align-items: center;
    }

    .block-views-blockchiffre-cles-block-1 .node-chiffre {
        height: 140px;
    }

    .block-views-blockchiffre-cles-block-1 .chiffre_number,
    .block-views-blockchiffre-cles-block-1 .chiffre_prix {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .block-views-blockchiffre-cles-block-1 .chiffre_title {
        font-size: 18px;
    }

    .block-views-blockchiffre-cles-block-1 .views-row {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /*Notre équipe*/
    .block-views-blockequipe-block-1 .view-content {
        justify-content: space-around;
    }

    .block-views-blockequipe-block-1 .view-content .views-row {
        margin: 25px 15px;
    }

    /*Double Colonne home*/
    .paragraph--type--double-colonne-home {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    .paragraph--type--double-colonne-home .field--name-field-colonne-gauche {
        width: 90%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .paragraph--type--double-colonne-home .field--name-field-colonne-droite {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .paragraph--type--double-colonne-home .field--name-field-colonne-droite .field--type-image {
        float: none;
        width: 100%;
    }

    .paragraph--type--double-colonne-home .field--name-field-colonne-droite .field--type-text-long {
        float: none;
        width: 100%;
        padding-left: 0;
    }

    .paragraph--type--double-colonne-home .field--name-field-colonne-droite .field--name-field-lien-p {
        float: none;
        width: 100%;
        text-align: center;
        margin: auto;
    }

    /*Actus Home*/
    .view-actualites .view-content .views-row:nth-child(2),
    .view-actualites .view-content .views-row:nth-child(3) {
        display: none;
    }

    /*Footer*/
    #block-ctninfosfooter {
        padding: 0 20px;
    }

    .ctn-infos-footer .email, .ctn-infos-footer .telephone {
        display: -webkit-box;
        display: -moz-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -moz-align-items: center;
        align-items: center;
    }

    .ctn-infos-footer svg {
        margin-right: 10px;
    }

    .ctn-infos-footer .adresse {
        width: 100%;
        margin-top: 10px;
        font-size: 11px;
    }

    .ctn-infos-footer .adresse b {
        font-weight: 700;
    }

    .ctn-infos-footer a {
        color: #104274;
        font-size: 13px;
        font-weight: 700;
    }

    .ctn-infos-footer {
        padding: 10px;
        margin-bottom: 20px;
        display: -webkit-box;
        display: -moz-flex;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        -moz-justify-content: space-between;
        justify-content: space-between;
        background-color: #87c9d8;
        border: 1px solid #acdde7;
        border-radius: 4px;
        color: #104274;
        text-transform: uppercase;
    }

    /*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;
    }

    .top-header li:nth-child(4) {
        right: 60px;
    }

}

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

    .region-header li:first-child {
        position: relative;
        width: 160px;
        padding: 0 27px 0 30px;
        padding-left: 30px;
        margin: 0;
    }

    /*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%;
    }

    .paragraph--type--bloc-double-liens .gauche, .paragraph--type--bloc-double-liens .droite {
        padding: 32px 10px;
    }

    .paragraph--type--bloc-double-liens .gauche .pg_title {
        padding: 0;
    }
}