/**
 * @file
 * Overall specifications for Culturepresse.
 *
 * base color = #6195A8
 * links = #E5007D
 * #E85252
 */

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: Marvel, serif;
  font-size: 1.09em;
  line-height: 1.5;
  color: #3b3b3b;
  word-wrap: break-word;
  background-color: #F8F8F8;  
}

#page-wrapper {
  max-width: 1286px; /* to implement ad takeover */
  margin: 0 auto;
}

#page {
  background-color: #F8F8F8;
}

/* TEXT SETTINGS (size, color. ...) */

h1 {
  font-family: Marvel;
  color: #3b3b3b;
}

h1 a,
h2 a {
  border-bottom: none;
}

h3 {
  font-family: Marvel;
  font-size: 1.5em;
  color: #937300;
  line-height: 1.1em;
}

h4 {
  font-family: Marvel;
  font-size: 1.15em;
  color: #206275;
  line-height: 1.05em;
  text-decoration: underline;
}

h5 { /* idem field 'En savoir plus' dans content 'Partenaire' */
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF;
  line-height: 1.2em;
  width: 8em;
  background-color: #6195A8;
  padding: 0em 0 0 0.5em;
  text-transform: none;
  letter-spacing: 0;
}

p {
  font-family: Marvel;
  color: #3b3b3b;
}

.mini {
  font-size: 0.8em;
}

strong {
  color: #297e9d;
}

a,
a.link {
  color: #E5007D;
  font-weight: normal;
  text-decoration: none;
  border-bottom: none;
}
a:hover,
a:active,
a:focus,
.link:hover,
.link:active,
.link:focus {
  text-decoration: none;
  border-bottom: none;
}
.link {
  font-family: Marvel, serif;
}

nav.breadcrumb li a {
  font-weight: normal;
}

hr {
    display: block;
    clear: both;
    height: 1px;
    margin: 10px 0 10px;
    padding: 0;
    border: 0;
    font-family: arial;
    text-align: center;
    font-size: 60px;
    line-height: 1;
    background-color: #EDEDED;
}

/* CKEditor styles */
p.red {
  color: red;
}

p.pluspdf a {
  padding: 0.3em 0 0.5em 3em;
  background: url('/sites/default/files/images/theme/picto_voir_pdf.png') no-repeat left center transparent;
}

li.sous-menu {
  font-size: 0.9em;
  padding: 0 0 0 1.2em;
  background: url('/sites/default/files/images/theme/picto_sous_menu_page.png') no-repeat left center transparent;
  margin-left: 0;
  border-bottom: 1px solid #EDEDED;
}
ul li.sous-menu {
  list-style-type: none;
}

/** HEADER **/
#header,
.sidebar {
  background: none;
  background-color: #FFFFFF;
}

/* a verif */
.header .section {
  position: relative;
}

.site-branding__name {
  display: none;
}

/* lower logo on mobile to give place to connection and register-passsord links */
@media only screen and (max-width : 1168px)  {
  #block-culturepresse-marquedusite {
    margin-top: 30px;
  }
}

/** HOME BREADCRUMB + page-2-3-col BREADCRUMB + path-webform BREADCRUMB **/
body.path-frontpage #block-breadcrumbs,
body.page-node-type-page-2-3-colonnes #block-breadcrumbs,
body.path-webform #block-breadcrumbs {
  display: none;
}

/** SLIDER **/
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 {
  position: relative;
}
@media only screen and (max-width: 768px)  {
  #views_slideshow_cycle_teaser_section_home_flexslider-block_1,
  #views_slideshow_controls_text_home_flexslider-block_1,
  #views_slideshow_controls_text_previous_home_flexslider-block_1,
  #views_slideshow_controls_text_pause_home_flexslider-block_1,
  #views_slideshow_controls_text_next_home_flexslider-block_1 {
    display: none;
  }
}

#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 {
  position: absolute;
  top: 2.2em;
  left: 17.5em;
  width: 15em;
  font-size: 1.15em;
  line-height: 1.15em;
  padding: 0 0.5em;
  background-color: #F8F8F8;
  opacity: 0.85;
  border-bottom: 3px solid #F8F8F8;
  z-index: 100;
}
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 h3 a { /* titre */
  font-size: 1.3em;
  line-height: 1.1em;
}
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 p {
  margin-bottom: 0.4em;
}
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 p:last-of-type {
  padding-bottom: 0.5em;
}
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 h3 { /* inter */
  color: #333;
  font-size: 1em;
  line-height: 0.8em;
  padding-left: 0;  
  background-image:none; 
}
  
/* smart trim changes line break to <p><br /></p> => we need to reduce height */
#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-field-body-1 br {
  display: block;
  margin-bottom: 0;
  font-size: 0;
  line-height: 0;
}

#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .field__item img {
  margin: 0; 
}

#views_slideshow_cycle_teaser_section_home_flexslider-block_1 .views-slideshow-controls-bottom {
  width: 100%;
  z-index: 100; 
}

#views_slideshow_controls_text_home_flexslider-block_1 {
  display: block;
  font-size: 0.85em;
  text-align: center;
  margin: auto auto;
  background-color: #F8F8F8;
  opacity: 0.85;
  margin-top: -8px;
}

#views_slideshow_controls_text_home_flexslider-block_1 a {
  color: #666;
  font-weight: bold; 
}

#views_slideshow_controls_text_home_flexslider-block_1 span::before {
  content: " << "; 
}
#views_slideshow_controls_text_home_flexslider-block_1 span + span::before {
  content: " | "; 
}
#views_slideshow_controls_text_home_flexslider-block_1 span + span + span::after {
  content: " >> "; 
}


/* CONTENT main settings (content + h1 width) BASE PAGE, PAGE-2-3-col, ARTICLE, PARTENAIRE, View COMMUNIQUES DE PRESSE */
body.page-node-type-article main#content h1.page-title, 
body.page-node-type-article main#content article, 
body.page-node-type-page #main section,
body.page-node-type-page-2-3-colonnes main#content section,
body.page-node-type-partenaire main#content h1.page-title, 
body.page-node-type-partenaire main#content article, 
body.path-communiques-de-presse #main section,
body.page-node-type-espace-elus #main section,
body.path-les-responsables-de-secteurs-commerciaux-fdj #main section,
body.path-podcasts-summary .view-content,
body.path-search section {
   width: 76%;
}
@media (max-width: 1168px) {
  body.page-node-type-article main#content h1.page-title, 
  body.page-node-type-article main#content article, 
  body.page-node-type-page #main section,
  body.page-node-type-page-2-3-colonnes main#content section,
  body.page-node-type-partenaire main#content h1.page-title, 
  body.page-node-type-partenaire main#content article,
  body.path-communiques-de-presse #main section,
  body.page-node-type-espace-elus #main section,
  body.path-les-responsables-de-secteurs-commerciaux-fdj #main section,
  body.path-podcasts-summary .view-content,
  body.path-search section {
    width: 93%;
  }
}

/* image in node-type-page */
body.page-node-type-page article .node__content .field--type-image {
  float: right;
  margin: 0 0 0 1.5em;
}
@media (max-width: 539px) { /* before Surface Duo wodth (540) */
  body.page-node-type-page article .node__content .field--type-image   {
    float: none;
  }
}

/* Inter 'Pour en savoir plus' dans les pages de base */
div.field--name-field-pour-en-savoir-plus .field__label {
  font-size: 1.2em;
  color: #FFF;
  line-height: 1.2em;
  width: 8em;
  background-color: #6195A8;
  padding: 0em 0 0 0.5em;
}

/** Section DOCUMENTS dans pages de base **/
.field--name-field-documents {
  padding-bottom: 1em;
  margin-bottom: 1em;
}
.field--name-field-documents .field__label {
  width: 5.4em;
  border: 1px solid #6195a8;
  padding-left: 1em;
}
.field--name-field-documents .field__item {
  font-size: 0.9em;
  background-color: #F8F8F8;
}

/* PARTENAIRE */
.node--type-partenaire .node__content .field--type-image {
  display: block;
  width: 96%;
  clear: both;
  background-color: #F8F8F8;
  margin: 0 0 1em 0.5em;
  padding: 0.5em 0 0.5em 1em;
}

div.field--name-field-pour-en-savoir-plus .field__item {
  font-size: 1em;
  line-height: 1.2em;
  margin: 0.5em 0 0 0;
}

/** Share this links - Print pdf link **/
.print__wrapper--pdf {
  text-align: right;
  border-top: 1px solid #E5007D;
}

.links .sharethis {
  margin: -20px 0 26px -4px;
  float: left;
}

body.page-node-type-page .links .sharethis { /* page de base correc */
  margin: 8px 0 26px -4px;
}

/** DOCS en TELECHARGEMENT - COMMUNIQUES de PRESSE **/
body.page-node-type-page article[about='/formulaires-et-documents-en-telechargement'] {
  margin-top: 1.3em;
  border-bottom: 1px solid #CCC;
  margin-bottom: 1.3em;
}
body.page-node-type-page article[about='/formulaires-et-documents-en-telechargement'] h3 a {
  color: #666;
}
body.page-node-type-page article[about='/formulaires-et-documents-en-telechargement'] ul li {
  list-style-type: none;
}
body.page-node-type-page article[about='/formulaires-et-documents-en-telechargement'] li a {
  display: block;
  font-size: 0.95em;
  background: url("/sites/default/files/images/theme/picto_mimetype_pdf.png") no-repeat left center transparent;
  padding: 0.5em 0 0.5em 1.5em;
  border-bottom: 1px solid #EDEDED;
  margin: 0 0 0.3em 0;
}

body.path-communiques-de-presse .views-field-field-fichier-du-communique  a  {
  padding-left: 0.5em;
}

/** PAGER **/
nav.pager {
  font-size: 0.8em;
  font-weight: normal;
  color: #666;
}
nav.pager a {
  font-weight: normal;
}

/** ESPACE ELUS PAGE **/
body.page-node-type-espace-elus .view-block-culture-presse-accordion {
  border-bottom: 1px solid #999;
}

/** SEARCH page **/
body.path-search fieldset#edit-types-fieldset,
body.path-search fieldset#edit-lang-fieldset,
body.path-search .search-result__info a {
  display: none;
}

/** FOOTER **/

footer.site-footer {
  background: none;
}

/** Maintenance page **/
div.maintenance_logo {
  text-align: center;
  margin-top: 7em;
  padding-bottom: 5em;
}  

/** 403 - 404 **/
div.error_404 {
  margin: 4em 0 0 6em;
}

