/*
    *
    * SharePoint override
    *
    */
#s4-bodyContainer {
    padding-bottom: 135px;
}

/*
*
* XS RULES
*
*/
@media (max-width: 767px) {
    /* xs */
    #s4-bodyContainer {
        padding-bottom: 403px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #s4-bodyContainer {
        padding-bottom: 213px;
    }
}

#s4-titlerow {
    display: none !important;
}

.mdph-breadcrumb-zone {
    display: none !important;
}

.mdph-page-title {
    display: none !important;
}
/*
    * Sharepoint webpartzone override
    */
.mdph-body :not(.ms-SPZone).ms-webpart-zone,
.mdph-body :not(.ms-SPZone) .ms-webpart-cell-vertical,
.mdph-body :not(.ms-SPZone) .ms-webpart-chrome-vertical {
    display: inherit;
}

.mdph-body :not(.ms-SPZone).ms-fullWidth {
    width: inherit;
}

.mdph-body :not(.ms-SPZone) .ms-webpart-chrome-fullWidth {
    min-width: inherit;
}

.mdph-body :not(.ms-SPZone) .ms-webpartzone-cell {
    margin: inherit;
}

/* emove main container on accueil */
.mdph-body #DeltaPlaceHolderMain.container {
    padding-right: 0px;
    padding-left: 0px;
    width: inherit;
}

.mdph-body :not(.ms-SPZone) .ms-clear {
    clear: inherit;
}
/* emove back button on accueil */
.mdph-body-button-back {
    display: none;
}
/*
	*
	* BODY TOP COMMON
	*
	*/
.mdph-body-top {
    background-image: url("../img/mdph_background.jpg");
    background-repeat: no-repeat;
    background-color: rgb(26,32,30);
    background-position: -248px 0px;
}

/* RQM27 - Augmentation du contraste sur la sélection de texte */
.mdph-body-top ::selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}
.mdph-body-top ::-moz-selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}

    /*
	*
	* BODY TOP BIENVENUE
	*
	*/

    .mdph-body-top .mdph-body-top-description-bienvenue h1 {
        color: #ed6b17;
        margin-top: 0px;
        font-size: 35px;
        font-size: 2.988em;
        font-weight: 100;
    }

    .mdph-body-top .mdph-body-top-description-bienvenue {
        color: white;
        padding-top: 90px;
        padding-bottom: 90px;
    }

        .mdph-body-top .mdph-body-top-description-bienvenue .mdph-body-top-description-bienvenue-text {
            float: none;
            font-size: 14px;
            font-size: 1em;
            font-weight: 100;
            word-break: break-word;
            padding-left: 0px;
        }

/*
	*
	* XS RULES
	*
	*/
@media (max-width: 767px) {
    /* xs */
    /* Bienvenue rezise */
    .mdph-body-top .mdph-body-top-description-bienvenue {
        text-align: center;
    }

    .mdph-body-top {
        background-position: -1014px 0px;
    }
}

/*
	*
	* SM RULES
	*
	*/
@media (min-width: 768px) and (max-width: 991px) {
    /* sm */
    .mdph-body-top {
        background-position: -710px 0px;
    }
}
/*
	*
	* MD RULES
	*
	*/
@media (min-width: 992px) and (max-width: 1199px) {
    /* md */
    .mdph-body-top {
        background-position: -540px 0px;
    }
}

/*
    *
    * XXL RULES
    *
    */
@media (min-width: 1690px) {
    .mdph-body-top {
        background-position: -0px 0px;
    }
}
/*
	*
	* BODY TOP DEMARCHES
	*
	*/
.mdph-body-top .mdph-body-top-demarches {
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
}

.mdph-body-top .mdph-demarches-cases {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.mdph-body-top .mdph-demarches-case {
    border: 2px solid white;
    width: 133px;
    min-height: 133px;
    max-height: 290px;
    display: inline-block;
    vertical-align: middle;
    line-height: 133px;
}

    .mdph-body-top .mdph-demarches-case span {
        text-align: center;
        word-break: break-word;
        word-wrap: break-word;
        margin: 5px;
        font-size: 20px;
        font-size: 1.4em;
        color: white;
        font-weight: 400;
        width: 119px;
    }

    .mdph-body-top .mdph-demarches-case:hover {
        border: 2px solid #ed6b17;
        cursor: pointer;
        background: rgba(0,0,0,0.2);
    }

    .mdph-body-top .mdph-demarches-case:focus {
        border: 2px solid #ed6b17;
        cursor: pointer;
        background: rgba(0,0,0,0.2);
        outline-color: #FFFFFF !important;
    }

    .mdph-contrast .mdph-body-top .mdph-demarches-case:focus {
        outline-color: #ed6b17 !important;
    }

        .mdph-body-top .mdph-demarches-case:hover span,
        .mdph-body-top .mdph-demarches-case:focus span {
            color: #ed6b17;
            cursor: pointer;
        }

.mdph-body-top .mdph-demarches-angle-right {
    right: 0px;
    color: #ef782b;
}

.mdph-body-top .mdph-demarches-text {
    border-left: 4px #204473 solid;
    padding-left: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-size: 1em;
    /* line-height: 240px; */
    vertical-align: middle;
}

    .mdph-body-top .mdph-demarches-text h2 {
        color: #ef782b;
        margin-top: 0px;
        font-size: 30px;
        font-size: 2.15em;
        font-weight: 100;
    }

    .mdph-body-top .mdph-demarches-text p {
        color: white;
    }

    /* hover */
    .mdph-body-top .mdph-demarches-text:hover h2,
    .mdph-body-top .mdph-demarches-text:focus h2 {
        color: white;
    }

    .mdph-body-top .mdph-demarches-text:hover .mdph-demarches-angle-right,
    .mdph-body-top .mdph-demarches-text:focus .mdph-demarches-angle-right {
        color: white;
    }

    .mdph-body-top .mdph-demarches-text:focus {
        outline-color: #FFFFFF !important;
    }

    .mdph-contrast .mdph-body-top .mdph-demarches-text:focus {
        outline-color: #ed6b17 !important;
    }

.mdph-body-top .mdph-demarches-cases-center {
    margin-left: auto;
    margin-right: auto;
    width: 610px;
}

.mdph-body-top .mdph-demarches-case {
    margin-left: 12px;
    margin-top: 3em;
    margin-bottom: 3em;
}

/*
	*
	* XS RULES
	*
	*/
@media (max-width: 767px) {
    /* xs */
    .mdph-body-top .mdph-demarches-text {
        border-left: 0px #204473 solid;
        text-align: center;
        margin-top: 5px;
    }

    .mdph-body-top .mdph-demarches-cases-center {
        margin-left: auto;
        margin-right: auto;
        width: 300px;
    }

    .mdph-body-top .mdph-demarches-case {
        margin-top: 12px;
        margin-bottom: 0px;
    }

    .mdph-body-top .mdph-demarches-cases {
        padding-bottom: 20px;
    }

    .mdph-body-bottom .mdph-links-button-img img {
        height: 60px !important;
        width: 60px !important;
    }

    .mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img img {
        height: 70px !important;
        width: 90px !important;
    }
}

/*
	*
	* SM RULES
	*
	*/
@media (min-width: 768px) and (max-width: 991px) {
    /* sm */
    .mdph-body-top .mdph-demarches-texts {
        height: 40px;
        line-height: 40px;
    }

    .mdph-body-top .mdph-demarches-case {
        margin-left: 6px;
    }

    .mdph-body-top .mdph-demarches-text {
        border-left: 0px #204473 solid;
        text-align: center;
        margin-top: 5px;
    }

    .mdph-body-top .mdph-demarches-cases {
        padding-bottom: 20px;
    }

    .mdph-body-bottom .mdph-links-button-img img {
        height: 90px !important;
        width: 90px !important;
    }

    .mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img img {
        height: 80px !important;
        width: 115px !important;
    }
}
/*
	*
	* MD RULES
	*
	*/
@media (min-width: 992px) and (max-width: 1199px) {
    /* md */
    .mdph-body-top .mdph-demarches-texts {
        height: 40px;
        line-height: 40px;
    }

    .mdph-body-top .mdph-demarches-text {
        border-left: 0px #204473 solid;
        text-align: center;
        margin-top: 5px;
    }

    .mdph-body-top .mdph-demarches-cases {
        padding-bottom: 20px;
    }

    .mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img img {
        height: 90px !important;
        width: 128px !important;
    }
}
/*
	*
	* LG RULES
	*
	*/
@media (min-width: 1200px) {
    /* lg */
    .mdph-body-top .mdph-demarches-cases,
    .mdph-body-top .mdph-demarches-texts {
        display: block;
        float: left;
    }

    .mdph-body-top .mdph-demarches-texts {
        margin-top: 60px;
    }
}

/*
	*
	* BODY BOTTOM
	*
	*/

/* RQM27 - Augmentation du contraste sur la sélection de texte */
.mdph-body-bottom ::selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}
.mdph-body-bottom ::-moz-selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}

.mdph-body-bottom .mdph-links-buttons h3,
.mdph-body-bottom .mdph-links-description-title {
    font-size: 25px;
    font-size: 1.8em;
    font-weight: 100;
}

.mdph-body-bottom .mdph-links-descriptions {
    margin-top: 15px;
}

.mdph-body-bottom .mdph-links-button {
    margin: 5px 0px;
    width: 100%;
    max-height: 400px;
    min-height: 150px;
    line-height: 150px;
    display: block;
}

.mdph-body-bottom .mdph-links-button-1 .mdph-links-button,
.mdph-body-bottom .mdph-links-button-3 .mdph-links-button,
.mdph-body-bottom .mdph-links-button-2 .mdph-links-button {
    background-color: #204473;
}

.mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img img {
    height: 100px;
    width: 160px;
}

.mdph-body-bottom .mdph-links-button-4 .mdph-links-button {
    background-color: #ef782b;
}

.mdph-body-bottom .mdph-links-descriptions {
    min-height: 340px;
    max-height: 1000px;
    font-size: 14px;
    font-size: 1em;
}

/* buttons left */
.mdph-body-bottom .mdph-links-button-1,
.mdph-body-bottom .mdph-links-button-3 {
    padding-right: 5px;
}

/* buttons right */
.mdph-body-bottom .mdph-links-button-2,
.mdph-body-bottom .mdph-links-button-4 {
    padding-left: 5px;
}

.mdph-body-bottom .mdph-links-button-text {
    color: white;
    margin-left: 5%;
    margin-right: 35%;
    z-index: 2;
    position: relative;
    font-size: 14px;
    font-size: 1em;
    font-weight: 100;
}

.mdph-body-bottom .mdph-links-button-4 .mdph-links-button-text {
    color: black;
}

.mdph-body-bottom .mdph-links-button-img {
    z-index: 1;
    position: absolute;
    top: 7px;
}

.mdph-body-bottom .mdph-links-button-2 .mdph-links-button-img,
.mdph-body-bottom .mdph-links-button-4 .mdph-links-button-img {
    right: 30px;
}

.mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img,
.mdph-body-bottom .mdph-links-button-3 .mdph-links-button-img {
    right: 15px;
}

.mdph-body-bottom .mdph-links-button-img img {
    height: 100px;
    width: 100px;
}


.mdph-body-bottom .mdph-links-description-img {
    padding-left: 0px;
}

    .mdph-body-bottom .mdph-links-description-img img {
        border-radius: 50%;
        border: 1px #cedae1 solid;
        height: 75px;
        width: 75px;
    }

.mdph-body-bottom .mdph-links-description-title {
    /*word-break: break-all;*/
    word-wrap: break-word;
}

    .mdph-body-bottom .mdph-links-description-title h3 {
        margin-top: 10px;
        font-size: 1.6em;
        font-weight: 100;
        width: 100%;
    }

.mdph-body-bottom .mdph-links-description-button {
    padding-left: 0px;
    padding-right: 0px;
    bottom: 5px;
    position: absolute;
}

/* RQM27 - Augmentation du contraste sur la sélection de texte */
.mdph-body-bottom .mdph-links-description-button a ::selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}
.mdph-body-bottom .mdph-links-description-button a  ::-moz-selection {
    background-color:rgba(255, 255, 255, 0.996);
    color:#123A6D;
}

    .mdph-body-bottom .mdph-links-description-button a {
        color: black;
        cursor: pointer;
        line-height: 50px;
        display: block;
        text-decoration: none;
        background-color: #ef782b;
    }

        .mdph-body-bottom .mdph-links-description-button a div {
            font-weight: bold;
        }

.mdph-body-bottom .mdph-links-description-texts {
    padding: 0px;
}

.mdph-body-bottom .mdph-links-description-title,
.mdph-body-bottom .mdph-links-description-text {
    padding-left: 5px;
    padding-right: 5px;
}

.mdph-body-bottom .mdph-links-description-title,
.mdph-body-bottom .mdph-links-description-text {
    font-size: 14px;
    font-size: 1em;
}

/** hover rules */
.mdph-body-bottom .mdph-links-description-button:hover a {
    background-color: #ed6b17;
}

.mdph-body-bottom .mdph-links-button-1 .mdph-links-button:hover,
.mdph-body-bottom .mdph-links-button-3 .mdph-links-button:hover,
.mdph-body-bottom .mdph-links-button-2 .mdph-links-button:hover {
    background-color: #123A6D;
}

.mdph-body-bottom .mdph-links-button-4 .mdph-links-button:hover {
    background-color: #ed6b17;
}

.mdph-body-bottom .mdph-links-description-button a:focus {
    background-color: #ed6b17;
    outline-color: #000000  !important;
}

.mdph-contrast .mdph-body-bottom .mdph-links-description-button a:focus {
    outline-color: #ed6b17 !important;
}

.mdph-body-bottom .mdph-links-button-1 .mdph-links-button:focus,
.mdph-body-bottom .mdph-links-button-3 .mdph-links-button:focus,
.mdph-body-bottom .mdph-links-button-2 .mdph-links-button:focus {
    background-color: #123A6D;
    outline-color: #ed6b17 !important;
}

.mdph-body-bottom .mdph-links-button-4 .mdph-links-button:focus {
    background-color: #ed6b17;
    outline-color: #000000 !important;
}

.mdph-contrast .mdph-body-bottom .mdph-links-button-4 .mdph-links-button:focus {
    outline-color: #ed6b17 !important;
}

/*
	*
	* LG RULES
	*
	*/
@media (min-width: 992px) {
    /* lg */
    .mdph-body-bottom .mdph-links-description-title,
    .mdph-body-bottom .mdph-links-description-text {
        padding: 0px;
    }

    .mdph-body-bottom .mdph-links-descriptions {
        padding-left: 0px;
        padding-bottom: 76px;
    }

    /* table for links access */
    .mdph-body-bottom .mdph-links-button-row {
        display: table-row;
    }

        .mdph-body-bottom .mdph-links-button-row > a {
            display: table-cell;
            float: none;
            padding: 0px;
        }

            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1,
            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2,
            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3 {
                background-color: #204473;
            }

            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4 {
                background-color: #ef782b;
            }

    .mdph-body-bottom .mdph-links-buttons {
        display: table;
        border-spacing: 15px;
        border-collapse: separate;
        padding-left: 0px;
        padding-right: 0px;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1:hover,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2:hover,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3:hover {
        background-color: #123A6D;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:hover {
        background-color: #ed6b17;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1:focus,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2:focus,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3:focus {
        background-color: #123A6D;
        outline-color: #ed6b17 !important;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:focus {
        background-color: #ed6b17;
        outline-color: #000000 !important;
    }

    .mdph-contrast .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:focus {
        outline-color: #ed6b17 !important;
    }

    .mdph-body-bottom .mdph-links-button {
        background-color: initial !important;
    }
}
/*
	*
	* SM RULES
	*
	*/
@media (min-width: 768px) and (max-width: 991px) {
    /* sm */
    .mdph-body-bottom .mdph-links-description-button {
        position: relative;
        bottom: inherit;
        top: 30px;
        padding-right: 0px;
    }

    .mdph-body-bottom .mdph-links-descriptions {
    }

    .mdph-body-bottom .mdph-links-description-title,
    .mdph-body-bottom .mdph-links-description-text {
        line-height: 120px;
    }

    .mdph-body-bottom .mdph-links-description-img img {
        margin-top: 10px;
    }

    .mdph-body-bottom .mdph-links-descriptions {
        padding-left: 0px;
    }

    .mdph-body-bottom .mdph-links-descriptions {
        min-height: 120px;
    }

    .mdph-body-bottom .mdph-links-description-img {
        padding-left: 15px;
    }


    /* table for links access */
    .mdph-body-bottom .mdph-links-button-row {
        display: table-row;
    }

        .mdph-body-bottom .mdph-links-button-row > a {
            display: table-cell;
            float: none;
            padding: 0px;
        }

            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1,
            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2,
            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3 {
                background-color: #204473;
            }

            .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4 {
                background-color: #ef782b;
            }

    .mdph-body-bottom .mdph-links-buttons {
        display: table;
        border-spacing: 15px;
        border-collapse: separate;
        padding-left: 0px;
        padding-right: 0px;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1:hover,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2:hover,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3:hover {
        background-color: #123A6D;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:hover {
        background-color: #ed6b17;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-1:focus,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-2:focus,
    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-3:focus {
        background-color: #123A6D;
        outline-color: #ed6b17 !important;
    }

    .mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:focus {
        background-color: #ed6b17;
        outline-color: #000000 !important;
    }

     .mdph-contrast.mdph-body-bottom .mdph-links-button-row > a.mdph-links-button-4:focus {
        outline-color: #ed6b17 !important;
    }

    .mdph-body-bottom .mdph-links-button {
        background-color: initial !important;
    }
}
/*
	*
	* XS RULES
	*
	*/
@media (max-width: 767px) {
    /* xs */
    .mdph-body-bottom .mdph-links-button-1,
    .mdph-body-bottom .mdph-links-button-3,
    .mdph-body-bottom .mdph-links-button-2,
    .mdph-body-bottom .mdph-links-button-4 {
        padding-right: 0px;
        padding-left: 0px;
    }

    .mdph-body-bottom .mdph-links-description-button {
        position: relative;
        bottom: inherit;
        margin-top: 25px;
        margin-bottom: 10px;
        padding-right: 0px;
    }

    .mdph-body-bottom .mdph-links-descriptions {
        min-height: 220px;
    }

    .mdph-body-bottom > .container {
        padding-right: 0px;
        padding-left: 0px;
    }

    .mdph-body-bottom .mdph-links-description-img {
        padding-left: 0px;
    }

    .mdph-body-bottom .mdph-links-buttons,
    .mdph-body-bottom .mdph-links-descriptions {
        margin-top: 10px;
    }

    .mdph-body-bottom .mdph-links-button-1 .mdph-links-button-img {
        right: 15px;
    }

    .mdph-body-bottom .mdph-links-button-3 .mdph-links-button-img {
        right: 30px;
    }
}

@media (min-width: 768px) {
    .mdph-body-bottom {
        /* Because container is child*/
        padding-right: 0px;
        padding-left: 0px;
    }
}
/*
* Contrast
*/
.mdph-contrast .mdph-demarches-case,
.mdph-contrast .mdph-links-button,
.mdph-contrast .mdph-links-description-button {
    border: solid 2px;
    border-color: #000000 !important;
}

.mdph-contrast .mdph-action-research {
    /*border-bottom: solid 1px;*/
    border-bottom-color: #000000 !important;
}

.mdph-contrast .mdph-body-top .mdph-demarches-text {
    border-left-color: #000000 !important;
}
