@import 'variables.css';

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
}

body {
  margin: 0;
  line-height: 1.5; 
  font-size: 18px;
  font-family: Georgia, serif;
  overflow-x: hidden;
  color: rgb(35, 35, 35);
  background: rgb(250, 250, 250);
}

ul, ol {
  margin: 0;
  padding: 0; }

ul li {
  list-style: none; }

a {
  color: rgb(35, 35, 35);
  text-decoration: none; 
  transition: all 0.5s ease;
}

a:hover {
  border-bottom: 1px solid currentcolor; 
}

img {
  width: 100%; }

figure {
  margin: 0; 
}

p{
  line-height: 1.45; 
  font-size: 18px;
  margin-top: 20px;
}


figcaption{
  font-size: 12px;
  color: rgb(120,120,120);
  font-style:italic;
  line-height: 1.4;
}

h1{
  font-family: var(--title-font);
  font-size: 45px;
  margin-bottom: 0;
  margin-top: var(--normal-margin);
  font-weight: bold;
  line-height: 1.1;
  color: rgb(35, 35, 35);
}

h2, h3{
  font-family: var(--title-font); 
  font-weight:bold;
  font-size: 23px;
  margin-bottom: 0;
  line-height: 1.4;
}

h3{
  font-size: 18px; 
  text-decoration:underline;
  margin-bottom: 0; 
  font-weight: normal;  
}

h1 + h2 {
  margin-top: var(--big-margin);
}

.show-for-small-only {
  display: block; }

.hide-for-small-only {
  display: none; }

main.row, main {
  padding: 100px var(--normal-margin) 0px var(--normal-margin);
  width: 100%;
  max-width: 1920px;
  margin: auto;
  margin-bottom: 200px; 
}

main .content figure {
  margin: 32px 0; 
}


.featured-img-wrapper{
  position:relative;
  width:100%;
  padding: 0; 
  transition: opacity 0.5s ease; 
}

.featured-img-wrapper:hover{
  opacity: 0.8;
}

.featured-img{
  width: 100%;
  min-height: 150px;
}
.featured-img{
  filter: grayscale(1) contrast(2);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.featured-img.background{
  filter: grayscale(0);
  position:absolute;
  top: 0;
  z-index:10;
  mix-blend-mode: hard-light;
}

.content{
  width: 100%;
  margin:auto;
  position: relative;
}

.bigimage{
  width: calc(100% + 40px);
  position: relative; 
  left: -20px;
}

.bigimage figcaption{
  margin-left: 20px;
}

.gallery h2{
  font-style:normal;
  margin-top:6px;
  margin-bottom:0;
  font-size: 30px;
}

.gallery p{
  margin:0;
  font-size: 18px;
}


/*------- H O M E ----------*/
.introduction{
  margin-bottom: 50px;
  padding-left: 0;
  padding-right: var(--big-margin);
}


.news h2{
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
}

.news .featured-img{
  height: 250px;
  margin-bottom: var(--normal-margin);
}

.news p{
  font-size: 15px;
  margin-top: 0;
}


.news article{
  padding: 0;
  margin-bottom: var(--big-margin);
}

/*------- F I N     H O M E ----------*/

/* ------- D E F A U L T ----------*/
  .social ul > li{
    font-size: 32px;
    margin-right: 20px;
  }

  .social ul{
    margin-left: 0;
  }

  .social a:hover{
    border-bottom:none;
  }

  .content .about-this-website p, .about-this-website ul{
    font-size: 14px; 
  }

  .content .about-this-website p {
    margin-bottom: 5px;
  }

  .content .about-this-website ul{
    margin-top: 0; 
    padding-left: var(--big-margin);
  }
  .content .about-this-website ul li{
    list-style: disc; 
  }
  .content .about-this-website ul li a{
    border-bottom: 1px solid var(--main-color);
  }

  a.anchor{
    position: relative;
    top: -250px;
    display: hidden;
  }

  .footnote a{
    border:0;
  }

  #footnotes{
    font-size: 0.7em;
    margin-top: var(--big-margin);
    margin-bottom: var(--big-margin)
  }

  #footnotes h3{
    margin-bottom: var(--normal-margin);
  }

  #footnotes li{
    margin-bottom: var(--small-margin);
  }

  #footnotes ol{
    padding:0;
    padding-left: 16px;
  }

  #footnotes .footnotereverse a:hover{
    border: none;
  }

  #related{
    font-family: var(--title-font);
    font-size: 0.7em;
    margin-top: 60px;
  }

  #related h3{
    margin-bottom: var(--normal-margin);
  }

  #related ul{
    padding: 0 1em;
  }

  #related li{
    margin-bottom: var(--normal-margin);
    padding-right: 5px;
    padding-left: 5px;
  }

  #related a:hover{
   border: none;
  }

  #related .featured-img-wrapper{
    margin-bottom: 5px;
  }

  #related .featured-img{
    height: 23vw;
    min-height: 50px;
    max-height: 150px;
  }

  .menu-secondaire{
    position:fixed; 
    bottom: 0;
    right: 0; 
    z-index: 10;  
  }
  .menu-secondaire > ul > label > li{
    background: rgba(255,255,255,0.6); 
    padding: 10px 43px;
    cursor: pointer; 
    font-size: 15px;
    color: rgba(0,0,0,0.5);
    border-right:none;
    border-bottom:none;
  }

  .menu-secondaire > ul > label > li a:hover{
    border:none;
  }

  .menu-secondaire > ul > label > li:hover{
    color: rgb(35,35,35);
  }

  .menu-secondaire .related-window, .menu-secondaire .footnotes-window{
    position: absolute; 
    bottom: 42px; 
    right: -245px;
    width: 245px;
    background: rgba(255,255,255,0.6);
    padding: var(--small-margin); 
    max-height: 85vh; 
    overflow: scroll;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }

  .menu-secondaire .related-window{
    padding: var(--big-margin); 
    padding-bottom: 0;
  }

  .menu-secondaire .related-window .featured-img{
    min-height: 90px;
    margin-bottom: 5px;
  }

  .menu-secondaire .related-window li{
    margin-bottom: var(--normal-margin);
    font-family: var(--title-font);
    font-size: 0.7em;
  }

  .menu-secondaire .related-window a:hover{
    border:none;
  }

  .menu-secondaire .footnotes-window{
    padding: var(--big-margin); 
    padding-bottom: var(--normal-margin);
  }

  .menu-secondaire .footnotes-window #footnotes{
    margin-top: 0; 
    margin-bottom:0;
  }

  .menu-secondaire .footnotes-window h3{
    display:none;
  }

  .menu-secondaire .footnotes-window ol li{
    list-style: inherit;
  }


  #toggle-related:checked ~ .related-window {
    right: 0;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }


  #toggle-related .span-nochecked, #toggle-related .span-checked{
    cursor:pointer;
    padding-right: var(--big-margin);
    margin-bottom: var(--normal-margin);
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }
   
  #toggle-related + label .span-nochecked { display: block; }
  #toggle-related + label .span-checked { display: none;}

  #toggle-related:checked + label .span-nochecked { display: none; }
  #toggle-related:checked + label .span-checked { display: block; color: rgb(35,35,35);}



  #toggle-footnotes:checked ~ .footnotes-window {
    right: 0;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }


  #toggle-footnotes .span-nochecked, #toggle-footnotes .span-checked{
    cursor:pointer;
    padding-right: var(--big-margin);
    margin-bottom: var(--normal-margin);
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }

  #toggle-footnotes + label .span-nochecked { display: block; }
  #toggle-footnotes + label .span-checked { display: none;}

  #toggle-footnotes:checked + label .span-nochecked { display: none; }
  #toggle-footnotes:checked + label .span-checked { display: block; color: rgb(35,35,35)}


/* ------- F I N      D E F A U L T ----------*/

/* ------- P R O J E C T S  ----------*/

.gallery h2{
  margin: 0;
  font-size: 18px;
}

.gallery > hr{
  margin-left: -16px;
}

.gallery h2.previous{
  font-size: 35px;
  margin-bottom: calc(var(--big-margin)*1.5);
  margin-left: -16px;
}

.gallery .featured-img{
  height: 5vw;
  margin-bottom: var(--normal-margin);
}

.gallery p{
  font-size: 15px;
  margin-top: 0;
}

.gallery p.read-more{
  margin-top: var(--normal-margin);
}


.gallery article{
  margin-bottom: var(--big-margin);
  padding-right: var(--big-margin);
}

.content .person-header-text .featured-img-wrapper{
    width: 100%;
    max-width: 900px;
    margin-left:auto;
    margin-right:auto;
    transition: none;

}

.content .person-header-text .featured-img-wrapper:hover {
    opacity: 1;
}

.content .person-header-text .featured-img{
  filter: none;
}


.person-header-text p{
  margin:0;
  margin-bottom: 3px;
}

.person-presentation{
  padding: 0;
}



.search ul{
  margin-top: var(--normal-margin);
}

.search ul li{
  font-size: 23px;
  margin-bottom: var(--small-margin);
  padding-bottom: var(--small-margin);
  border-bottom: 1px solid grey;
}

.search ul li a:hover{
  border-bottom: none;
}

.searchbar{
  text-align:right;
}

.searchbar input[type="search"]{
  border:none;
  border: 1px solid #000;
  background: transparent;
  font-size: 17px;
  font-family: Georgia, sans-serif;
  height: 30px;
  padding-left: 5px;
}

.searchbar input[type="submit"]{
  font-size: 17px;
  background: transparent;
  cursor: pointer;
  /*border: none;*/
  font-family: Georgia, sans-serif;
  height: 30px;
}

/* ------- F I N      P R O J E C T S  ----------*/


/* ------- C A T E G O R Y  ----------*/
.category .projects-gallery{
  width: 100%;
}

.category hr{
  margin-top: calc(var(--big-margin)*2);
}

.category .projects-gallery > h2{
  text-align: center; 
  margin-top:  var(--big-margin);
  margin-bottom: var(--big-margin);
}

.category .projects-gallery .projects{
  width: 100%; 
  max-width: 100%;
  margin-left: 0;
  justify-content: center;

}

.category .projects-gallery .projects li{
  margin-bottom: var(--big-margin);
}

.category .projects-gallery .projects li:last-child{
  margin-bottom: 0;
}

.category .projects-gallery .projects li .project-title{
  font-size: 18px; 
  width: 100%
}

.category .projects-gallery .projects li .project-summary p{
  font-size: 15px; 
  width: 100%;
  margin-top: 0;
}

/* ------- F I N      C A T E G O R Y  ----------*/

/* -------------- E V E N T S --------------- */
.events li .event-presentation{
  border-top: 2px solid currentcolor;
  padding-top: var(--normal-margin);
}

.events li:last-child .event-presentation{
  border-bottom: 2px solid currentcolor;
  padding-bottom: var(--big-margin);
}

.events h2{
  font-size: 35px;
}

.event-presentation figure{
  width: 60%;
  margin: var(--small-margin) 0;
}

.events .event-date{
  margin-bottom: var(--small-margin);
}

p.more-infos{
  margin-top: var(--normal-margin);
}

.archives-btn{
  margin-top: -20px;
  padding: 5px 10px;
  display: inline-block;
  border: 2px solid currentcolor;
}
.archives-btn a:hover{
  border: none;
}

.pagination{
  padding: 0;
  justify-content: space-between;
  position: relative;
}


.pagination .next{
  display: block;
  position: absolute; 
  right: 0;
}

/* -------------- F I N   E V E N T S  --------------- */


/* -------------- N E W S L E T T E R --------------- */
.newsletter-form input{
  width: 100%;
  margin-bottom: var(--normal-margin);
  height: 35px;
  font-size: 18px;
  font-family: Georgia, sans-serif;
}

.newsletter-form {
  padding: 0;
}

#mc_embed_signup h2{
  margin-bottom: var(--big-margin);
}

.newsletter-form input[type="submit"]{
  width: auto;
  border: 1px solid #000; 
  cursor: pointer; 
  color: #000; 
  background: #FFF;
  padding: 5px 10px;
  margin-top: 20px; 
  margin-bottom: 50px;
  font-size: 18px;
  font-family: Georgia, sans-serif;
}

/* -------------- F I N   N E W S L E T T E R   --------------- */

/* -------------- F O O T E R   --------------- */
footer{
  margin: var(--small-margin) var(--normal-margin);
}

.partners-logos{
  padding:0;
  filter: grayscale(1);
  margin:0;
}

.partners-logos li{
  width: 190px;
  padding: 0rem 1rem;
}

/* -------------- F I N   F O O T E R   --------------- */

/* RESPONSIVE DESKTOP SCREEN */
@media only screen and (min-width: 48em) {

  /* ----- general ----- */

  .show-for-small-only {display: none !important;}
  .hide-for-small-only {display: block !important;} 

  h1 {font-size: 60px;}
  h2 {font-size: 35px;}

  main.row, main {
    padding: 140px var(--normal-margin) 0px var(--normal-margin);
  }

  /* ----- home ----- */
  .news{
    margin-top:  var(--normal-margin);
  }

  .news article{
    margin-bottom: var(--big-margin);
    padding-right: var(--big-margin);
  }

  /* ----- default ----- */
  .content h1,  .content h2,  .content h3,  .content p,  .content ul, .content ol, .content figcaption, .content figure:not(.bigimage), .content hr{
    width: 55%;
    max-width: 900px;
    margin-left:auto;
    margin-right:auto;

  }

  .content figure:not(.bigimage) figcaption{
    width: 100%;
  }

  .content .bigimage figcaption{
    padding: 0 var(--small-margin);
  }

  .content .person-header-text .featured-img-wrapper{
    width: 55%;

  }

  #related ul{
    padding: 0;
  }

  #related li{
    padding-right: var(--normal-margin);
    padding-left: 0;
  }

  #related .featured-img{
    height: 10vw;
    min-height: 50px;
  }


  /* ----- projects -----*/
  .gallery{
    margin-top:  var(--big-margin);
  }

  .gallery .featured-img{
    height: 10vw;
    margin-bottom: var(--normal-margin);
  }

  .featured-img{
    width: 100%;
    min-height: 220px;
  }

  .person-presentation{
    padding: 0 1em;
  }

  /* newsletter */
  .newsletter-form {
    padding: 0 1rem;
  }

  #mc_embed_signup{
    padding: 0 var(--normal-margin)
  }


}

/* RESPONSIVE LARGE SCREEN */
@media only screen and (min-width: 1824px) {

  .col-xl-1 {
    -ms-flex-preferred-size: 8.33333333%;
    flex-basis: 8.33333333%;
    max-width: 8.33333333%;
  }

  .col-xl-2 {
    -ms-flex-preferred-size: 16.66666667%;
    flex-basis: 16.66666667%;
    max-width: 16.66666667%;
  }

  .col-xl-3 {
    -ms-flex-preferred-size: 25%;
    flex-basis: 25%;
    max-width: 25%;
  }

  .col-xl-4 {
    -ms-flex-preferred-size: 33.33333333%;
    flex-basis: 33.33333333%;
    max-width: 33.33333333%;
  }

  .col-xl-5 {
    -ms-flex-preferred-size: 41.66666667%;
    flex-basis: 41.66666667%;
    max-width: 41.66666667%;
  }

  .col-xl-6 {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    max-width: 50%;
  }

  .col-xl-7 {
    -ms-flex-preferred-size: 58.33333333%;
    flex-basis: 58.33333333%;
    max-width: 58.33333333%;
  }

  .col-xl-8 {
    -ms-flex-preferred-size: 66.66666667%;
    flex-basis: 66.66666667%;
    max-width: 66.66666667%;
  }

  .col-xl-9 {
    -ms-flex-preferred-size: 75%;
    flex-basis: 75%;
    max-width: 75%;
  }

  .col-xl-10 {
    -ms-flex-preferred-size: 83.33333333%;
    flex-basis: 83.33333333%;
    max-width: 83.33333333%;
  }

  .col-xl-11 {
    -ms-flex-preferred-size: 91.66666667%;
    flex-basis: 91.66666667%;
    max-width: 91.66666667%;
  }

  .col-xl-12 {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    max-width: 100%;
  }

}