/* Main css */
body{
  font-family: var(--labeur);
  font-size: var(--font-size-base);
  background-color: var(--background-color);
  text-rendering: geometricPrecision;
}

h1,h2,h3,h4,h5{
  font-family: 'AalterGrotesque';
  line-height:  1;
  font-weight: normal;
}
h1{
  font-size: var(--font-size-xl);
  line-height: 0.8;
}

main h1{
  margin-bottom: var(--small-margin);
}

h2,
h3 {
  margin-bottom: var(--small-margin);
}

h2{
  font-size: var(--font-size-lg);
  hyphens: none;
  text-wrap: balance;
}

h3{
  font-size: var(--font-size-md);
}

h2+p{
  margin-top: var(--medium-margin);
}

h2+div{
  margin-top: var(--medium-margin);
}

h2+h3{
  margin-top: var(--medium-margin);
}

h2+ul{
  margin-top: var(--medium-margin);
}

h2+ol{
  margin-top: var(--medium-margin);
}

h2+section{
  margin-top: var(--medium-margin);
}

p {
  font-family: var(--labeur);
  margin-bottom: var(--small-margin);
  line-height: 1.2;
}

b, strong{
  font-family: 'AalterGrotesque';
  font-weight: normal;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

em, i{
  font-family: var(--labeur-ital);
  font-style: normal;
  font-weight: normal;
}

u{
  text-decoration: var(--underline);
  text-underline-offset: var(--underline-offset);
}

p+h2{
  margin-top: var(--medium-margin);
}

div+h2{
  margin-top: var(--medium-margin);
}

ul{
  font-family: var(--labeur);
  margin-bottom: var(--small-margin);
  list-style-type: "→ ";
}

li{
  margin-left: 25px;
  line-height:1.2;
  text-wrap: balance;
  font-family: var(--labeur);
}

ul+h2{
  margin-top: var(--medium-margin);
}

a {
  color: black;
  word-break: keep-all;
  text-decoration: var(--underline);
  text-underline-offset: var(--underline-offset);
}

header{
  position: sticky;
  top: 0px;
  padding: var(--small-margin) 0 var(--small-margin) 0;
  background-color: var(--background-color);
}
header,main{
  padding: var(--small-margin);
}
main{
  padding-top: calc(var(--small-margin)*2);
  padding-bottom: calc(var(--large-margin)*2);
}
  
figure {
  pointer-events: none;
  height: calc(55vh - var(--medium-margin) - 0 - var(--small-margin));
  width: 33%;
  margin: var(--small-margin) 0;
}
img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: .15em .15em .3em rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: .15em .15em .3em rgba(0, 0, 0, 0.5);
  -moz-box-shadow: .15em .15em .3em rgba(0, 0, 0, 0.5);
}

/* Menu */
nav {
  position: fixed;
  z-index: 99;
  bottom: 0;
  left: 0;
  padding: var(--small-margin) var(--side-margin);
  background-color: var(--background-color);
  border-top: 1px solid black;
  display: grid;
  justify-items: center;
  width: calc(100vw - var(--small-margin));
  
  margin-left: calc(var(--small-margin) / 2);
  margin-right: calc(var(--small-margin) / 2);
}

nav li {
  list-style-type: none;
  font-family: "AalterGrotesque";
  margin: 0;
  line-height: 1;
  margin-bottom: 0.2em;
}

nav a {
  text-decoration: none;
  font-size: var(--font-size-md);
}

#menuButton {
  font-family: "AalterGrotesque";
  width: 100%;
  font-size: var(--font-size-md);
}

#menuButton:hover {
  cursor: pointer;
}

/* Details */
#spacer{
  margin-bottom: 0px;
}

#liste-des-coediteurices ol {
  margin-left: var(--small-margin);
}

#les-contributions{
  counter-reset: section -1;
}

#les-contributions h2 {
  margin-bottom: var(--small-margin);
  margin-left: 1.5em;
  text-indent: 0em;
}

#les-contributions h2+ul{
  margin-top: var(--small-margin);
}

#les-contributions h2::before{
  counter-increment: section;
  content: counter(section);
  display: inline-block;
  text-indent: -2.2em;
  text-align: center;
}

#les-contributions li{
  margin-left: 3.3em;
}

#siteTitle{
  max-width: 60%;
}

#siteTitle a {
  text-decoration: none;
  word-break: keep-all;
}

#sommaire,  #sommaire p{
  margin: 0;
}
#sommaire p{
  margin-bottom: var(--small-margin);
}

#sommaire{
  margin-top: var(--large-margin);
}

#calendrier-evenements div{
  margin-bottom: var(--large-margin);
}

.attention {
  border-left: 1px solid black;
  padding-left: var(--small-margin)
}