
@font-face {
  font-family: "Ysabeau";
  src: url("../fonts/Ysabeau-VariableFont_wght.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Ysabeau";
  src: url("../fonts/Ysabeau-Italic-VariableFont_wght.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 100 900;
}

:root {
  --unit: 7.1875rem; /*115px*/
}

#svg-definitions {
  display: none;
}

.visually-hidden {
    border: 0 !important;
	clip-path: inset(50%) !important; 
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
  position: absolute;
	width: 1px !important;
	white-space: nowrap !important; 
}

.wrap {
  margin: 0 auto;
  max-width: calc(11* var(--unit));;
}

* {
  font-family: "Ysabeau", Arial, Helvetica, sans-serif;
}

h1, h2, h3 {
  margin: 0 0 24px 0;
  padding: 0;
}

body {
  color:#585654;
  margin: 0;
  padding: 0;
}

a {
  color:#585654;
}

nav.skip {
  display: none;
}

nav.skip:focus-within {
  display: block;
}

header, footer {
  background-attachment: fixed;
  background-color: #DBDCD9;
  background-image: url('../img/wordcloud.png');
  background-position: center center;
  background-size: 50%;
}

header {
  position: sticky;
  top: 0px;
  z-index: 10;
}

header nav ul, footer ul {
  background-color: #DBDCD9;
  display: flex;
  list-style-type: "";
  margin: 0;
  padding: 0;  
}

header nav ul img{
  border-left: 2px solid #E6E5E2;
  width: calc(1* var(--unit));
}
header nav ul {
  min-height: 105px;
}

header nav ul li{
  border: 2px solid #E6E5E2;
  border-left: none;
  border-top: none;
  display: flex;
  flex-basis: calc(2* var(--unit));
  flex-shrink: 2;
  font-size: 1.25rem;
  font-weight: 400;
  padding: 0;
  margin: 0;
}
header nav ul li.home{
  border-left: 2px solid #E6E5E2;
  border-bottom: none;
  flex-basis: calc(3* var(--unit));
  flex-shrink: 1;
  font-size: 1.55rem;
}
header nav ul li:not(.home).on {
  background-color: #CED1C9;
  border-bottom: 4px solid #585654;
}
header nav ul li.home.on {
  background-color: #CED1C9;
}
header nav ul li.home.on span {
  border-bottom: 4px solid #585654;
}
header nav ul li a{
  align-items: flex-end;
  color: #585654;
  display: flex;
  flex-grow: 1;
  padding-bottom: 17px;
  padding-left: 19px;
  padding-top: 12px;
  text-decoration: none;
}
header nav ul li.home a{
  flex-grow: 1;
  padding: 0;
}
header nav ul li a:hover{
  background-color: #CED1C9;
}
header nav ul li.home a span{
  border-bottom: 2px solid #E6E5E2;
  flex-grow: 1;
  padding-bottom: 17px;
  padding-left: 17px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer ul {
  justify-content: flex-end;
  padding: 5px 0;
}
footer ul li{
 display: flex;
}
footer ul li a{
  padding: 5px 10px;
  text-decoration: none;
}
footer ul li.on a{
  text-decoration: underline;
}
footer ul li a:hover{
  text-decoration: underline;
}

/* Structure */

main {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  padding-bottom: 9.375rem;
}

.detail-agenda main,
.writings main,
.echos main {
  flex-direction: row-reverse;
}

main .col1 {
  flex-basis:  calc((7* var(--unit)) - 16px);
  flex-shrink: 2;
  padding-top: 32px;
}

main .col2 {
  flex-basis:  calc((4* var(--unit)) - 16px);
  flex-shrink: 3;
  padding-top: 32px;
}

/* utils */

.all {
  background: none;
  border: none;
  cursor: pointer;
  padding-right: 32px;
  text-decoration: none;
}
.all:before{
  content: "> ";
}
.back {
  cursor: pointer;
  top: 10px;
  position: relative;
  text-decoration: none;
}
.back:after{
  content: " >";
}
.clickable{
  cursor: pointer;
}
.all:hover,.back:hover{
  text-decoration: underline;
}

/* Typography */

.page h1, .page aside h2, .home h2, .detail-agenda h2.timesplit {
  border-bottom: 2px solid #585654;
  flex-basis: 100%;
  flex-shrink: 0;
  font-size: 1.55rem;
  font-weight: 500;
}

 .detail-agenda h2.timesplit {
  border-bottom: 1px solid #B7B9B2;
  color: #90938A;
}

.page aside h2 {
  font-size: 1.37rem;
  padding-top: 2px;
}

.page h1 span, .page h2 span, .home h2 span {
  background-color: #fff;
  padding-right: 5px;
  position: relative;
  top: 9px;
}

.home h3, .writing h2, .writing h3, .echo h3, .event h3, .event h2, .credits h2, .mentions h2{
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5rem;
  margin: 0;
  padding: 0;
}

time{
  font-size: 1.05em;
}

.home h3 a, .writing h2 a, .writing h3 a, .echo h3 a {
  text-decoration: none;
}

.home p, .event p  {
  color:#767574;
}

.home p, .writing p, .echo p, .event p{
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

/* Home */

.home .writings h2, .home .agenda h2, .home .echos h2 {
  margin-bottom: 4px;
}

.home .all {
  flex-basis: 100%;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 24px;
  text-align: right;
}

.home .writings {
  column-gap:16px;
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
}

.home .writing {
  border-bottom: 1px solid #CED1C9;
  border-top: 1px solid #fff;
  padding: 12px 0 8px 0;
}

.home .writing:hover {
  border-color: #585654;
}
.home .writing:nth-of-type(1):hover,
.home .writing:not(.echo):nth-of-type(2):hover {
  border-top-color: #fff;
}
.home .writing:hover .read-more{
  color: #585654;
}

.home .parcours{
  display: flex;
  flex-direction: column;
}

.home .parcours p {
  color:#585654;
  font-size: 1.1rem;
  text-align: justify;
}

.page.parcours p {
  text-align: justify;
}

.home .writing {
  flex-basis: 48.5%;
}

.home .echos, .home .agenda {
  display: flex;
  flex-direction: column;
}

.home .writing{
  align-items: center;
}


.home .echos .writing{
  min-height: unset;
  padding: 24px 0;
}

/* Writing Bloc */

.page.writings .writing div.texte,
.page.echos .writing div.texte {
  flex-shrink: 1;
  padding-top: 4px;
}

.page.writings h1,
.page.echos h1{
  margin-bottom: 0;
}

.writing:not([hidden]) {
  display: flex;
}

.writing{
  align-items: flex-start;
  flex-shrink: 1;
  gap: 16px;
  min-height: 180px;
  position: relative;
}

.page.writings .writing .texte,
.page.echos .writing .texte {
  margin-right: 80px;
}

.page.writings .writing:hover,
.page.echos .writing:hover {
  border-color: #585654;
}
.page.writings .writing:hover img,
.page.echos .writing:hover img{
  opacity: 0.9;
}
.page.writings .writing:first-of-type,
.page.echos .writing:first-of-type {
  border-top-color: #fff;
}
.page.writings .writing:hover a,
.page.echos .writing:hover a {
  text-decoration: none;
}
.page.writings .writing:hover .read-more,
.page.echos .writing:hover .read-more {
  color: #585654;
}


.writing .teaser p,
.writings p.teaser,
.echos p.teaser {
  padding-top: 18px;
  text-align: justify;
}

.detail-writing .description p,
.detail-echo .description p{
  text-align: justify;
}


.writing .read-more{
  align-self: center;
  color: #CED1C9;
  flex-basis: 2rem;
  flex-shrink: 0;
  width: 2rem;
  position: absolute;
  right: 15px;
}




.writing  p.reeditions,
.writing  p.traductions{
  padding-top: 18px;
}

.writing p.reeditions + p.traductions {
  padding-top: 0;
}

.writing div.texte{
  min-height: 51%;
}

.writing .couv{
  min-width: calc(1* var(--unit));
}

.writing img{
  border-radius: 4px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  width: calc(1* var(--unit));
}

/* Echo Bloc */

p.auteur{
  color: #585654;
}


/* Event Bloc */
.event p.description{
  margin-top:16px;
}

.event p.place {
  color: #585654;
}


/* Detail Page */


.detail-echo main .col1,
.detail-writing main .col1 {
  padding-top: 18px;
}

.detail-echo .writing,
.detail-writing .writing {
  min-height: unset;
}

p.teaser{
  color: #767574;
}

.detail-writing .explication,
.detail-writing .description,
.detail-echo .description {
  flex-basis: 100%;
  border-top: 1px solid #CED1C9;
  color: #767574;
  font-size: 1.1rem;
  margin-top: 18px;
  padding-top: 18px;
}
.detail-writing .explication p,
.detail-writing .description p,
.detail-writing .description h3,
.detail-writing .description ul,
.detail-echo .description p{
  padding-left: calc((1* var(--unit)) + 12px);
}

.detail-writing .description h3{
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-echo p.disclaimer,
.detail-writing p.disclaimer {
  padding-left: calc((1* var(--unit)) + 12px);
}
.detail-echo p.disclaimer em,
.detail-writing p.disclaimer em{
  color: #767574;
}

.detail-agenda aside nav ul {
  column-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 0 0 16px;
  row-gap: 4px;
}

.detail-agenda aside nav li {
  font-size: 1.2rem;
  margin-left: 8px;
}

.detail-agenda aside nav li a {
  padding: 0 5px 5px 5px;
  position: relative;
  top: -3px;
}

.detail-agenda aside nav li a:hover {
  text-decoration: none;
}

.detail-agenda aside nav li.on a {
  background-color: #DBDCD9;
  border: 1px solid #B7B9B2;
  text-decoration: none;
}

.detail-agenda .event p.place {
  margin-bottom: 16px;
}


/* List Pages */

.page.writings .writing,
.page.echos .writing {
  border-bottom: 1px solid #DBDCD9;
  border-top: 1px solid #fff;
  gap: 16px;
  padding-bottom: 24px;
  padding-top: 24px;
}

.page.detail-agenda .event,
.page.home .agenda .event {
  border-bottom: 1px solid #DBDCD9;
  border-top: 1px solid #fff;
  padding-bottom: 18px;
  padding-top: 18px;
}




/* Parcours */

.parcours figure {
  border-top: 2px solid #585654;
  margin: 33px 0 0 0;
  padding-top: 10px;
  padding-left: calc((100% - 444px)/2);
  padding-right: calc((100% - 444px)/2);
  
}
.parcours figure.vertical {
  padding-left: calc((100% - 333px)/2);
  padding-right: calc((100% - 333px)/2);
}
.parcours figure img {
  max-width: 444px;
  width: 100%;
}

/* Crédits */

.credits h2, .mentions h2 {
  margin-bottom: 8px;
}
.credits p+h2, .mentions p+h2 {
  margin-top: 24px;
}
.credits p, .mentions p {
  margin: 0 0 8px 0;
}
.credits p a:hover, .mentions p a:hover{
  text-decoration: none;
}



/* filters */

.filters, aside nav {
  border-top: 2px solid #585654;
  margin-top: 32px;
  padding-top: 16px;
}
.filters fieldset, .filters .field{
  border: none;
  margin: 0;
  padding: 0 0 24px 0;
}
form.filters{
  display: none;
}
.js form.filters{
  display: block;
  position: sticky;
  top: 60px;
}
.js aside nav{
  display: block;
  position: sticky;
  top: 100px;
}
.filters .field label, .filters fieldset legend {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.filters fieldset {
  column-gap: 12px;
  display: flex;
  flex-wrap: wrap;
  padding-right: 10%;
  row-gap: 10px;
}
.filters fieldset legend {
  flex-basis: 100%;
}
.filters fieldset label {
  font-size: 1.1rem;
  margin-left: 3px;
}
.filters select {
  font-size: 1.1rem;
  width: 90%;
}

.filters .instructions {
  color:#767574;
  margin-top: 0;
}

.filters .all {
  cursor: pointer;
  font-size: 1.1rem;
}

.filters .results {
  border-bottom: 1px solid #B7B9B2;
  font-size: 1.1rem;
  
  padding-bottom: 18px;
  
}

.filters .results span{
  font-size: 1.3em;
}

.filters .results input {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: underline;
  font-weight: 500;
}
.filters .results input:hover {
  text-decoration: none;
}

/*1250*/
@media screen and (max-width: 78.125rem){
  main .col1 {
    padding-left: 20px;
    padding-right: 12px;
  }
  main .col2 {
    padding-left: 12px;
    padding-right: 20px;
  }
 

}

/*1130*/
@media screen and (max-width: 70.625rem){
   .home .writing .couv {
    min-width: 100px;
  }
  .home .writing img {
    width: 100px;
  }
  .home .writing:not(.echo):nth-of-type(2):hover {
    border-top-color: #585654;
  }
  .home .writing {
    flex-basis: 100%;
  }
  .writing img {
    width: var(--unit);
  }
}
/*768*/
@media screen and (max-width: 48rem){
  header {
    position: unset;
  }
  header nav ul {
    flex-wrap: wrap;
  }
  header nav ul li {
    flex-basis: 24.5%;
    flex-grow: 0;
  }
  header nav ul li.home {
    flex-basis: 100%;
  }
  header nav ul li:last-child {
    border-right: none;
  }
  footer ul {
    flex-direction: column;
    padding-left: 12px;
  }
  .page main {
    flex-direction: column;
    min-height: unset;
  }
  main .col1 {
    flex-basis: unset;
    padding-right: 20px;
  }
  main .col2 {
    flex-basis: unset;
    padding-left: 20px;
  }
  .page.writings .col1,
  .page.echos .col1 {
    padding-top: 0;
  }
  .page.writings .col2,
  .page.echos .col2,
  .page.detail-agenda .col2 {
    order: -1;
    padding-bottom: 0;
  }
  .page.writings .col2 .filters,
  .page.echos .col2 .filters,
  .page.detail-agenda .col2 nav{
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }
  
}
/*580*/
@media screen and (max-width: 35rem){
  .home .writings {
    flex-direction: column;
  }
  .home .writing {
    flex-basis: 100%;
  }
}
/*480*/
@media screen and (max-width: 30rem){
  header {
    position: unset;
  }
  header nav ul {
    flex-direction: column;
  }
  .page.writings .writing,
  .page.echos .writing,
  .detail-echo .writing,
  .detail-writing .writing {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-echo .description p,
  .detail-writing .description p,
  .detail-echo p.disclaimer, 
  .detail-writing p.disclaimer{
    padding-left: 0;
  }
  .home .writing {
    align-items: flex-start;
  }
}