/*-------------------------------*/
/*           Basics              */
/*-------------------------------*/

body {
    position: relative;
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    line-height: 100%;
    color: #000;
    font-size: 100%;
}

p {
    line-height: 1.5em;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin-top: 5px;
}

/*-------------------------------*/
/*           Fixes               */
/*-------------------------------*/

.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {background-color: transparent;}

#page {
    padding-top: 15px;
    max-width: 1920px;
}

.btn {
    cursor: pointer !important;
}

.btn-circle {
    border-radius: 20px !important;
}

a > .fa {
    color: inherit !important;
}

.font-bold {
    font-weight: bold;
}

.image-edit-action {
    display: none !important; /** tmp rgr **/
}

#allow-cookie-bar {
    background: #fcfcfc;
    color: #555;
}

li.item-menu {
    position: relative;
}

/** fix stars comments border **/
.panel-heading > span > img, #raty > img {
    border: 0 solid #a6a6a6;
    margin: 0;
}

.auth {
    margin: 60px auto;
}

.badge {
    padding: .3em;
    font-size: 1em;
}

.btn-back-to-top {
    background: none;
    margin: 0;
    position: fixed;
    bottom: 2em;
    right: 2em;
    z-index: 100;
    display: none;
    text-decoration: none;
}

#page iframe {
    max-width: 100%;
}

@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        /*position: absolute;*/
        background-color: #FFF;
    }
}

.only-print {
    display:none;
}

ul.node-add-panel li:not(.list-group-item-page) {
    margin-left: 5%;
}

#theme_css {
    height: 800px;
}

#page.container-fluid ul > li {
    padding-bottom: 10px;
}

/*-------------------------------*/
/*        Tools                  */
/*-------------------------------*/

#loading-icon {
    display:none;
    position:fixed;
    left:0;top:0;right:0;bottom:0;
    z-index:1000;
    background: rgba(225,225,225,0.7);
}
#loading-icon > .fa {
    position:absolute;
    left:45%;
    top:45%;
}

#allow-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    z-index: 10000;
    border: none;
    background: #fcfcfc;
}
#allow-cookie-bar > button {
    font-size: 1.5em;
}

.img-blur {
    transition: .5s;
    -webkit-filter: blur(5px);
    filter: blur(5px);
}

nav.navbar.catalog-navigation.affix {
    z-index: 998;
    top: 0;
    left: 0;
    right: 0;
}

/*-------------------------------*/
/*        Forms                  */
/*-------------------------------*/

.subform {
    padding: 20px;
    margin-bottom:20px;
}

.subform h6{
    margin:0;
        margin-bottom: 10px;
}

.subform div{
    display: inline;
}

input[type=checkbox],
input[type=radio] {
    margin: 4px;
}

.form-element-sortable-draggable li {
    cursor:pointer;
}

/*-------------------------------*/
/*           Wrappers            */
/*-------------------------------*/

#sidebar-wrapper {
    z-index: 1000;
    left: 250px;
    width: 0;
    height: 100%;
    margin-left: -250px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1a1a1a;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

#wrapper.toggled #sidebar-wrapper {
    width: 250px;
}

#page-content-wrapper {
    width: 100%;
}

/*-------------------------------*/
/*        Navbar                 */
/*-------------------------------*/

nav.navbar.navbar-default {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 0;
}

nav.navbar.navbar-default #searchbar,
nav.navbar.navbar-default #searchbar .navbar-form .form-group {
    display: block !important;
    text-align: left;
}
nav.navbar.navbar-default #searchbar .nav > li {
    position: relative;
    display: inline-block !important;
}
nav.navbar.navbar-default .navbar-collapse,
nav.navbar.navbar-default .navbar-form {
    border-color: transparent !important;
}

.bg-nav-inverse {
    background-color: #f5f5f5;
}
nav.navbar.navbar-default #searchbar .nav > li.bg-nav-inverse > a,
nav.navbar.navbar-default #searchbar .nav > li.bg-nav-inverse > a > .fa {
    color: #777;
}
nav.navbar.navbar-default #searchbar .fa {
    font-size: 1.2em !important;
}

nav.navbar.navbar-default #searchbar .material-icons {
    font-size: 2em;
    line-height: 70px;
}

.criteria-nav .material-icons {
    font-size: 2em;
}

.criteria-nav .nav-actions span.material-icons {
    vertical-align: middle;
    margin-bottom: 5px;
}

nav.navbar .navbar-form .btn .fa {
    font-size: 1.2em;
}

#navbar-collapse-menu .nav.navbar-nav > li > a {
    padding: 15px 25px;
}

nav.navbar.cms-navigation .navbar-header .navbar-brand {
    margin-top: 0;
}

.bootbox .modal-dialog .modal-content .modal-body .bootbox-body p#errorTooLongURI {
    color: #fff;
    background: #dc3545;
    padding: 10px;
    border-radius: 5px;
}

.bootbox .modal-dialog .modal-content .modal-body .bootbox-body p#errorTooLongURI i {
    padding-right: 7px;
}

/** Fix edit button navigation **/
.fa-nav-link {
    cursor: pointer;
    position: absolute;
    left: 5px;
    top: 18px;
    z-index: 2;
}
.fa-nav-link-subnavigation  {
    cursor: pointer;
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 2;
}

/** Fix edit button tab **/
.fa-tab-link {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    padding-bottom: 15px;
    padding-top: 15px;
    margin-left: 7px;
}

/*-------------------------------*/
/*            Footer             */
/*-------------------------------*/

footer {
    background-color: #fff;
    color: #000;
    padding: 50px 0;
}

/*-------------------------------*/
/*           Elements            */
/*-------------------------------*/

.panel.panel-card > .panel-heading {
    background-image: none;
    text-shadow: none !important;
}
.panel.panel-card .panel-heading .btn.btn-link .fa {
    color: #ccc !important;
}
.node-region-body {
    padding-bottom: 1em;
}
.node-region-body .node-item {
    padding: 0.5em 1em;
}
.node-region-body #node-region-tab .nav.nav-tabs li > a {
    padding: 10px 1.7em;
}
.node-header-description {
    padding: 1em;
}
.node-header-description ul {
    overflow: hidden;
}
.node-region-footer {
    background-color: #f2f2f2;
    padding: 30px 0;
}

.node-region-footer .node-item {
    padding: 1em;
}

.node-comment {
    border:none;
    padding:0;
    margin: 15px;
        margin-right: 0;
        margin-left: 0;
}
.node-slide {
    border:0;
    padding:0;
    margin:0;
    border-radius: 0;
    position: absolute;
    width: 100%;
}

.node-slideshow {
    margin: 0;
        margin-bottom: 15px;
}
.slideshow {
   position: relative !important;
   width: 100% !important;
   overflow: hidden;
}
.fx-list .feed-item,
.fx-list .node-slide-thumb,
.fx-none .feed-item,
.fx-none .node-slide-thumb {
    position: relative;
}
.node-slide-thumb {
    width: 100%;
}
.node-slide-thumb img{
    width: 100%;
}
.node-slide-thumb a{
    width: 100%;
    position: relative;
}
.node-slide-thumb .node-slide-teaser {
    position:absolute;
    padding: 10px;
    bottom:0;
    left:0;
    right:0;
    min-height: 65px;
    background-color: #000;
    opacity:0.7;
    color: #FFF;
}
.node-slide-thumb .node-slide-title {
   text-transform: uppercase;
   font-size:16px;
   line-height:16px;
   margin-bottom: 5px;
}
.node-slide-thumb .node-slide-controls {
    position: absolute;
    top:50%;
    left:5%;
    width:90%;
    opacity:0;
    z-index: 100;
}

/*-------------------------------*/
/*           Carousel            */
/*-------------------------------*/

.carousel {
    height: 250px;
}
.carousel a.btn {
    color: #fff;
}
.carousel a.carousel-link,
.carousel a.carousel-link * {
    color: #fff;
}
.item,
.active,
.carousel-inner,
.carousel-inner .item {
    height: 100%;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.fill {
    width: 100%;
    height: 100%;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

/*-------------------------------*/
/*           Feed                */
/*-------------------------------*/

/** Commun **/
.slideshow > .cycle-carousel-wrap > .feed-item {
    margin: .5em;
    padding: .5em;
    background: #fcfcfc;
    position: relative !important;
    width: 175px !important;
    overflow: hidden;
    display: block;
    white-space: normal;
    vertical-align: bottom;
    height: auto !important;
}
.slideshow > .cycle-carousel-wrap > .feed-item > a.feed-item-img-link {
    display: block;
    background-color: #ddd;
}
.slideshow .feed-item .feed-item-body .feed-item-date {
    display: block;
}
.slideshow .feed-item .feed-item-img.img-responsive {
    max-width: 200px;
    height: auto !important;
}
.slideshow .cycle-carousel-wrap .feed-item .feed-item-img.img-responsive {
    max-width: 100%;
    height: auto !important;
}
.slideshow .cycle-carousel-wrap .feed-item .feed-item-default-img {
    width: 100%;
    height:100%;
    display: block;
}
.slideshow .cycle-carousel-wrap .feed-item .feed-item-default-img > i.fa {
    background: transparent !important;
    position: absolute;
    display: block;
    top: 25%;
    left: 25%;
}

.feed-item a > img.feed-item-img {
    margin-bottom: .5em;
}
.feed-item img.feed-item-document-type {
    height: 72px;
    margin: 0.5em auto;
}
.feed-item-slideshow-controls{
    text-align:left;
}

.node-item-content > div {
    /*position:relative;*/
}
.node-item-content.node-item-content-none > div > .feed-item-slideshow-controls,
.node-item-content.node-item-content-fade > div > .feed-item-slideshow-controls,
.node-item-content.node-item-content-scrollHorz > div > .feed-item-slideshow-controls,
.node-item-content.node-item-content-flipVert > div > .feed-item-slideshow-controls {
    position: absolute;
    z-index: 997;
    bottom: 15px;
    right: 15px;
}

/** FX-CAROUSEL (carrousel) **/
.node-item-content-carousel {
    position: relative;
}
.node-item-content-carousel .feed-item-slideshow-controls {
    position: absolute;
    width: 100%;
    bottom: 60%;
    z-index: 997;
    opacity: 0.5;
}
.node-item-content-carousel .feed-item-slideshow-controls:hover {
    opacity: 1;
}
.node-item-content-carousel .feed-item-slideshow-controls i.fa {
    font-size: 3em;
    position: absolute;
}
.node-item-content-carousel .feed-item-slideshow-controls i.fa-chevron-right {
    right: 0;
}
.node-item-content-carousel .feed-item-slideshow-controls i.fa-chevron-left {
    left: 0;
}
.node-item-content-carousel .feed-item-slideshow-controls i.fa-pause {
    display: none;
}

/** FX-NONE (diaporama) **/
.slideshow.fx-none .feed-item {
    width: 100%;
    padding: 1em;
}
.slideshow.fx-none .feed-item .feed-item-img-link {
    display: block;
/*    width: 100%;*/
}
.slideshow.fx-none .feed-item .feed-item-img {
    width: 100%;
    margin: auto;
}
.slideshow.fx-none .feed-item .feed-item-body .feed-item-description {
    display: none;
}
.slideshow.fx-none .feed-item img.feed-item-document-type {
    margin: 0;
        margin-right: .5em;
        margin-bottom: .5em;
    float: left !important;
}
.slideshow.fx-none .feed-item .feed-item-body .feed-item-date {
    display: none;
}

aside .thumbnail *:not(.btn) {
    background-color: inherit;
}

/** Affichage commun pour les régions centrales **/
section .slideshow .feed-item {
    overflow: auto;
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    display: table;
    height: auto;
    width: 100%;
    max-height: 600px;
    min-height: 150px;
}
section .slideshow.fx-list .feed-item {
    max-height: none;
    margin-bottom: 1em;
}
section .slideshow.fx-list .feed-item .feed-item-img-link,
section .slideshow.fx-flipVert .feed-item .feed-item-img-link,
section .slideshow.fx-scrollHorz .feed-item .feed-item-img-link,
section .slideshow.fx-fade .feed-item .feed-item-img-link {
/*    display: table-cell;
    width: 30%;
    vertical-align: top;*/
    padding: .5em;
}
section .slideshow.fx-list .feed-item .feed-item-img-link .feed-item-img,
section .slideshow.fx-flipVert .feed-item .feed-item-img-link .feed-item-img,
section .slideshow.fx-scrollHorz .feed-item .feed-item-img-link .feed-item-img,
section .slideshow.fx-fade .feed-item .feed-item-img-link .feed-item-img {
    width: 100%;
    height: auto !important;
}
section .slideshow.fx-flipVert .feed-item .feed-item-body,
section .slideshow.fx-scrollHorz .feed-item .feed-item-body,
section .slideshow.fx-fade .feed-item .feed-item-body {
/*    display: table-cell;
    width: 70%;
    vertical-align: top;*/
}
section .slideshow.fx-flipVert .feed-item .feed-item-body > *,
section .slideshow.fx-scrollHorz .feed-item .feed-item-body > *,
section .slideshow.fx-fade .feed-item .feed-item-body > * {
    padding: .2em 1em;
}
section .slideshow.fx-list .feed-item .feed-item-body.feed-item-body-full,
section .slideshow.fx-flipVert .feed-item .feed-item-body.feed-item-body-full,
section .slideshow.fx-scrollHorz .feed-item .feed-item-body.feed-item-body-full,
section .slideshow.fx-fade .feed-item .feed-item-body.feed-item-body-full {
    display: block;
    width: 100%;
    vertical-align: top;
}

/** Affichage région bas de page **/
section.node-region-footer .slideshow.fx-list .feed-item .feed-item-img-link,
section.node-region-footer .slideshow.fx-flipVert .feed-item .feed-item-img-link,
section.node-region-footer .slideshow.fx-scrollHorz .feed-item .feed-item-img-link,
section.node-region-footer .slideshow.fx-fade .feed-item .feed-item-img-link {
    width: 15%;
}
section.node-region-footer .slideshow.fx-list .feed-item .feed-item-body,
section.node-region-footer .slideshow.fx-flipVert .feed-item .feed-item-body,
section.node-region-footer .slideshow.fx-scrollHorz .feed-item .feed-item-body,
section.node-region-footer .slideshow.fx-fade .feed-item .feed-item-body {
    width: 85%;
}
section.node-region-footer .slideshow .feed-item {
    width: 100%;
}

.slideshow .bloc-support {
    margin-top: 1em;
}

/*-------------------------------*/
/*       Bootstrap calendar      */
/*-------------------------------*/

.calendar-wrapper {
    padding: 5px 5px;
    position: relative;
}
.calendar-form {
    margin: 15px auto;
    text-align: center;
}

/*-------------------------------*/
/*         Node content          */
/*-------------------------------*/

.node-region-body .form-vertical {
    padding: 15px;
}

.node-item.node-disabled .panel.panel-card .panel-heading .btn.btn-link .fa {
    color: #000 !important;
}

.node-item-readmore{
    margin-top: 1em;
    margin-bottom: 1em;
}

.node-item-thumb {
    margin-right: 15px;
    margin-bottom: 15px;
    float: left;
    max-width: 45%;
    max-height: 600px;
}

.node-item-thumb img{
    width: 100%;
}

.node-item-created{
    font-weight:bolder;
    font-style: italic;
    text-align: right;
}

/*-------------------------------*/
/*      Calendar style      */
/*-------------------------------*/
.node-agenda > .node-item.node-event {
    margin: 0;
    padding: 1em 0;
    border-top: 2px solid #EEE;
}
.node-agenda > .node-item.node-event:last-child {
    border-bottom: 2px solid #EEE;
}
.node-agenda > .node-item .media .media-left > img {
    width: 100%;
}
.node-agenda .node-item .media .media-left {
    width: 25%;
}
.node-agenda .node-item .media .media-body {
    width: 75%;
    padding: 0 1em;
}
aside .node-agenda .node-item .media .media-left {
    margin: 0 auto;
    display: block;
    width: auto;
    max-width: 250px;
}
aside .node-agenda .node-item .media .media-body {
    display: block;
    width: 100%;
}
aside .node-agenda .form-inline select.form-control {
    height: 30px;
    line-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}
aside .node-agenda > .node-item.node-event {
    text-align: center;
}
.node-agenda .node-item .media .event-description {
    display: none;
    margin-top: .5em;
    padding: .5em;
        padding-top: 1em;
    background: #EEE;
    position: relative;
}
.node-agenda .node-item .media .event-description .event-description-close {
    position: absolute;
    top: .2em;
    left: .2em;
    cursor: pointer;
}

.node-page {
    cursor: pointer;
}

.node-disabled-state {
    text-decoration: none;
    font-style: italic;
    opacity: 1;
    color: #d9534f !important;
}

.node-disabled {
    background-color: #ccc;
    opacity: 0.7 !important;
}

/** Panel card **/
.panel-card > .panel-heading {
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 150px;
}

.panel-card > .panel-heading {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.panel-card > .panel-heading > a.panel-heading-link {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 100%;
    height: 100%;
    background-image: url("../vectors/64/image.svg");
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.panel-card > .panel-heading > a.panel-heading-link:hover {
    -moz-box-shadow: inset 0px 0px 20px 3px #000000;
    -webkit-box-shadow: inset 0px 0px 20px 3px #000000;
    -o-box-shadow: inset 0px 0px 20px 3px #000000;
    box-shadow: inset 0px 0px 20px 3px #000000;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#000000, Direction=NaN, Strength=20);
}

/**
 * Debug
 **/
.node-region-debug-ajax {
    padding: 1em;
}

/* VERSION MOBILE */
@media screen and (max-width: 768px) {
    section .slideshow:not(.fx-carousel) .feed-item {
        display: block;
    }
    section .slideshow:not(.fx-carousel) .feed-item .feed-item-body,
    section .slideshow:not(.fx-carousel) .feed-item .feed-item-img-link {
        display: block;
        width: auto;
    }
    section .slideshow:not(.fx-carousel) .feed-item .feed-item-img-link{
        float: left;
        max-width: 64px;
    }
    section.node-region-body,
    section.node-region-body .node-header-description,
    section.node-region-body .node-list .node-item {
        padding-left: 0;
        padding-right: 0;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5em;
    }

    section.node-region-body .node-item-thumb {
        max-width: none;
        float: none;
        margin-left: -1em;
        margin-right: -1em;
    }

    .calendar-wrapper {
        padding: 0;
    }

    nav.navbar.navbar-default {
        margin-left: 0;
        margin-right: 0;
    }
    .navbar-nav .open .dropdown-menu .dropdown-header,
    .navbar-nav .open .dropdown-menu > li > a,
    #navbar-collapse-menu ul.navbar-nav > li > a {
        padding-left: 40px !important;
    }
    #navbar-collapse-menu .fa-nav-link  {
        top: 15px;
        left: 20px;
    }
    #navbar-collapse-menu .fa-nav-link-subnavigation  {
        top: 8px;
        left: 20px;
    }
    #searchbar.navbar-collapse {
        padding-left: 0;
        padding-right: 0;
    }

    .node-region-aside-responsive {
        padding-left: 15px;
        padding-right: 15px;
    }

    section.node-region-body .node-list {
        padding: 15px;
    }

    section.node-region-body #node-region-tab.node-item {
        padding: 0;
    }

    .node-list-agenda .node-item > img {
        max-width: 100%;
    }

    nav.navbar.navbar-default #searchbar .material-icons {
        font-size: 24px;
        line-height: 0;
        vertical-align: middle;
    }
}


/**
 * Drag and Drop style
 **/
.gu-transit {
    border: 2px dashed #222;
}

.drag-handle {
    cursor: move !important;
}

.highlighted {
    position: relative;
    background-color: #e5e5e5 !important;
}

#drag-overlay {
    background:rgba(0,0,0,0.7);
    display:none;
    width:100%; height:100%;
    position:fixed; top:0; left:0; bottom: 0; right: 0; z-index:9998;
}

.pointer {
    cursor: pointer;
}

.alert {
    background-image: none;
    border: none;
    border-radius: 0px;
    color:#FFF;
}

.alert-info {
    background-color: #2196f3 !important;
}

.alert-success {
    background-color: #4caf50 !important;
}

.alert-warning {
    background-color: #ffc107 !important;
}

.alert-danger {
    background-color: #f44336 !important;
}

.fm-modal {
    z-index: 10011; /** Because CKEditor image dialog was at 10010 */
    width:80%;
    height:80%;
    top: 10%;
    left:10%;
    border:0;
    position:fixed;
    background: #FCFCFC;
    -moz-box-shadow: 0px 1px 5px 0px #656565;
    -webkit-box-shadow: 0px 1px 5px 0px #656565;
    -o-box-shadow: 0px 1px 5px 0px #656565;
    box-shadow: 0px 1px 5px 0px #656565;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=180, Strength=5);
}