/* .oc-content-inner{
    min-height: 100vh;
}
décommenter pour enlever la bordure orange en bas*/

:root{
    --orange: #e2702c;
    --light-orange: #e8a44c;
    --lighter-orange: #f7a439;
    --mom-brown: #a09289;
    --dark-grey: #7b7b7b;
    --grey: #b7b7b7;
    --light-grey: #bbbaba;
    --text-blue: #2e9eb7;
}




/* ---------- Paramètres généraux ---------- */
h1, h2, h3, h4, h5, h6{
    font-family: 'Rubik', sans-serif;
}

a{
    opacity: 0.95;
}

a:hover{
    text-decoration: underline;
}




/* ---------- Espacement des pages sur les bords ---------- */
#content{
    max-width: none;
    margin: 0 0;
    padding: 24px 15vw;
}




/* ---------- Footer ---------- */
footer{
    text-align: right;
}




/* ---------- Affichage du résultat de la recherche (barre du haut) ---------- */
.index.search .items.results .resource-link > img[src="/application/asset/thumbnails/default.png"]{
    display: none;
}

.index.search .items.results .resource-link, .index.search .site_pages.results a:first-child{
    font-family: 'Rubik', sans-serif;
}

.index.search .items.results ul, .index.search .site_pages.results ul{
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}

.index.search .results ul li{
    border-bottom: 1px solid #c4bebe !important;
}

.index.search .items.results > h2{
    display: none;
}




/* ---------- Visibilité du lecteur PDF dans la page de parcours ---------- */
*/.browse .uv{
    display: none;
}
*/



/* ---------- Page de Filtre ---------- */
#container[data-url-categories="/s/digimom/faceted-browse/2/categories"]  tr > td:first-child{
    width: 15rem;
}

.faceted-browse-page th{
    font-size: large;
}

.faceted-browse-page .metadata-browse-direct-link + br + a{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faceted-browse-page .metadata-browse-direct-link + br + a::before{
    content: "";
    width: 80%;
    border-top: 1px dashed var(--grey);
    display: flex;
}

.faceted-browse-page .metadata-browse-direct-link + br{
    display: none;
}

.permalink.button, input[data-value="---------- Dates ----------"], input[data-value="---------- Grandes ères ----------"], input[data-value="---------- Egypte ----------"], input[data-value="---------- Antiquité gréco-romaine ----------"], input[data-value="---------- Moyen/Proche orient ----------"], input[data-value="---------- époques religieuses ----------"]{
    display: none;
}

#container[data-url-categories="/s/digimom/faceted-browse/2/categories"]  tr > td:first-child > a{
    margin-bottom: 1.7rem;
}

.faceted-browse-page.resource.browse .resource-link > span{
    font-size: 1rem
}

.faceted-browse-page.resource.browse td:first-of-type{
    border-right: 1px dashed #c8c8c8;
    font-family: 'Rubik', sans-serif;
    text-align: center;
}

.faceted-browse-page.resource.browse td:nth-of-type(2){
    padding-right: 1rem;
    padding-left: 1rem;
}

.faceted-browse-page.resource.browse .facet legend{
    display: none;
}

.faceted-browse-page.resource.browse .value-select-list-item{
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    padding-top: 0.65rem;
    padding-left: 10px;
    border-left: 2px solid var(--lighter-orange);
}

.faceted-browse-page .facets-container::after{
    content:"Séléctionner une valeur pour afficher le résultat";
    display: flex;
    padding: 0 0 2.5rem ;
    width: 70%
}

.faceted-browse-page .facets-container{
    padding: 1rem 0 0;
}

.faceted-browse-page .categories-container{
    padding: 0 0 2.5rem;
}




/* ---------- Pagination des recherches ---------- */
.filter{
    font-size: 1.3rem;
}

.filter .filter-value{
    background-color: var(--mom-brown) !important;
}

.faceted-browse-page.resource.browse a.category{
    font-size: 1.3rem;
    color: var(--dark-grey);
    font-family: 'Rubik', sans-serif;
}

item.resource.show.browse-controls{
    margin-top: 2rem;
}

.browse-controls{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.browse-controls .pagination, .browse-controls .sorting select, .filter{
    font-family: 'Jost' , sans-serif;
}

.browse-controls .sorting select[name="sort_by"]{
    border: 2px solid #757575;
    border-radius: 5px;
}

.browse-controls .sorting select[name="sort_order"]{
    border: 2px solid #757575;
    border-radius: 5px;
}

.pagination{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .page-input-top{ 
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    height: 35px;
    width: 50px;
    font-size: 1.5rem;    
    border: 3px solid #5e595491;
    background: #b9b8b80a;
}




/* ---------- Page Contact ---------- */
#contact-us{
    margin-top: 3rem;
    margin-bottom: 5rem;
    margin-left: -5rem;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 55rem;
}

.site-page-contact .oc-content-inner{
    min-height: 90vh;
}

.site-page-contact #content{
    min-height: 80vh;
}

#contact-us .field:first-of-type{
    grid-column: 1/3;
    grid-row: 1;
}

#contact-us .field:nth-of-type(2){
    grid-column: 1/3;
    grid-row: 2;
}

#contact-us .field:nth-of-type(3){
    grid-column: 1/3;
    grid-row: 3;
}

#contact-us .field:nth-of-type(4){
    grid-column: 1/3;
    grid-row: 4;
}

#contact-us .field:nth-of-type(5){
    grid-column: 1;
    grid-row: 5;
    display: flex;
    align-items: center;
}

#contact-us .field:nth-of-type(6){
    grid-column: 2;
    grid-row: 5;
    display: flex;
    align-items: center;
}

#contact-us .field:nth-of-type(5) .inputs{
    width: 20%;
}

#contact-us .field:nth-of-type(5) .field-meta{
  width: 80%;
}

#contact-us .field:nth-of-type(6) .inputs{
    width: 52%;
}

#contact-us .field:nth-of-type(6) .field-meta{
    width: 48%;
}

#contact-us input{
    grid-column: 1/3;
    grid-row: 6;
    margin: auto;
}

.site-page-contact .asset > img{
    position: absolute;
    top: 28%;
    right: 15%;
    width: 15%;
}

#contact-us textarea, #contact-us #subject{
    min-width: 40rem;
}

#contact-us textarea{
    min-height: 12.5rem;
}

.site-page-contact #content{
    font-family: 'Jost', sans-serif;
}

#contact-us input, #contact-us textarea{
    border: 1px solid rgb(94, 93, 93);
    border-radius: 3px;
}

#contact-us .field{
    width: 100%;
}

#contact-us .field-meta{
    width: 30%;
}




/* ---------- Page parcourir les collections ---------- */
.search-page.item-set.resource #advanced-search-form-wrapper, .search-page.item-set.resource .search-results-header, .search-page.item-set.resource .search-results-list:first-of-type, .search-page.item-set.resource .search-results h3:first-of-type, .search-page.item-set.resource aside, .search-page.item-set.resource .item-set-items, .search-page.item-set.resource.browse #search-page > .metadata, .search-page.item-set.resource.browse #search-page > h3, .search-page.item-set.resource.browse  .search-results-part.search-results-list > h3 {
    display: none;
}

.item-set.resource.browse .advanced-search, .item-set.resource.browse h3+.metadata, .item-set.resource.browse .item-set-items h3{
    display: none;
}

.search-page.item-set.resource.browse .resource-metadata{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.search-page.item-set.resource.browse .resource-metadata a{
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
}

.results>a:last-child{
    font-weight: bold;
    font-family: 'Rubik', sans-serif !important;
    font-size: 1.3rem !important;
    line-height:24px;
    background-color: var(--grey) !important;
    text-align:center;
    width: 17rem !important;
    padding:6px;
    border-radius:7px !important;
}

.item-set.resource.browse .browse-controls{
    margin-top: 3rem;
}

.search-page.item-set.resource.browse resource-metadata > h4 > a{
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
}
.search-page.item-set.resource.browse .description > a{
    font-family: 'Monserrat', sans-serif;
    font-size: 1.1rem;
    color: black !important;
}




/* ---------- Bouton suivant dans les pages personalisées ---------- */
.site-page-pagination{
    display: none;
}




/* ---------- Lecteur PDF ---------- */
.centerPanel > #content{
    margin: 0; 
    padding: 0;
}

#uv-1{
    width: 60vw !important;
    height: 95vh !important;
    margin-left: 1vw;
    margin-bottom: 10vh;
}

#uv-1::before{
    display: flex;
    padding-bottom: 2.5rem;
    margin-top: -1.5rem;
    content: "La majorité des livres de Digimom ont été océrisés. Une fois téléchargé, vous pourrez rechercher du texte à l'intérieur du fichier PDF.";
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
}




/* ---------- Page d'un Livre ---------- */
.resource.show #content>h2+h3{
    display: none;
}

.resource.show #content>h2:first-of-type{
    width: 100%;
    margin-right: 0 !important;
    margin-top: 2rem;
    padding-right: 0 !important;
    text-align: center;
}

.resource.show .sidebar.right{
    display: none;
}

.item.resource.show .property:first-of-type{
    display: none;
}

.item.resource.show dl{
    display: flex;
    flex-wrap: wrap;
}

body.item.resource.show .property{
    width: 40% ;
    /* calc(50% - 24px) */
    padding-right: 0;
}

.item.resource.show .property:nth-of-type(even){
    margin-right: 20%;
}

.resource.show .with-sidebar{
    width: 100% !important;
    display: flex;
    flex-direction: column-reverse;
}

.resource.show .media-embeds::before{
    content: "La majorité des livres de Digimom ont été océrisés. Vous pouvez faire des recherches à l'intérieur du lecteur en utilisant la combinaison de touches ctrl+f";
    display: flex;
    padding-bottom: 2.5rem;
    margin-top: -1rem;
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
}

.resource.show .media-render.file iframe{
    height: 85vh !important;
}

.property > dt{
    font-family: 'Rubik', sans-serif;
    font-size: 1.35rem;
    margin-bottom:0.35rem;
}

.property > dd{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
}

dl{
    margin-bottom: 3rem;
}




/* ---------- Page de parcours des items / item sets ---------- */
.browse .resource-link > img{
    display: none;
}

.browse .resource-link > .resource-name{
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
}

.browse .resource > .description{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}




/* ---------- Barre de navigation de gauche (liste des pages) ---------- */
header #menu{
    padding-top: 10rem;
    display: flex;
    overflow: hidden;
}

header nav>ul>li{
    margin-bottom: 2rem;
}

header #menu a{
    font-size: 1.45rem;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    /*color: #2f2e2d;*/
    color: #fff;
}

header #menu a:visited{
    /*color: #2f2e2d;*/
    color: #fff;
}

header #menu a:hover{
    color: var(--light-orange);
    /*#68c8dd*/
    text-decoration: none;
}

.oc-menu{
    background: var(--dark-grey);
}




/* ---------- Page d'accueil ---------- */
.site-page-accueil .introduction > h1{
    font-family: 'Rubik', sans-serif !important;
}

.paragraphe{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.introduction{
    margin-top: 3rem;
}

.espace1{
    height: 0.5rem ;
}

.espace2{
    height: 5.5rem ;
}

.site-page-accueil #content{
    max-width: 100vw !important;
    margin-left:0;
    margin-right:0;
    padding-left: 20vw;
    padding-right: 20vw;
  font-family: 'Jost', sans-serif;
}

.break + .assets{
    margin-left:  0;
    display: flex;
    justify-content: center;
}




/* ---------- Barre de navigation du haut ---------- */
#menu-button{
    width:125px;
    content: "menu";
}

header .site-title, header site-title:visited{
    font-family: 'Lexend', sans-serif;
    font-size: 2.1rem;
}

header .site-title:hover{
    text-decoration: none;
    font-size: 2.125rem;
}

header::before{
    background-color: var(--orange) !important;
}

#search-form input[type="text"]{
    background-color: var(--light-grey);
}

#search-form input[type="text"]::placeholder{
    color: #fff;
}

input[type="submit"], button, .button{
    background-color: var(--light-grey);
}




/* ---------- Document PDF ----------*/
.media-render>a>img{
    display: none;
}

.with-sidebar> .media-embeds{
    margin-top: 3rem;
}

.media-render>a:after{
    content: "Accéder directement au fichier PDF"; 
    font-size: 1.5rem;
    font-weight: 600;
    background-color: var(--light-orange);
    color: white;
    border-radius: 10px;
    padding: 0.8rem;

}

.media-render>a{
    text-decoration: none;
}

.show .media-list{
    display: none;
}

/*.media-render{
    margin-bottom: 3.5rem;
}*/




/* ---------- Page recherche avancée ----------*/

#advanced-search{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 18px;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
/*    margin: 3rem 0;
    background: rgb(251,251,251);
    background: linear-gradient(225deg, rgba(251,251,251,1) 0%, rgba(231,231,231,1) 100%);
    box-shadow: -2px 2px 5px 1px rgba(0, 0, 0, 0.2);
*/
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
}

#advanced-search::before{
    content:"Recherche de livres avancée";
    align-self: start;
    font-size: 28px;
    margin: 3.5rem 0;
    line-height: 48px;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
}

a.advanced-search{
    font-weight: bold;
    font-family: 'Rubik', sans-serif !important;
    font-size: 1.5rem;
    background-color: var(--grey);
    color: white;
    text-align:center;
    width: 12rem !important;
    padding:6px;
    border-radius:6px !important;
}

a.advanced-search:hover{
    text-decoration: none;
}

#advanced-search .value:first-of-type{
    border-top: none;
}

#advanced-search .value{
    border-top: 1px solid var(--grey);
}

.field .field-meta{
    width: auto !important;
}

.field .inputs{
    width: auto !important;
}

#advanced-search #property-queries{
    display: flex;
    flex-direction: column;
    align-items: start;
    /*margin-left: -10rem;*/
}

#advanced-search .value{
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: row;
    gap: 0.5rem;
  align-items: center;
}

#advanced-search #resource-class + #hasmedia-queries, #advanced-search #datetime-queries, #advanced-search #hasmedia-queries + .field, #advanced-search #numeric-timestamp-on-after, #advanced-search #numeric-timestamp-on-before, #advanced-search #numeric-duration-gt, #advanced-search #numeric-interval, #advanced-search #numeric-greater-than, #advanced-search #numeric-less-than, #advanced-search #numeric-duration-lt, #advanced-search #resource-class, .advanced-search-content .field:nth-of-type(3), .advanced-search-content .field:nth-of-type(6), .advanced-search-content .field:nth-of-type(7){
    display: none;
}

#advanced-search #page-actions > input{
    width: 15rem;
    height: 3rem;
    margin-left: 0;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Rubik', sans-serif;
    border-radius: 9px !important;
    color: white;
    box-shadow: -1px 2px 3px #00000085;
    background: #4d301b45 !important;
}

#advanced-search .field #fulltext_search{
    width: 40rem;
}

#advanced-search .inputs > input, #advanced-search #property-queries .chosen-container > a, #advanced-search #property-queries .chosen-container .chosen-choices, #advanced-search .value > input, #advanced-search #resource-class .chosen-container > a,  #advanced-search #resource-class  .chosen-select, #advanced-search #property-queries .inputs .joiner, #advanced-search #property-queries .inputs .query-property, #advanced-search #property-queries .inputs .query-type{
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    height: 40px;
    line-height: 24px;
    border: 1px solid rgb(94, 93, 93);
    padding: 5px;
    border-radius: 3px;
    background: #fff;
/* #d2d2d299 */
    box-shadow: none;
    color: #444;
}

#advanced-search #property-queries .value:first-child select:nth-child(2), #advanced-search #property-queries .value:first-child select:nth-child(3), #advanced-search select[name=has_media]{
    background-color: #dddddd54;
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"]{
    color: #242424 !important;
    font-size: 1.1rem;
    font-family: 'Rubik', sans-serif;
}

.items.search #content > h2{
    display: none;
}

#advanced-search #property-queries .chosen-container > a, #advanced-search #property-queries .chosen-container .chosen-choices{
    background-color: #dddddd54 !important;
    background-image: none !important;
    background: #dddddd54 !important;
    box-shadow: none;
    display:flex;
    align-items: center;
    border-radius: 3px !important;
}

#advanced-search .value > input{
    width: 30rem;
}

#advanced-search #property-queries .chosen-container-single:first-of-type{
    width: 25% !important;
}

#advanced-search #property-queries .chosen-container-single{
    width: 50% !important
}

#advanced-search #property-queries .chosen-container-multi{
    width: 60% !important;
}

#advanced-search .field:nth-child(4){
    display: none;
}




/* ---------- Page charte & remerciements ---------- */
.site-page-charte p{
    text-indent: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.site-page-charte .charte-titre{
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.site-page-charte a{
    color: #0023ff;
    font-weight: 600;
}

.site-page-charte .charte-liste{
    text-indent: 0;
    padding-left: 3rem;
}

.site-page-charte .charte-en h3{
    text-align: center;
    margin-bottom: 2rem;
}

.site-page-charte .charte-en{
    font-style: italic;
}

.site-page-charte .charte-fr{
    margin-bottom: 3rem;
}

.site-page-charte .remerciements{
    margin-top: 4rem;
    margin-bottom: 10vh;
}

.site-page-charte .remerciements h1{
    text-align: center;
    margin-bottom: 2rem;
}

.site-page-charte .remerciements p{
    margin: 0;
    text-indent: 0;
}

.site-page-charte .remerciements p:first-of-type{
    font-weight: bold;
    color: var(--light-orange);
}

.site-page-charte footer{
    display: none;
}




/* --------------------  Version responsive --------------------  */
@media screen and (max-width: 700px){
    

/* ---------- header ----------*/

header {
    display: grid;
    grid-auto-columns: minmax(140px, auto);
    grid-gap: 1.5vh;
}

header .site-title{
    vertical-align: initial;
    line-height: 30px;
}

header h1{
    margin:0;
    grid-row: 1;
    grid-column: 2;
}

#oc-trigger{
    align-self: right;
    grid-row: 1;
    grid-column: 1;
}

#search-form{
    grid-row:2;
    grid-column: 1 / 3;
    margin: 0;
    width: fit-content;
}

header #menu{
    padding-top: 5rem;
}




/* ---------- corps des pages ----------*/

#content, .site-page-accueil #content{
    padding: 24px 9vw;
}

.item.resource.browse #content{
    padding: 24px 7vw;
}




/* ---------- Page Accueil ----------*/

.introduction{
    margin-top: 0;
 }





/* ---------- Pages de filtre ---------- */

.faceted-browse-page #content{
    padding: 24px 1vw;
}

.faceted-browse-page #container{
    flex-direction: column;
}

.faceted-browse-page #section-sidebar{
    width: auto;
    padding-left: 8vw;
    padding-right: 8vw;
}

.faceted-browse-page #section-content{
    width: auto;
}

.faceted-browse-page table{
    margin-bottom: 1rem;
}

.faceted-browse-page th:first-child{
    font-size: 14px
}





/* ---------- Pagination des recherches  ---------- */

.sorting{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.browse-controls{
    row-gap: 0.3rem;
}





/* ---------- Page des items ---------- */

.item.resource.show .property:nth-of-type(even){
    margin-right: 0;
}

body.item.resource.show .property{
    width: auto;
}

body.item.resource.show .media-list, body.item.resource.show .item-sets{
    display: none;
}

.item.resource.show dl{
   flex-direction: column;
}




/* ---------- Page Contact ---------- */

#contact-us textarea, #contact-us #subject{
    min-width: 50px;
}

#contact-us textarea{
    min-height: 30px;
}

#contact-us{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    align-items: start;
}

#contact-us .field{
    width: auto;
    display: flex;
     flex-direction: column;
    align-items: start !important;
    width: 100%;
}

#contact-us .field .inputs, #contact-us input, #contact-us textarea{
    width: 100% !important;
}

#contact-us input[type=checkbox]{
    height: 22px;
    width: 22px;
}

.site-page-contact .asset > img{
    display: none;
}




/* ---------- Page de recherche avancée ---------- */

.advanced-search-content{
    width: 100%;
}

#advanced-search .inputs, #advanced-search .inputs input, #advanced-search option, #advanced-search select{
    width: 100% !important;
}

/* TODO: test avec un autre téléphone
#advanced-search select:nth-child(2){
    height: 80px !important;
}
*/

#advanced-search::before{
    margin: 1rem 0;
}


} /* Fermeture du @media */