﻿@media screen and (min-width: 1701px) {
    .zoneCodePromo {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: 0;
    }
}

@media screen and (max-width:1700px) {

    .zoneCodePromo .carte {
        margin-left: 0;
        width: 100%
    }
    .zoneCodePromo .unite {
        width: 100% !important;
    }

}


@media screen and (max-width:1300px) {
    #image-cropper {
        padding-bottom: 1rem !important;
    }
    #image-cropper .slider-wrapper {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }
    #image-cropper .slider-wrapper + div {
        display: block !important;
        margin: 0 1.5rem;
        overflow: hidden;
    }
    #image-cropper .slider-wrapper + div > button {
        float: none;
        text-align: left;
        margin: .8rem 0;
        width: calc( 100% - 3rem );
        display: block;
        text-align: center;
    }
    #image-cropper .slider-wrapper + div > button:first-of-type {
        margin-top: 2rem;
    }
}

@media screen and (min-width: 1200px) {

    /* FOOTER */
    #piedPage .basPiedPage .siteOptimise {
        margin-top: 2.5rem !important;
    }
}

@media screen and (max-width:1199px) {

    /* Menu fixe aside (à gauche) */
    #menuFixe li a {
        font-size: 1.5rem;
        padding: 1rem 0 1rem 5rem;
    }

    /* Page informations > carte infos personnelles */
    #rensPers .btnModifier {
        order: 1;
        margin: 0 0 3rem 0;
        text-align: center;
    }
    #rensPers .photo {
        order: 2;
    }
    #rensPers .carte .colGau {
        min-width: 100%;
    }
    #rensPers .carte .colDr {
        order: unset;
        max-width: 100%;
    }

    /* Page Transactions */
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 35%;
    }

    /* FOOTER */
    #piedPage.container {
        max-width: 100%;
    }
    #piedPage {
        padding: .5rem 1.5rem 1rem 1.5rem;
    }

}


@media screen and (min-width:992px) {

    /* Zone connecté */
    .mon-compte-craaq-connexion.connecte {
        margin-top: 120px;
    }

    /* FOOTER */
    #piedPage .liensFooter {
        padding-top: 0;
    }
    #piedPage .copyright p #copyrightYear::after {
        content: ' - ';
        position: relative;
        right: 0;
    }
}


@media screen and (min-width:992px) and (max-width:1199px) {
    
    /* FOOTER */
    #piedPage .logoSite h5 {
        padding-bottom: 1.4rem;
    }
    #piedPage .basPiedPage p:first-of-type {
        margin-top: 2.5rem;
    }
}

@media screen and (min-width:768px) and (max-width:1199px) {

    /* FOOTER */
    #piedPage .footerMediaSociaux {
        text-align: right;
    }
    #piedPage .liensFooter p {
        padding-top: 3.5rem;
    }
    #piedPage .liensFooter p {
        padding-top: .5rem;
    }
    #piedPage .logoSite {
        padding-bottom: 0;
    }
    #piedPage .communications, 
    #piedPage .adresse, 
    #piedPage .siteOptimise p {
        padding-top: .5rem !important;
    }
}


@media screen and (max-width: 991px) {

    .container {
        max-width: 100%;
    }

    /* Menu publications */
    .nav-tabs .nav-link {
        font-size: 1.5rem
    }

    /* Menu principal - Login CRAAQ */
    #menuEntete .dropdown > a {
        max-width: 35rem;
        overflow: hidden;
    }
    #menuEntete .dropdown > a:after {
        background: rgb(116,168,39);
        background: -webkit-gradient(linear, left top, right top, from(rgba(116,168,39,0)), color-stop(30%, rgba(116,168,39,1)), to(rgba(116,168,39,1)));
        background: -o-linear-gradient(left, rgba(116,168,39,0) 0%, rgba(116,168,39,1) 30%, rgba(116,168,39,1) 100%);
        background: linear-gradient(90deg, rgba(116,168,39,0) 0%, rgba(116,168,39,1) 30%, rgba(116,168,39,1) 100%);
        border: 0;
        content: '';
        margin: 0;
        padding: 0;
        position: absolute;
            top: -.4rem;
            right: -.4rem;
            bottom: 0;
        width: 6rem;
        z-index: 1;
    }
    #menuEntete .dropdown > a > span {
        z-index: 2;
    }


    /* Page informations > Infos */
    #rensPers .btnModifier {
        margin: 0 auto 3rem auto;
    }
    /* Page informations : Avatar */
    #image-cropper .slider-wrapper,
    #image-cropper .slider-wrapper + div {
        margin-right: auto;
        margin-left: auto;
    }
    #image-cropper .slider-wrapper + div {
        max-width: 39.5rem;
    }
    #image-cropper .slider-wrapper + div > button {
        width: 100%;
    }


    /* Page Produits */
    .pastQte {
        top: -.2rem;
    }


    /* Page Mes intérêts */
    .conteneurInterets .entete .logoAR > img {
        margin-left: 4rem;
    }


    /* Page transactions */
    #accordion .card-body .header > div,
    #accordion .card-body .rangee > div {
        font-size: 1.3rem;
        padding-right: 0;
    }
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 39%;
    }
    #accordion .card-body .row.header > div:nth-child(3),
    #accordion .card-body .rangee > div:nth-child(3) {
        width: 12%;
    }
    #accordion .card-body .row.header > div:nth-child(4),
    #accordion .card-body .rangee > div:nth-child(4) {
        width: 14%;
    }
    #accordion .card-body .row.header > div:nth-child(5),
    #accordion .card-body .rangee > div:nth-child(5) {
        width: 15%;
    }

    
    /* FOOTER */
    #piedPage {
        padding-top: 1.8rem;
        padding-bottom: 1rem;
        max-width: 100%;
    }
    #piedPage .communications,
    #piedPage .adresse,
    #piedPage .liensFooter,
    #piedPage .siteOptimise p {
        padding-top: .2rem;
    }
    #piedPage .liensFooter {
        padding-top: 0;
    }
    #piedPage .siteOptimise p {
        margin-top: 0rem;
    }
    #piedPage .copyright p {
        text-align: left;
    }
    #piedPage h6 {
        padding: 0 0 .2rem 0;
    }
    #piedPage .siteOptimise p,
    #piedPage .siteOptimise p a {
        line-height: 2rem !important;
        margin-bottom: .5rem;
        padding-bottom: 1.5rem;
    }
    #piedPage .corpo {
        padding-top: .2rem;
        position: relative;
    }
    #piedPage .corpo img {
        width: 100%;
    }
    #piedPage .copyright > p,
    #piedPage .copyright > p span {
        line-height: 1.7rem !important;
    }
    #piedPage .corpo img {
        max-width: 24rem;
    }
    #piedPage .copyright p {
        font-size: 1.2rem;
        padding-top: 3.2rem;
        padding-left: 0;
    }
    #piedPage .footerMediaSociaux {
        padding-top: 2rem;
        /* -- Si order:2 ne fonctionne pas -- */
        position: absolute;
            right: 0;
        text-align: left;
    }
    #piedPage .logoSite {
        margin-bottom: 1rem;
    }
    #piedPage .logoSite h4 {
        font-size: 2rem;
    }

}


@media screen and (min-width: 768px) {

    /* LOGIN */
    .zoneCorpo {
        margin-top: 12.5rem;
    }
    .conteneurAvantages .zoneCorpo {
        margin-top: 0;
    }
    .conteneurAvantages p {
        margin-bottom: 3rem;
    }

    /* FOOTER */
    #piedPage .copyright p {
        text-align: center;
    }
    #piedPage .footerMediaSociaux {
        float: right;
    }
    
}


@media screen and (min-width: 768px) and (max-width: 991px) {
    
    /* FOOTER */
    #piedPage .copyright p {
        margin-top: 1rem;
        margin-bottom: 0;
        padding-top: 0;
    }
    #piedPage .copyright p br {
        display: block;
    }
}

@media screen and (max-width: 767px) {

    /* GÉNÉRAL */
    h1 {
        margin: 0.5rem 0 0 0;
    }
    hr:not([size]) {
        position: relative;
            top: 10px;
            left: 0.8rem;
        width: calc( 100% - 3rem );
    }


    /* LOGIN : logos corpo */
    .logoRotation {
        height: 13rem;
    }
    .logoRotation-devant {
        display: none;
    }
    .logoRotation-arriere {
        display: block;
        -webkit-backface-visibility: hidden;
                backface-visibility: visible;
        -webkit-transform: rotateY( 0 );
                transform: rotateY( 0 );
    }
    .logoRotation:hover .logoRotation-conteneur {
        -webkit-transform: rotateY( 0 );
                transform: rotateY( 0 );
    }


    /* TRANSACTIONS */
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 15%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 30%;
    }
    #accordion .card-body .row.header > div:nth-child(3),
    #accordion .card-body .rangee > div:nth-child(3) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(4),
    #accordion .card-body .rangee > div:nth-child(4) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(5),
    #accordion .card-body .rangee > div:nth-child(5) {
        width: 15%;
    }
    .enteteTableau {
        width: calc( 100% - 45% );
    }


    /* PRODUITS */
    .conteneurPublications figcaption {
        min-height: 12.5rem;
    }
    .conteneurPublications .zoneRecherche .btnModifier {
        float: left;
        margin-right: 1rem;
    }
    .conteneurPublications .zoneRecherche .btnModifier:last-of-type {
        margin-right: 0;
    }
    .zoneRecherche input {
        max-width: calc( 100% - 12rem );
    }

    /* MENUS */
    #menuEntete {
        height: auto;
        padding: 1rem 0;
    }
    #menuEntete .row {
        margin-right: 0;
    }
    #menuEntete .authentification {
        padding: 0;
    }
    #menuEntete h1 {
        font-size: 1.6rem;
        padding-top: .75rem;
        padding-left: .5rem;
    }
    #menuEntete .corpo img {
        width: 5rem;
        height: 4.1rem;
    }

    /* Menu publications */
    .nav-tabs .nav-link {
        font-size: 1.6rem
    }

    /* Tuiles de contenu dans les pages */
    .carte {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        float: none;
        width: auto;
    }
    .conteneurTransactions .carte {
        margin: 1.5rem auto;
        min-width: calc( 100% - 3rem );
        width: calc( 100% - 3rem );
    }
    .conteneurTransactions .zoneCodePromo {
        padding-right: 0;
        padding-left: 0;
    }
    .conteneurTransactions .zoneCodePromo .carte {
        min-width: calc( 100% - 3rem );
        width: calc( 100% - 3rem );
    }
    .conteneurPublications figcaption {
        padding: 1.5rem;
    }
    .conteneurPublications {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    /* Adapter les boutons */
    .btn-primary, 
    .btn-danger,
    .carte .btnModifier, 
    .carte .btnSauvegarder{
        display: block;
        float: initial;
        margin-top: .5rem;
        margin-bottom: 0;
    }
    .carte {
        margin-right: 0;
        margin-left: 0;
    }
    .carte .btnAnnuler {
        min-width: 130px;
        margin-top: 10px;
    }
    .carte .btnAnnuler
    .carte .btnSauvegarder {
        margin-right: 0 !important;
    }
    #rensPers .carte {
        padding-bottom: 4rem;
    }
    #rensPers .carte.modeEdition {
        padding-bottom: 0;
    }
    #rensPers .btnModifier,
    #rensPers .btnSauvegarder {
        float: right;
        margin: 0 0 3rem 0;
    }
    #accesPrivilege .carte .btnModifier,
    #accesPrivilege .carte .btnSauvegarder {
        margin-right: 0;
    }

    #rensPers .photo {
        margin: 0 auto;
    }

    /* Conditions d'utilisation */
    .dernMAJ {
        margin-top: 2rem;
    }

    /* FOOTER */
    #piedPage {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: .5rem;
        max-width: 100%;
    }
    #piedPage .corpo {
        padding-top: 0;
    }
    #piedPage .copyright p {
        margin-bottom: 0;
        padding-top: .25rem;
    }
    #piedPage .copyright > p, 
    #piedPage .copyright > p span {
        margin-top: .5rem;
    }
    #piedPage .footerMediaSociaux {
        padding-top: 3rem;
        text-align: right;
    }
    #piedPage .footerMediaSociaux {
        text-align: left;
    }

    /* Notification cookies */
	#avisCookies *,
	#avisCookies button {
		font-size: 13px;
	}
	#avisCookies p {
		line-height: 17px;
	}
	#avisCookies button {
		margin-top: 10px;
	}

}


@media screen and (min-width: 576px) and (max-width: 991px) {

    /* FOOTER */
    #piedPage .logoSite {
        padding-bottom: .7rem;
    }
    #piedPage .basPiedPage p:first-of-type {
        margin-top: .5rem;
    }
}

@media screen and (min-width: 576px) and (max-width: 767px) {

    /* FOOTER */
    #piedPage .logoSite {
        padding-bottom: 1rem !important;
    }
}

@media screen and (max-width: 620px) { /* Non-standard Bootstrap */

    /* TRANSACTIONS */
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 16%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 30%;
    }
    #accordion .card-body .row.header > div:nth-child(3),
    #accordion .card-body .rangee > div:nth-child(3) {
        width: 18%;
    }
    #accordion .card-body .row.header > div:nth-child(4),
    #accordion .card-body .rangee > div:nth-child(4) {
        width: 18%;
    }
    #accordion .card-body .row.header > div:nth-child(5),
    #accordion .card-body .rangee > div:nth-child(5) {
        width: 18%;
    }

}

@media (min-width: 576px) {

    /* FOOTER */
    #piedPage .liensFooter h6,
    #piedPage .communications h6,
    #piedPage .adresse h6 {
        display: none;
    }
    #piedPage .basPiedPage .corpo > a {
        background: url('/Content/Logos/craaq-logotype-horizontal.svg') no-repeat center center;
        background-size: 200px 65px;
        width: 200px;
        height: 65px;
    }
    #piedPage .basPiedPage::after {
        background: #4a4a4a;
        content: "";
        height: .1rem;
        position: absolute;
            right: 1.5rem;
            top: 0;
            left: 1.5rem;
        width: calc(100% - 15px);
    }
    #piedPage .basPiedPage p {
        line-height: 1.4rem !important;
    }
    #piedPage .corpo {
        padding-top: 5px;
    }
    #piedPage .basPiedPage .copyright {
        padding-top: 0;
    }

}


@media screen and (max-width: 575px) {


    /* Menu publications */
    .conteneurPublications figcaption {
        min-height: auto;
    }
    .conteneurPublications li {
        margin: 0 auto;
    }


    /* Page des Transactions */
    .conteneurTransactions .flexitem div, 
    .conteneurTransactions .flexitem button {
        padding-right: .5rem;
    }
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 14%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 26%;
    }
    #accordion .card-body .row.header > div:nth-child(3),
    #accordion .card-body .rangee > div:nth-child(3) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(4),
    #accordion .card-body .rangee > div:nth-child(4) {
        width: 20%;
    }
    #accordion .card-body .row.header > div:nth-child(5),
    #accordion .card-body .rangee > div:nth-child(5) {
        width: 20%;
    }


    /* Page des Produits */
    .nav-tabs .nav-link > span {
        position: relative;
        margin-left: -1rem;
    }
    .pastQte {
        height: 1.8rem;
        line-height: 1rem;
        top: -6px;
        right: -2rem;
        width: 1.8rem;
    }


    /* Conditions d'utilisation */
    .nav-tabs .nav-link {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }
    .tab-content article h2:not(:first-of-type), 
    .tab-content article h2,
    .tab-content article h3 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    /* FOOTER */
    .footerFull #piedPage .footerMediaSociaux {
        padding-top: 1.8rem;
        text-align: right;
    }
    #piedPage .liensFooter {
        padding-top: 3rem;
    }
    #piedPage .basPiedPage {
        padding: .5rem 0;
    }
    #piedPage .corpo img {
        max-width: 7rem;
    }
    #piedPage .logoSite {
        margin-bottom: 0;
        padding-top: .5rem;
        padding-bottom: 1.5rem;
        padding-left: 0;
        margin-left: -5px;
    }
    #piedPage .logoSite img {
        width: 14rem;
    }
    #piedPage .logoSite h5 {
        padding-top: .5rem;
    }
    #piedPage .copyright > p {
        margin-top: 0;
    }
    #piedPage [data-groupe] p {
        overflow: hidden;
        max-height: 0;
    }
    #piedPage h6 {
        padding: .75rem 0 0 0;
        width: 100%;
    }
    #piedPage h6:active,
    #piedPage h6:focus {
        color: #6a6a6b !important;
    }
    #piedPage h6:active > i,
    #piedPage h6:focus > i {
        color: #58585a;
    }
    #piedPage h6 i {
        -webkit-transition: all 300ms ease;
             -o-transition: all 300ms ease;
                transition: all 300ms ease;
    }
    #piedPage h6 + p,
    #piedPage h6 + address > p {
        display: block;
        max-height: 0;
        overflow: hidden;
        padding: .75rem 1.5rem 0 1.5rem;
    }
    #piedPage .copyright {
        padding-top: .75rem;
    }
    #piedPage .siteOptimise a {
        padding-top: .75rem;
        padding-bottom: 1rem;
    }
    #piedPage .logoSite h5 {
        padding-bottom: .3rem;
    }
    #piedPage .communications,
    #piedPage .adresse,
    #piedPage .liensFooter {
        padding-top: 0;
        position: relative;
    }
    #piedPage [data-groupe][aria-expanded] p {
        border-bottom: .1rem solid #4d4d4d;
    }
    #piedPage h6 i {
        color: #7c7c7d;
        display: inline-block;
        font-size: 2.8rem;
        position: absolute;
            top: .3rem;
            right: 3rem;
    }
    #piedPage h6 + p a:hover {
        text-decoration: none;
    }
    #piedPage .corpo {
        padding-top: 1.5rem;
    }
    #piedPage .basPiedPage .corpo > a {
        background: url('/Content/Logos/craaq-logo.svg') no-repeat left center;
        background-size: 70px 59px;
        width: 70px;
        height: 59px;
    }
    #piedPage .basPiedPage .corpo span {
        top: -.9rem;
        left: 0;
    }

    /* Notification cookies */
    #avisCookies #btnAccepterCookies {
        display: block;
        width: 100%;
    }
}

@media screen and (max-width: 520px) {

    /* TRANSACTIONS */
    #accordion .card-body .row.header > div:nth-child(1),
    #accordion .card-body .rangee > div:nth-child(1) {
        width: 15%;
    }
    #accordion .card-body .row.header > div:nth-child(2),
    #accordion .card-body .rangee > div:nth-child(2) {
        width: 25%;
    }
    #accordion .card-body .row.header > div:nth-child(3),
    #accordion .card-body .rangee > div:nth-child(3) {
        width: 15%;
    }
    #accordion .card-body .row.header > div:nth-child(4),
    #accordion .card-body .rangee > div:nth-child(4) {
        width: 22%;
    }
    #accordion .card-body .row.header > div:nth-child(5),
    #accordion .card-body .rangee > div:nth-child(5) {
        width: 22%;
    }

}

@media screen and (min-width: 480px) {

    /* FOOTER */
    #piedPage .siteOptimise p br {
        display: none;
    }
    #piedPage .footerMediaSociaux {
        text-align: right;
    }
}