/* ----------------------------- */
/* RESET
/* ----------------------------- */

@charset "UTF-8";
html {
  /* on s'arrange pour que 1rem soit égal à 10px */
  font-size: 62.5%;
  /* IE9-IE11 */
  font-size: calc(1em * 0.625);
}

/* la suite du reset permet d'enlever les marges par défaut créées par les navigateurs */
/* et de donner un comportement plus intuitif aux principaux éléments */

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul, menu {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img{
  max-width: 100%;
  height: auto;
}
a{
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4, h5{
  font-weight: normal;
}
*[role='button']{
	cursor: pointer;
	user-select: none;
}


/* ----------------------------- */
/* TYPOS
/* ----------------------------- */

@font-face {
  font-family: 'Apfel Grotezk';
  src: url('../fonts/ApfelGrotezk-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apfel Grotezk';
  src: url('../fonts/ApfelGrotezk-Brukt.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Necto Mono';
  src: url('../fonts/NectoMono-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


body{
  font-family: 'Apfel Grotezk', 'Helvetica', Arial, sans-serif;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: normal;
}

.article-expo h1,
.article-expo h2{
  font-size: 11rem;
  line-height: 1;
}

.ouverture,
.messages,
.evenement h2,
.evenement h3,
.chapeau{
  font-size: 5.5rem;
  line-height: 1;
}

.texte-principal{
  font-size: 3rem;
}

button{
  font-size: 1.9rem;
}

.searchbar input{
  font-size: 1.6rem;
}

.logo,
.ouverture,
.messages a,
.article-expo h1{
  font-weight: bold;
}


/* ----------------------------- */
/* DESIGN GENERAL
/* ----------------------------- */

html{
  scroll-behavior: smooth;
}

body{
  background-color: #f9f8f6;
  color: #020202;
}

header{
  position: sticky;
  top: 0;
  z-index: 2;
  transition: top 0.4s ease;
}

header.is-hidden{
  top: -120px;
}

.menu-principal{
  padding: 1em;
  display: flex;
  background-color: #f9f8f6;
}

.menu-principal > *{
  width: calc(100% / 6);
  padding: 0.5em;
}

.logo{
  text-transform: uppercase;
}

header a:hover,
header a.active,
footer a:hover{
  color: #C6C6C6;
}

.searchbar form{
  display: flex;
  align-items: center;
}

.searchbar form::before{
  content: url('../images/loupe.svg');
  width: 0.8em;
  height: 0.8em;
  min-width: 0.8em;
  min-height: 0.8em;
  margin-right: 0.7em;
}

.searchbar input[type='search']{
  border: none;
  border-radius: 1em;
  padding: 0.3em 1em;
  max-width: 80%;
}

.searchbar input[type='search']::placeholder{
  font-family: 'Apfel Grotezk', 'Helvetica', Arial, sans-serif;
  color: #C6C6C6;
}

.langue a:first-child::after{
  content: ' / ';
  color: initial;
}

.ouverture{
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pastille{
  border: 3px solid;
  color: #ff0067;
  background-color: #f9f8f6;
  padding: 0.05em 0.6em;
  border-radius: 1em;
  margin: 1rem;
}

.pastille.open{
  color: #00CC66;
}

.horloge{
  margin: 1rem;
  max-height: 66px;
  animation: tourner 3s linear infinite;
}

.horloge:hover{
  animation: tourner-agrandir 0.5s linear infinite;
}

@keyframes tourner{
  0%{ 
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg); 
  }
}

@keyframes tourner-agrandir{
  0%{ 
    transform: rotate(0);
  }
  50%{
    transform: rotate(180deg) scale(1.2) skew(10deg);
    filter: blur(5px);
  }
  100%{ 
    transform: rotate(360deg); 
  }
}

.messages{
  padding: 2rem;
  color: #9933FF;
}

.messages article{
  border: 0.8rem solid;
  padding: 1.4rem 2.2rem;
}

.messages article + article{
  margin-top: 2rem;
}

.messages article.visite{
  color: #0066FF;
}

.messages a{
  text-decoration: underline;
}
.messages a:hover{
  text-decoration: none;
}

.agenda{
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
}

.evenement{
  border-top: 1px solid;
  padding: 1.5rem 1rem 2rem 1rem;
  width: 50%;
}

.infos-pratiques{
  display: flex;
  margin-bottom: 1rem;
}

.article-expo .infos-pratiques{
  padding: 2rem 1.5em 5rem 1.5em;
}

.article-expo .infos-pratiques > div{
  width: 50%;
  display: flex;
}

.article-expo .infos-pratiques > div:last-child{
  justify-content: space-between;
}

.infos-pratiques .tag{
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 1em;
  white-space: nowrap;
}

.infos-pratiques .bouton-retour{
  border: 1px solid;
  border-radius: 50%;
  margin-left: 2rem;
}

.infos-pratiques .tag a{
  display: block;
  padding: 0.1em 0.5em 0 0.5em;
}

.infos-pratiques .bouton-retour a{
  display: block;
  padding: 0.1em 0.3em 0 0.3em;
}

.infos-pratiques .dates{
  flex: 1;
  padding-top: 0.15em;
  margin: 0 2rem;
}

.infos-pratiques .dates::before{
  content: '✧ ';
}

.evenement h2{
  text-transform: uppercase;
}

.evenement figure{
  width: 80%;
  margin: 2rem auto 0 auto;
}

.evenement figure.portrait{
  width: 50%;
}

.evenement figure img{
  filter: grayscale(100%);
  border-radius: 4rem;
}

.evenement:hover,
.tag:hover,
.bouton-retour:hover,
.evenement:hover .tag:hover{
  color: #9933FF;
}

.evenement:hover .tag{
  color: initial;
}

.evenement:hover h2{
  font-weight: bold;
}

.evenement:hover img{
  filter: grayscale(0%);
}

footer{
  padding-top: 6rem;
  background-image: url('../images/etoiles.svg');
  background-repeat: repeat-x;
  background-size: 1.6rem;
}

.coordonnees{
  padding: 1em;
  display: flex;
}

.coordonnees > *{
  padding: 0.5em;
}

.coordonnees menu{
  min-width: 13em;
}

.logo-large{
  padding: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18.5vw;
  display: flex;
  justify-content: space-between;
}


/* Cookies */

.cookies{
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid;
  padding: 2rem 3rem;
  background-color: #f9f8f6;
  display: flex;
  justify-content: space-between;
  transition: bottom 0.4s ease;
}

.cookies.is-hidden{
  bottom: -250px;
}

.boutons-cookies{
  margin-left: 4rem;
  width: 30em;
  text-align: right;
}

button{
  font-family: 'Apfel Grotezk', 'Helvetica', Arial, sans-serif;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 1em;
  display: inline-block;
  padding: 0.1em 0.5em 0 0.5em;
  background-color: #f9f8f6;
  margin-top: 0.7rem;
  margin-left: 0.7rem;
  white-space: nowrap;
}

button.accept-cookies{
  color: #00CC66;
}

button:hover{
  cursor: pointer;
  color: #C6C6C6;
}


/* Page expo */

.article-expo h1,
.article-expo h2{
  text-align: center;
  padding: 0 1em;
}

.article-expo h1{
  text-transform: uppercase;
}

.diaporama{
  margin-top: 10rem;
  margin-bottom: 12rem;
}

.chapeau,
.texte-principal{
  margin-bottom: 5rem;
}

.chapeau,
.texte-principal,
.notes{
  padding: 0 3rem;
}

sup{
  font-size: 0.7em;
  position: relative;
  top: -0.5em;
}

.chapeau p + p,
.texte-principal p + p{
  margin-top: 1em;
}

.notes li{
  list-style-type: decimal;
  margin-left: 1.2em;
  padding-left: 3rem;
}

.notes li .footnotereverse{
  margin-left: 0.5em;
}

.documents{
  margin-top: 10rem;
}

.documents h3, .evenements h3 {
    font-size: 9vh;
    padding-top: 1em;
    padding-bottom: 0.5em;
    font-family: 'Apfel Grotezk';
    font-weight: bold;
    text-align: center;
}

.liste-documents {
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.liste-documents li {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid black;
    padding: 0.8em;
    align-items: baseline;
}

.documents .liste-documents li span:first-child {
    font-size: 1.8em;
}

.documents .liste-documents li span + span {
    display: flex;
    flex: row;
    font-size: 2vh;
    margin-right: 2rem;
}

/* diaporama */

.splide{
  cursor: grab;
}

.splide__slide img,
.splide__slide figcaption{
  display: block;
  margin: 0 auto;
  width: calc(100% - 4rem);
}

.splide__slide img{
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.splide__slide figcaption{
  margin-top: 1em;
}

.splide__slide figcaption span{
  margin-right: 3rem;
}

.splide__slide figcaption p{
  display: inline;
}








.evenements li{
  padding: 2rem;
  max-width: calc(50%);
  border-top: 0.1em solid;
  
}

.evenements li:hover{
  color: blue ;
  }



.evenements ul {
    width: calc(100%);
    display: flex;
    flex-flow: row wrap;
    padding: 1em 0;
    
}


@media screen and (max-width: 1024px)
.evenements ul li {
    width: 100%;
}


.evenements ul li article {
    display: flex;
    flex-direction: row;
    font-size: 80%;
  }

.evenements ul li article div {
    margin-right: 0.5em;
}



.border {
    border: 1px solid;
    border-radius: 1em;
    padding: 0 0.5em;
}


h4 {
    font-size: 300%;
    font-family: 'Apfel Grotezk';
    font-weight: bold;
}

.temps::before {
    content: '✧ ';
}

*, *:before, *:after {
    box-sizing: inherit;
}


.evenements ul li article div {
    margin-right: 0.5em;
}

ul article div:nth-child(3) {
    flex: 1;
}

.evenements ul figure {
    height: 50vh;
    width: 100%;
    text-align: center;
    display: inline-block;
}


.evenements ul figure img {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.coordonnees menu {
    min-width: 13em;
}
.coordonnees > * {
    padding: 0.5em;
}


menu {
    display: flex;
    flex-flow: column;
    width: 16.666%;
}
ol, ul, menu {
    list-style: none;
}

menu div input {
    border: 1px solid white;
    flex: 1;
    min-width: 5em;
    height: 1.25em;
    background: white;
    width: 100%;
    color: black;
    border-radius: 1em;
    padding: 0 0.5em;
    margin: 0;
    max-width: 20em;
}

.newsletter li {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}


user agent stylesheet
input[type="email" i] {
    writing-mode: horizontal-tb !important;
    padding-block: 1px;
    padding-inline: 2px;
}

.suivez-nous div {
    display: flex;
}
footer .suivez-nous span {
    padding: 0 0.25em;
    width: 1.5em;
    height: 1.25em;
    padding-top: 0.125em;
}