/*
 * Theme Name: institut-concertation
 *
 * Elements spécifiques ciblés
 *
 */

/*

-- COULEURS --

rose : E2007A
rose pale : #F5E8EF
gris : #EDEEF1 ?
bleu foncé : #4C5671
bleu clair : #1E9DC4
*/

#page {
  padding-top: 1px;
}

.admin-bar #page {
  padding-top: 32px;
}


/************** WIDGETS **************/

.widget-area .textwidget {
  margin: 0.9em;
}

/* Login */
.widget-area .um-login {
  border: 1px solid #E2007A;
  padding: 12px 22px;
}

/************** BARRE D'OUTILS **************/

#outils {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 4000;
  height: 32px;
  background: #e1e2e5;
}

.admin-bar #outils {
  margin-top: 46px;
}

#menu-outils-haut-de-page {
  display: none;
}
#menu-outils-haut-de-page li::after {
  content: ' | ';
}
#menu-outils-haut-de-page li:last-child::after {
  display: none;
}
#menu-outils-haut-de-page li a:hover, #menu-outils-haut-de-page li a:active {
  border-bottom: 1pt solid #666;
}
@media screen and (min-width: 48em) {
  #outils {
    position: fixed;
  }
  #menu-outils-haut-de-page {
      display: block;
    }
}
@media screen and (min-width: 48.875em) {
  .admin-bar #outils {
    margin-top: 32px;
  }
}

.custom-logo-link {
  display: block;
}

.outils-container {
  max-width: 1024px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 0 auto;
}

.little .barre_outils {
  margin-top: 0;
  background: none;
  padding: 2px 2px 0 7px;
}

.barre_outils {
  margin: 0;
  line-height: 32px;
}

.barre_outils li {
  display: inline-block;
}

.barre_outils_droite li a,
.barre_outils_gauche li a {
  background-image: url("../img/sprite-outils.png");
  background-repeat: no-repeat;
  display: inline-block;
  padding-left: 24px;
  vertical-align: middle;
}

#searchform-inner.closed {
  display: none;
}
#searchform-inner.open {
  display: inline;
}

#goto-search-page {
  background-image: url(../img/sprite-outils2.png) !important;
  background-position: 2px -198px;
}

#goto-search-page:hover {
  background-position: 2px -197px;
}

#goto-login-page, #goto-profile-page {
  background-image: url(../img/sprite-outils2.png) !important;
  background-position: -1px 4px;
}

#goto-login-page:hover, #goto-profile-page:hover {
  background-position: -1px 5px;
}

#goto-lang-en {
  background-position: 0px -131px;
}

#goto-lang-en:hover, .page-id-2996 #goto-lang-en {
  background-position: 0px -199px;
}

#goto-lang-es {
  background-image: url(../img/sprite-outils2.png) !important;
  background-position: 0px -132px;
}

#goto-lang-es:hover, .page-id-3376 #goto-lang-es {
  background-position: 0px -64px;
}

.barre_outils .search-form {
  display: inline;
}

.barre_outils .search-field {
  padding: 1px;
  line-height: 1;
  width: 183px;
  height: 1.4em;
}

.barre_outils .search-submit {
  width: 10px;
  height: 1em;
  display: none;
}

/************** LOGO **************/

.site-branding {
  transform: scale(0.6);
  transform-origin: 0 64px;
}

@media screen and (min-width: 48em) {
  .site-branding {
    transform: scale(1);
    transform-origin: 0 0;
  }
}

@media screen and (min-width: 64em) {
  .little .site-branding {
    position: relative;
    top: 20px;
    margin-bottom: 0 !important;
    transform: scale(0.6);
    transform-origin: 0 64px;
  }
}

/*************** HOME ************** */
.home .entry-content {
  margin-top: 0;
}
.home #content.site-content {
  padding-top: 0px
}
.home h1.entry-title {
  margin-top: 15px;
  margin-bottom: 1.5em;
}


/*************** ARTICLES ************ */

.thumbnail {
  float: left;
  margin: 0 1rem 1rem 0;
}
#page .post.type-post .entry-title {
  clear: none;
}
.single .post.type-post .entry-content {
  clear: both;
}

/* ** dans .blog ... -> page de liste des artricles ; sinon c'est las page d'un article seul ** */
.blog .post.type-post .entry-title, .blog .post.type-post .entry-content h3, .blog .post.type-post .entry-content h2 {
  clear: none;
}
/*.blog .entry-content img { display: none; }*/
.blog .entry-meta .tags { display: none; } /* cacher les tags dans la liste */

/************** FICHE RESSOURCE (DOCUMENT, AGENDA, EMPLOI) **************/

body.single-document .main-navigation li.ressources > a,
body.single-event .main-navigation li.ressources > a,
body.single-emploi .main-navigation li.ressources > a {
  background-position: 28px -192px;
  color: #E2007A !important;
}

body.single-document .main-navigation li.ressources:hover > a,
body.single-event .main-navigation li.ressources:hover > a,
body.single-emploi .main-navigation li.ressources:hover > a {
  background-position: -1747px 15px;
}



/************** PROFILS UTILISATEURS **************/

.um-profile .um-field-code_postal .um-field-label {
  display: none!important;
}


/********* RESSOURCES (DOCUMENTS + AGENDA) *********/

.fiches {
  margin: 0;
  padding: 0;
}

.fiche {
  position: relative;
  padding: 12px 15px;
  color: #8a8a8a;
  list-style: none !important;
  cursor: pointer;
}

.documents .fiche {
  background: #F5E8EF;
}

.documents .fiche:hover {
  background: #E7E7EB;
}

.evenements .fiche {
  background: #E7E7EB;
}

.evenements .fiche:hover {
  background: #E2F4FD;
}

.fiche:first-of-type {
  margin-top: 2em;
}

.fiche .infos-plus {
  display: none;
}

.fiche.ouverte .infos-plus {
  display: block;
}

.fiche .link,
.fiche .edit {
  display: block;
  position: absolute;
  right: 5px;
  z-index: 10;
}

.fiche .link {
  top: 5px;
  width: 22px;
  height: 22px;
  background: url(../img/picto-link.png);
  background-size: 22px 22px;
}

.fiche .edit {
  bottom: 5px;
  width: 39px;
  height: 38px;
  background: url(../img/picto-edit.png);
  background-size: 39px 38px;
}

.fiche .type,
.fiche .auteur {
  margin: 0;
}

.fiche .date,
.fiche .heure {
  color: #00B3EE;
  font-weight: 600;
  margin: 6px 0 0;
}

.fiche .heure {
  margin-bottom: 12px;
}

.fiche .type a {
  color: #B9407C;
  font-size: 12px;
  text-transform: uppercase;
}

.fiche .auteur,
.fiche .annee {
  margin: 0;
}

.fiche .auteur {
  margin-top: 10px;
}

.fiche h2 {
  margin: 0;
  font-size: 14px;
  max-width: 90%;
}


/********* SINGLE POST RESSOURCES (DOCUMENTS + AGENDA) *********/

.single-post-ressource h1 {
  color: #4C5671;
  font-weight: bold;
}

.single-post-ressource .details {
  margin: 20px 0;
  padding: 0;
}

.single-post-ressource .details li {
  list-style: none;
}

.single-post-ressource .details li p {
  /*display: inline;*/
}


/********* FORMULAIRES DE RECHERCHE (DOCUMENTS + AGENDA) *********/

.searchandfilter > ul {
  /* display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -ms-flex-wrap: wrap;
   flex-wrap: wrap;
   -webkit-box-align: start;
   -ms-flex-align: start;
   align-items: flex-start; */
  margin: 25px -15px;
  padding: 0;
}

.searchandfilter > ul > li {
  margin-bottom: 2em;
  padding: 0 15px;
  display: block;
  float: left;
  min-height: 75px;
}
.searchandfilter > ul > li.sf-field-post-meta-document_icpc {
  min-height: 10px;
}

.searchandfilter > ul > li:last-child {
  padding: 0;
}

.searchandfilter > ul > li.sf-field-submit {
  clear: left;
}

.searchandfilter input,
.searchandfilter select {
  padding: 5px;
  max-width: 190px;
}

.search-filter-results {
  clear: both;
}


/********* BONUS *********/
/*=== Styles pour la page Evenements, gérée par Events Manager ===*/

.css-events-list h2 {
  margin: 20px 0 0;
  padding: 15px;
  background: #00ADEE;
  color: #fff;
}

.css-events-list table.events-table {
  padding: 15px;
  background: #E7E7EB;
}

.css-events-list table.events-table tr td {
  padding: 12px 15px;
}

.css-events-list table.events-table tr + tr td{
  padding-top: 0;
}

.css-events-list table.events-table th.event-time,
.css-events-list table.events-table th.event-description {
  padding: 15px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.css-events-list table.events-table th.event-time {
  width: 40%;
}

/*
Carte
*/
#carte-membres { height: 420px; width: 100%; z-index: 1; }

/**
 BOUTONS
*/

img.gauche {
  float: left;
  margin-right: 20px;
}

.btn {

  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  color: #4d5871;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  background-color: #f3f3f3;
  background-image: -moz-linear-gradient(top, #fdfdfd, #e4e4e4);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdfdfd), to(#e4e4e4));
  background-image: -webkit-linear-gradient(top, #fdfdfd, #e4e4e4);
  background-image: -o-linear-gradient(top, #fdfdfd, #e4e4e4);
  background-image: linear-gradient(to bottom, #fdfdfd, #e4e4e4);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffdfdfd', endColorstr='#ffe4e4e4', GradientType=0);
  border-color: #e4e4e4 #e4e4e4 #bdbdbd;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  border: 1px solid #bbbbbb;
  border-bottom-color: #a2a2a2;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  margin-top: 5px;
}



