
/*
COLORS
action : #4970EC
action-active : #4A71ED
action-visited : #6f6c87;
selection: #dd4b39;
background-light: #F0F0F0
background-active: #E3E3E3
border-grey: #CCC
text-grey: #818181
text-grey-deeper: #323232
dangerous: #ed1e26
*/
html {
    height:100%;
}
/* body */
body {
    font-size: 1.2em;
    min-height:100%;
    margin:0;
    padding:0;
}

/* HTML5 */
main { display: block; }

/* LINKS */

a, .a-like {
    color: #4970EC;
    cursor: pointer;
}
/*a:visited {
    color: #6f6c87;
}*/
a:active { color: #4A71ED; }
a:hover,
a.active {
    color: #4A71ED;
}

.noline, .hoverline{ text-decoration: none; }
.hoverline:hover{ text-decoration: underline; }
.is-active { background-color: #E3E3E3; }
.is-active:hover { background-color: #E3E3E3; }
.visible { visibility: visible; }
.italic { font-style:italic; }
.hand { cursor: pointer; }
/* Buttons */
.button.tiny {
    vertical-align:middle;
    text-align:center;
    border-radius: 100%;
    font-size: 2.6rem;
    line-height: 1em;
    padding: 0;
    height: .95em;
    width: .95em;
    position: relative;
    background-color: #FFF;
    border: 1px solid #CCC;
    color: #CCC;
    display: inline-block;
}
.button.tiny:hover {
    /*background-color: #4970EC;*/
    color: #4970EC;
    border-color: #4970EC;
}
.button.tiny>.icon:before { top: -0.9rem; }
.button.tiny:hover>.icon:before { color: #4970EC; }
.button.normal {
    padding:.6em 1em .6em .7em;
    text-decoration: none;
    margin: 1.5rem 0;
}

/* Actions style */

.button:focus { opacity: 0.8; }
.act-dangerous:hover {
    background-color: #ed1e26;
    color: #FFF;
    border-color: #ed1e26 !important;
}

button.blue:hover,
button.blue:focus,
.button.blue:hover,
.button.blue:focus {
    /*box-shadow: 0 0 3px #4A71ED;*/
    background-color: #4A71ED;
}
button:hover,
button:focus,
.button:hover,
.button:focus {
    opacity: .9;
    cursor:pointer;
}
button.unstyled {
    background: transparent;
    color: #818181;
}
button.unstyled:hover {
    color: #4A71ED;
}

/* FORMS */

fieldset{
    margin: 0;
    padding: 0;
}
input{
    border-radius: 0;
    border: 1px solid #CCC;
}
button.blue,
.button.blue,
input[type="button"].blue,
input[type="reset"].blue,
input[type="submit"].blue,
.record-readmore .fa {
    color: white !important;
}
.custom-button {
    background-color: #4A71ED;
    color: #FFF;
    border: none;
}
button.grey,
.button.grey,
input[type="button"].grey,
input[type="reset"].grey,
input[type="submit"].grey {
    background-color: #c1c1c1;
    color: #FFF;
    border: none;
}
select {
    background-color: #FFF;
    border: 1px solid #CCC;
}
select:hover, input:hover {
    /*border-color: #4A71ED;*/
    border-color: #818181;
}
select:focus, input:focus, button:focus {
    border-color: #4A71ED;
    outline:none;
    /*
    box-shadow: 0 0 6px #4A71ED;
    box-shadow: 0 0 3px #4A71ED;
    */
}
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#isSmall{
    display: block;
}

/* Médias */
.nao-media {
    position: relative;
    margin-top: 0;
}
.nao-media .caption {
    white-space: nowrap;
    background-color: rgba(0,0,0,.65);
    position: absolute;
    bottom: .2em;
    right: .2em;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 98%;
    color: #FFF;
    padding: 0 .5em;
}
.nao-media figcaption a {
    text-decoration: none;
    color: #FFF;
}
.nao-media figcaption a:hover {
    background-color: #4A71ED;
}
/* Tags system */
.tag {
    display: inline-block;
    padding: 0.02em .25em;
    border-radius: .2em;
    color: #FFF;
    background-color: #7ec5e9;
    margin-bottom:.2em;
    text-decoration:none;
}
a.tag { color:#fff;}
a.tag:hover { text-decoration: underline; }
.tag.style1,
.tag.typol {
    background-color: #7ec5e9;
}
.tag.style2,
.tag.chron {
    background-color: #8c5296;
}
.tag.style3,
.tag.geolo {
    background-color: #68bd97;
}
.tag.style4,
.tag.thema {
    background-color: #bd6868;
}
.tag.style5,
.tag.perso {
    background-color: #bdaa68;
}
.tag.style5,
.tag.ensem {
    background-color: #666;
}


/* Loading spinner */
.spinner {
    width: 54px;
}

.spinner > div {
    width: 1.7rem;
    height: 1.7rem;
    background-color: #818181;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
    animation: bouncedelay 1.4s infinite ease-in-out;
    /* Prevent first frame from flickering when animation starts */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
    0%, 80%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
    } 40% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
    }
}

/* boxes */
.box-shadow {
    box-shadow: 0 0 9px #BBBBBB;
    /*
    border: 1px solid #CCC;
    border-bottom-width: 2px;
    border-radius: 3px;
    */
}
@media screen and (max-width: 1050px) {

    .box-shadow {
        box-shadow: 0 0 15px #888888;
    }
}

/* typo */
.one-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.search-background em,
.highlight {
    background-color: rgba(73,112,236,.3);
    font-style:normal;
}

/* Share */
.share {
    position:relative;
    cursor:pointer;
}
.share-list {
    font-family: Helvetica, Arial, sans-serif;
    text-align:left;
    position:absolute;
    z-index:10;
    padding:1.5rem;
    list-style: none;
    background-color:white;
    border:1px dashed #888;
    border-radius: 3px;
    left: -10.2rem;
    top: 2rem;
    display:none;
    font-size:12px;
}
.icons-dark .share-list {
    top:2.9rem;
}
/*.share:hover .share-list {
    display:block;
}*/
.share-list:after {
    position:absolute;
    display:block;
    content:" ";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 .6rem .6rem .6rem;
    border-color: transparent transparent #888 transparent;
    top:-.6rem;
    left:11.1rem;
}
.share-item {
    display:inline-block;
    margin:0 6px 0 0;
}
.share-item a:hover {
    opacity: 0.8;
}
.share-item:nth-last-child(2) {
    margin:0;
}
.share-list > .title {
    font-weight:bold;
    margin:0 0 7px 0;
    display:block;
}
.share-item.permalink  {
    display:block;
    margin:0;
}
.share-list input {
    padding:5px;
    color:#666;
    background-color:white;
    width:200px;
}
.share-list input:focus {
    box-shadow:none;
}
.share-icon {
    display:block;
    width:32px;
    height:32px;
    background: url('../images/icons-share-32x352.png') no-repeat 0 0;
}
.share-icon.facebook  { background-position:0px 0px;}
.share-icon.twitter   { background-position:-32px 0px; }
.share-icon.google       { background-position:-64px 0px; }
.share-icon.pinterest { background-position:-96px 0px; }
.share-icon.email     { background-position:-128px 0px; }
.share-icon.linkedin  { background-position:-160px 0px; }
.share-icon.pinboard  { background-position:-192px 0px; }
.share-icon.wordpress { background-position:-224px 0px; }
.share-icon.reddit       { background-position:-256px 0px; }
.share-icon.tumblr    { background-position:-288px 0px; }
.share-icon.pocket    { background-position:-320px 0px; }


body > header {
    background-color: black;
    color: white;
    height: 6.4rem;
}

li.minheadrest {
    list-style: none;
}



/* notice commons */
.record-notice {
    position: relative;
    background-color: #FFF;
}

.record-notice .icons-group {
    position:absolute;
    right:0rem;
    z-index:2;
}
.record-notice-media {
    width: 100%;
    z-index:1;
    margin: 0 0 1rem;
    background-color: #E3E3E3;
    height: 16.6rem;
    overflow: hidden;
}
.record-notice-media img {
    display: inline;
    height: 8.3rem !important;
    width:auto !important;
    float: left;
    margin:0 1px 1px 0;
}
.record-notice-media a:first-child img {
    height: 16.6rem !important;
    margin-right:1px;
}
a.media-link:hover img {
    opacity: 0.5;
}
.caption.left {
    right: auto;
    left: .2em;
}
.caption.top {
    bottom: auto;
    top: .2em;
    width: 100%;
}
.record-notice-title {
    color: #0049FF;
    line-height: 1.2em;
    font-size: 1.4em;
    font-weight: normal;
    margin:0;
    padding:0 2rem;
}
.record-notice-details {
    list-style: none;
    padding: 0 2rem 1rem;
}
.record-notice-details.fields-details {
    padding: 0;
}
.record-notice-details img {
    margin-bottom: .3rem;
}
.record-notice-details > li {
    margin-left: 0;
}
.record-notice-details > li + li {
    margin-top: 0.5rem;
}
.record-notice-details li.record-notice-tags {

}
.record-notice-details li.record-notice-tags ul {
    list-style: none;
    padding-left: 0;
}
.record-notice-details .field {
    font-size: 1.1em;
    font-weight: bold;
    padding: 0 1% 0 0;
    text-align:right;
    vertical-align: top;
}
.record-notice-details .value {
    word-wrap: break-word;
    font-weight: normal;
}
@media (min-width: 768px) {
    .record-notice-details .field {
        width: 24%;
        display: inline-block;
    }
    .search-result-preview .record-notice-details .field, .record-notice-map .record-notice-details .field, #timeline .record-notice-text .record-notice-details .field {
        width: auto;
        display: inline;
    }
    .record-notice-details .value {
        width: 75%;
        display: inline-block;
    }
    .search-result-preview .record-notice-details .value, .record-notice-map  .record-notice-details .value, #timeline .record-notice-text .record-notice-details .value, .record-notice-markers .value {
        width: auto;
        display: inline;
    }
    .search-result-preview .record-notice-details .value p, .record-notice-map  .record-notice-details .value p, #timeline .record-notice-text .record-notice-details .value p {
        margin-left:1.5rem;
    }
    .search-result-preview .record-notice-details .value ul, .record-notice-map  .record-notice-details .value ul, #timeline .record-notice-text .record-notice-details .value ul {
        margin-left:1.5rem;
    }
}
.record-notice-details.fields-details p {
    margin-left: 0 !important;
}
.record-notice-details > li p.zone-separator {
    margin-top:.5em;
}
.record-notice-abstract {
    position: relative;
    max-height: 22.5em;
    overflow: hidden;
}
.record-notice-abstract .value {
    color: #323232;
}
.record-notice-abstract .ellipsis {
    position: absolute;
    top: 21em;
    right: 0;
}
.record-notice-tree .tree {
    margin: 0.4rem 0 0 0.8em;

}
.record-notice-tree .last {
    color: #4970EC;
    margin-left: 2.8rem;
}
.record-notice-tree .value>.tree {
    margin-left: 0.3em;
}
.record-notice-tree .tree-sub {
    background: #FFF;
}
.record-notice-tree .tree-link {
    color:#000;
    text-decoration: none;
}
.record-notice-tree .tree-link:hover {
    text-decoration: underline;
}

.record-notice .record-readmore {
    margin: 0 2rem 1.6rem 2rem;
}

/* Petit pansement */
.record-notice-details *[audience="internal"] {
    display:none !important;
}
.record-notice-details physfacet,
.record-notice-details genreform {
    margin-right: 7px;
    position: relative;
 }
.record-notice-details physfacet::after,
.record-notice-details genreform::after {
    content: '; ';
    display: inline-block;
    position: absolute;
    right: -3px;
}

/* Field label */
.field-label {
    background-color:#9d9d9d;
    padding:0.2em 0.4em;
    color:#fff;
    font-weight:normal;
    -webkit-border-radius: 2px;
       -moz-border-radius: 2px;
            border-radius: 2px;
}
.field-label.dc_contributor { background-color:#ff9432;}
.field-label.dc_coverage    { background-color:#7ec5e9;}
.field-label.dc_creator     { background-color:#3284ca;}
.field-label.dc_date        { background-color:#32c0d5;}
.field-label.dc_rights      { background-color:#7ec5e9;}
.field-label.dc_description { background-color:#8b5095;}
.field-label.dc_publisher   { background-color:#f55c58;}
.field-label.dc_format      { background-color:#be9739;}
.field-label.dc_identifier  { background-color:#cbde32;}
.field-label.dc_language    { background-color:#5cd0c4;}
.field-label.dc_relation    { background-color:#fcbf8f;}
.field-label.dc_source      { background-color:#c1b2b6;}
.field-label.dc_subject     { background-color:#79b845;}
.field-label.dc_title       { background-color:#e898b8;}
.field-label.dc_type        { background-color:#b07fc4;}

.barrel-roll {
    -moz-animation-name: roll;
    -moz-animation-duration: 4s;
    -moz-animation-iteration-count: 1;
    -o-animation-name: roll;
    -o-animation-duration: 4s;
    -o-animation-iteration-count: 1;
    -webkit-animation-name: roll;
    -webkit-animation-duration: 4s;
    -webkit-animation-iteration-count: 1;
}
@-webkit-keyframes roll {
    from { -webkit-transform: rotate(0deg) }
    to   { -webkit-transform: rotate(360deg) }
}
@-moz-keyframes roll {
    from { -moz-transform: rotate(0deg) }
    to   { -moz-transform: rotate(360deg) }
}
@keyframes roll {
    from { transform: rotate(0deg) }
    to   { transform: rotate(360deg) }
}
.popup-open {
    overflow: hidden;
}
.popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}
.popup.fade .popup-dialog {
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition:      -o-transform .3s ease-out;
    transition:         transform .3s ease-out;
    -webkit-transform: translate3d(0, -25%, 0);
    -o-transform: translate3d(0, -25%, 0);
    transform: translate3d(0, -25%, 0);
}
.popup.in .popup-dialog {
    -webkit-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.popup-open .popup {
    overflow-x: hidden;
    overflow-y: auto;
}
.popup-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}
.popup-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    outline: 0;
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(0, 0, 0, .5);
}
.popup-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #fff;
}
.popup-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0;
}
.popup-backdrop.in {
    filter: alpha(opacity=90);
    opacity: .9;
}
.popup-header {
    padding: 4px 44px 4px 10px;
    border-bottom: 1px solid #e2e2e2;
}
.popup-header .close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.6rem;
    line-height: 2.4rem;
    padding: 0;
}
.popup-title {
    margin: 0;
    line-height: 1.42857143;
}
.popup-body {
    position: relative;
    padding: 4px 10px;
    min-height:64px;
}
.popup-footer {
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
}
.popup-footer a {
    text-decoration: none;
}
.popup-footer .button{
    line-height: 32px;
    padding: 0 1.5em;
}

@media (min-width: 768px) {
    .popup-dialog {
        width: 600px;
        margin: 60px auto;
    }
    .popup-sm {
        width: 300px;
    }
}
@media (min-width: 992px) {
    .popup-lg {
        width: 900px;
    }
}

.tip {
    font-weight: bold;
    cursor: help;
}
.tip:hover {
    color: #0049ff;
}

.goback {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 30px;
    background-color: #000;
    opacity: 0.45;
    z-index: 0;
}
.goback:before {
    top: 50%;
    vertical-align: top;
    position: absolute;
    color: white;
    font-size: 32px;
    margin-left: -3px;
}

.goback:hover {
    opacity: 0.64;
}

.goback:hover:before {
    color: white!important;
}

@media print {
    .visible-print  { display: inherit !important; }
    .hidden-print   { display: none !important; }
}

/** ICONS **/

.icons-group {
  float: right;
  z-index: 2;
  font-size: 1.4em;
  height: 3.2rem;
  min-width: 3.2rem;
}

.icons-group-left {
  z-index: 2;
  font-size: 1.4em;
  height: 3.2rem;
  min-width: 3.2rem;
  padding: 2px;
}
.icons-group>*, .icons-group .icon {
  display: inline-block;
  height: 3.2rem;
  width: 3.2rem;
  line-height: 3.2rem;
  text-align: center;
  float:left;
}
.icons-group .fa {
    color: rgba(49, 49, 49, 0.65);
}

.icons-group.icons-dark .fa, .record-notice .fa {
    color: white !important;
}

.icons-group:not(.hidden-print) .share, .icons-group:not(.hidden-print) .custom-button-hover, .icons-group:not(.hidden-print) .search-close-notice {
    background-color: rgba(49, 49, 49, 0.65);
}



.search-medias-item .share, .icons-group.icons-h24 .custom-button-hover {
    background: none !important;
}

.icons-group.icons-dark a.custom-button-hover {
    background-color: rgba(49, 49, 49, 0.65);
}

.icons-group .search-close-notice:hover {
   background-color: red;
}

.headrestmenu .fa:hover,
.icons-group>*:hover .fa {
    color: rgba(49, 49, 49, 0.85);
}

.fa-times-circle:hover,
.icons-group>*:hover .fa-times-circle,
button:hover .fa-times-circle,
a:hover .fa-times-circle {
    color: rgba(224, 0, 52, 1);
}

.fa-plus-circle:hover,
.icons-group>*:hover .fa-plus-circle,
button:hover .fa-plus-circle,
a:hover .fa-plus-circle {
    color: green;
}
