/*
Theme Name: UNIL
Description: Thème enfant du thème Twenty Nineteen
Author: Riset/ae
Author URI: http://unil.ch/riset
Template: twentynineteen
Version: 0.1.0
*/

@import url("../twentynineteen/style.css");

/******** child-theme style **********/

@media only screen and (max-width: 768px) {

  /* redéfinition des marges */
  #masthead .ae-site-branding-container,
  #masthead #ae-site-navigation,
  #masthead .entry-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  footer#colophon .site-info {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  #content .entry .entry-content,
  #content .entry .entry-summary,
  footer#colophon aside.widget-area,
  #comments,
  body.single nav.navigation .nav-links {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  #masthead {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
  }
  #masthead .site-branding-container {
    padding: 0 !important;
  }
  #masthead .site-branding-container>.header-bar,
  #masthead .site-branding-container>.site-branding-container .ae-site-branding-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #masthead .entry-header .entry-title {
    font-size: 40px !important;
  }
  /*#masthead > .site-branding-container,*/
  #masthead>.site-featured-image {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }


  /* image du header */
  #masthead .entry-header {
    margin-top: 50px !important;
  }
  body:not(.home).position_none #masthead.featured-image {
    height: 600px !important;
  }
  body:not(.home).position_none .site-featured-image .post-thumbnail img.wp-post-image {
    height: calc(600px + 2rem) !important;
  }


}



/* --------------- general ------------------ */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Lato-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Lato-BoldItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Lato-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Lato-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Raleway-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/Raleway-VariableFont_wght.ttf') format('woff2');
}
@font-face {
  font-family: 'Cantata One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../wp-content/themes/unil/fonts/CantataOne-Regular.ttf') format('woff2');
}



body {
  /*font-family: Helvetica, sans-serif;*/
  font-family: 'Lato', sans-serif;
  font-family: 'Open sans', sans-serif;
  font-size: 90%;
}

.author-description .author-link,
.comment-metadata,
.comment-reply-link,
.comments-title,
.comment-author .fn,
.discussion-meta-info,
.entry-meta,
.entry-footer,
.main-navigation,
.no-comments,
.not-found .page-title,
.error-404 .page-title,
.post-navigation .post-title,
.page-links,
.page-description,
.pagination .nav-links,
.sticky-post,
.site-title,
.site-info,
#cancel-comment-reply-link,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway', sans-serif;
}

h1:not(.site-title):before,
h2:before {
  visibility: hidden;
}
.entry-header h2:before {
  display: none !important;
}

.italic {
  font-style: italic;
}

.copyright {
  color: #767676;
  font-size: 12px;
  font-family: 'Raleway', sans-serif;
}

button,
input,
select,
optgroup,
textarea {
  font-family: 'Raleway', sans-serif;
}


.post-tag-list {
  display: flex;
  flex-wrap: wrap;
}
.post-tag-list span {
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.8em;
  background: #e2e4e7;
  white-space: pre;
  margin-bottom: 3px;
}


#main>article .entry-footer .cat-links a[href$='non-classe/'] {
  display: none;
}



/* -------------------------------- header --------- */

#masthead {
  padding-top: 0;
  margin-bottom: 0;
}
body.single #masthead {
  padding-bottom: 0;
}

#masthead .site-branding-container {
  position: relative;
  padding-bottom: 10px;
}

#masthead #theme_unil_logo {
  margin-left: 10px;
  width: 90px;
  position: absolute !important;
}

@media only screen and (max-width: 768px) {
  #theme_unil_logo {
    display: none;
  }
}


/* header: header-bar */

#masthead .header-bar {
  text-align: right;
  padding: 5px 0px 5px 0;
  font-size: 0.3em;
  z-index: 99999;
  /*99999999999*/
  position: relative;
  list-style: none;
  /* pour language flag */
}

#masthead .header-bar .inner-wrap>div {
  display: inline-block;
  padding-left: 10px;
  font-size: 0.75rem;
}

#masthead .header-bar .warning-zone {
  background-color: red;
  padding: 3px 10px;
}

@media only screen and (min-width: 768px) {
  #connexion-link {
    margin-right: 10px;
  }
}
#connexion-link>* {
  display: inline-block;
  margin: 0 0 0 5px;
}


/* header: titre et sous-titre */

#masthead .ae-site-branding-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 1rem 0 120px;
}

#masthead .site-title a {
  color: #111;
  font-size: 25px;
  font-weight: bold;
  text-transform: uppercase;
}

#masthead .site-title a:hover {
  color: #4a4a4a !important;
}

#masthead .site-description {
  font-size: 22px;
  color: #666666;
}


/* header: image */

#ae-custom-header .header-image-wrap {
  max-height: calc(70vh - 12px);
  overflow: hidden;
}


/* menu social navigation */

#ae-social-navigation ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding-left: 0;
}

#ae-social-navigation ul li {
  margin-right: 10px;
}



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

#content {
  padding-bottom: 20px;
}

#content .entry-content #mycontent_primary:after {
  content: "";
  display: block;
  width: calc(80vw - 120px);
  border-bottom: 1px dashed #696969;
  margin: 30px 0;
}

body.single .entry-footer {
  display: none;
}

#content .entry .entry-content .has-drop-cap:not(:focus):first-letter {
  margin-top: 0.5rem;
  margin-right: 0.15em;
}


.entry .entry-content .wp-block-image,
.entry .entry-content .wp-block-advgb-columns,
.entry .entry-content>.wp-block-media-text {
  max-width: calc(8 * (100vw / 12) - 28px);
}
.entry .entry-content .wp-block-advgb-columns .wp-block-advgb-columns,
.entry .entry-content .wp-block-image img {
  max-width: 100% !important;
}
.entry .entry-content .wp-block-image .aligncenter {
  width: 100% !important;
  max-width: 100% !important;
}
.entry .entry-content>.wp-block-media-text {
  margin-left: 0;
  margin-right: 0;
}

@media only screen and (min-width: 1168px) {
  .entry .entry-content .wp-block-image,
  .entry .entry-content .wp-block-advgb-columns,
  .entry .entry-content>.wp-block-media-text {
    /*max-width: inherit;*/
    max-width: calc(6 * (100vw / 12) - 28px);
  }
}

@media only screen and (max-width: 768px) {
  .entry .entry-content .wp-block-image,
  .entry .entry-content .wp-block-advgb-columns,
  .entry .entry-content>.wp-block-media-text {
    max-width: 100%;
  }
}

/* images */

.entry .entry-content>.alignwide:not(.wp-block-media-text) {
  margin-left: 0;
  margin-right: 0;
}
.entry .entry-content>.alignfull:not(.wp-block-media-text) {
  max-width: none !important;
}
.entry #mycontent_primary>.alignfull {
  left: calc(-1rem);
}

@media only screen and (min-width: 768px) {
  .entry #mycontent_primary>.alignfull {
    margin-top: calc(2 * 1rem);
    margin-bottom: calc(2 * 1rem);
    left: calc(-20.5% - 60px);
    width: calc(141% + 120px);
    max-width: none;
    position: relative;
  }
}

#content .advgb-list li {
  font-size: 1em;
}

/* .advgb-column.advgb-is-three-quarters,
.advgb-column.advgb-is-three-quarters-tablet {
  flex: initial !important;
} */

.wp-block-advgb-image .copyright {
  filter: invert(1);
  position: absolute;
  bottom: -20px;
  right: 10px;
}


/* vidéos */

.advgb-video-poster {
  opacity: 0.9;
}



/* --------------  menu déroulant --------------  */

/* select */

.unil-deroulant .form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  white-space: nowrap;
  outline: none;
  text-decoration: underline;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  height: 2em;
  padding: 0 3px;
}

.unil-deroulant .form-group select option {
  color: #000;
}



/* --------------  bouton top --------------  */

.backToTopAnchor {
  position: absolute;
  width: 0px;
  height: 0px;
  overflow: hidden;
  visibility: hidden;
  line-height: 0;
  clip: rect(1px, 1px, 1px, 1px);
}

#backToTopBtn {
  background: url(images/scrollTop.png) no-repeat center;
  width: 50px;
  height: 50px;
  padding: 10px;
  text-indent: -99999px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  z-index: 3000;
}



/* --------------- footer ------------------ */

footer#colophon {
  background-color: #444
    /*#6d6d6d*/
     !important;
}

footer#colophon a {
  color: #fff !important;
  border-bottom: 1px dotted;
  text-decoration: none;
  font-weight: normal;
}

/* widget */
footer#colophon aside.widget-area {
  margin-top: 15px;
  margin-bottom: 10px;
  margin-left: 120px;
  margin-right: 1rem;
}

@media only screen and (min-width: 768px) {
  footer#colophon .widget-column {
    flex-wrap: nowrap;
  }
}

footer#colophon .widget-column .widget {
  margin-right: 20px;
  width: auto;
  flex-grow: 1;
}

footer#colophon .widget-column .widget h2 {
  font-size: 1.1em;
}

footer#colophon .widget-column .widget p,
footer#colophon .widget-column .widget a {
  font-size: 0.71rem;
}


/* menu et legal */

footer#colophon .site-info {
  padding-left: 120px;
  padding-right: 1rem;
}

footer#colophon .site-info {
  margin: 0;
  background: #444 url(images/logoUnil_blanc.svg) no-repeat calc(95% - 50px) calc(100% - 10px);
  background-size: auto 40px;
  min-height: 55px;
  padding-top: 15px;
  padding-bottom: 10px;
}

footer#colophon .site-info>*:not(.footer-navigation) {
  display: none;
}

footer#colophon .site-info>.footer-navigation {
  margin-left: -3px;
}

footer#colophon .site-info #menu-menu-pied-de-page {
  display: inline-block;
  max-width: calc(100% - 100px);
  margin: 0;
}

@media only screen and (max-width: 768px) {
  footer#colophon .site-info #menu-menu-pied-de-page li {
    display: block;
    white-space: nowrap;
    line-height: 2.5;
  }
}






/* --------------- next prev ------------------ */

body.no-postnav .post-navigation {
  display: none;
}

.post-navigation {
  max-width: none;
}

.post-navigation .nav-links {
  justify-content: space-between;
  flex-direction: row;
  max-width: none;
}

.post-navigation .nav-links>div {
  border: 1px solid rgba(0, 0, 0, .1);
  width: 50%;
  padding: 10px;
  margin: 0 !important;
  font-size: 0.8em;
}

.post-navigation .nav-links .nav-previous .meta-nav:before {
  content: "\002190";
}

.post-navigation .nav-links .nav-next .meta-nav:after {
  content: "\002192";
}

.post-navigation .nav-links .nav-previous {
  order: 1;
}

.post-navigation .nav-links .nav-next {
  text-align: right;
  border-left: 1px;
}

@media only screen and (min-width: 768px) {
  .post-navigation {
    margin: calc(3 * 1rem) 0;
  }
  body.single #main>.post-navigation .nav-links {
    margin-left: calc(10% + 60px);
    margin-right: calc(10% + 60px);

  }

  .post-navigation .nav-links .nav-next {}
}




/* search
----------------------------------------------- */

#ae-search {
  z-index: 10;
}

.site-header .search-form {
  display: inline;
}

.site-header .search-field {
  background-color: transparent;
  background-image: url(images/ic_search.svg);
  background-position: 5px center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  border: none;
  cursor: pointer;
  height: 37px;
  margin: 3px 0;
  padding: 0 0 0 34px;
  position: relative;
  -webkit-transition: width 400ms ease, background 400ms ease;
  transition: width 400ms ease, background 400ms ease;
  width: 0;
}

.site-header .search-field:focus {
  background-color: #fff;
  border: 1px solid #c3c0ab;
  cursor: text;
  outline: 0;
  width: 230px;
}

.search-form .search-submit {
  display: none;
}



/* page résultat de la recherche
----------------------------------------------- */

body.archive #content .page-header,
body.search #content .page-header,
body.error404 #content .page-header {
  margin-bottom: 20px;
}

body.archive #page #main .entry-content {
  margin-left: 10%;
  width: 100%;
}

body.archive #page #main .post-thumbnail+.entry-content {
  margin-left: 0;
  width: 50%;
}

/* page contributeurs si function activée
----------------------------------------------- */

body.page-id-3260 .entry-content ul {
  list-style: none;
  width: 600px;
  margin: 0;
  padding: 0;
}

body.page-id-3260 .entry-content li {
  margin: 0 0 5px 0;
  list-style: none;
  height: 90px;
  padding: 15px 0 15px 0;
  border-bottom: 1px solid #ececec;
}

body.page-id-3260 .entry-content img.photo {
  width: 80px;
  height: 80px;
  float: left;
  margin: 0 15px 0 0;
  padding: 3px;
  border: 1px solid #ececec;
}

body.page-id-3260 .entry-content div.authname {
  margin: 20px 0 0 10px;
}


/* page crédits si function activée
----------------------------------------------- */

#credit-tracker-table img.attachment-thumbnail {
  max-width: 80px;
}


/* page documentation si function activée
----------------------------------------------- */

body.post-type-archive-documentation #main>article {
  margin: 0;
}
body.post-type-archive-documentation #main {
  margin-bottom: 50px;
}
body.post-type-archive-documentation #main .entry-content,
body.post-type-archive-documentation #main .entry-footer {
  display: none;
}
body.post-type-archive-documentation #main h2 {
  font-size: 1.25em;
}
body.post-type-archive-documentation #main h2 a:before {
  content: "> ";
}


/* info cookies
----------------------------------------------- */
body>.cc-grower {
  position: relative;
  z-index: 2;
  max-height: 100% !important;
}