/* ----------------------------- */
/* 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;
}

.ouverture,
.messages,
.evenement h2,
.evenement h3{
  font-size: 5.5rem;
  line-height: 1;
}

.searchbar input{
  font-size: 1.6rem;
}

.logo,
.ouverture,
.messages a{
  font-weight: bold;
}


/* ----------------------------- */
/* DESIGN GENERAL
/* ----------------------------- */

body{
  background-color: #f9f8f6;
  color: #020202;
}

.menu-principal{
  padding: 1em;
  display: flex;
}

.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;
  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%;
}

.evenement .infos-pratiques{
  display: flex;
  margin-bottom: 1rem;
}

.evenement .infos-pratiques .tag{
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 1em;
}
.evenement .infos-pratiques .tag a{
  display: block;
  padding: 0.1em 0.5em 0 0.5em;
}

.evenement .infos-pratiques .dates{
  flex: 1;
  padding-top: 0.15em;
  margin: 0 2rem;
}

.evenement .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,
.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{
  width: 100%;
  border-top: 1px solid;
  position: fixed;
  background: #f9f8f6;
  padding: 1em 1.5em;
  display: flex;
  bottom: 0;
}

.cookies p{
  font-size: 1em;
  line-height: 1.25em;
  display: inline;
}

.boutons-cookies{
  display: flex;
  align-items: baseline;
}

.boutons-cookies button{
  font-size: 1em;
  white-space: nowrap;
  background-color: #f9f8f6;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 2em;
  margin-left: 1.2em;
  padding: 0.1em 0.6em 0;
  cursor: pointer;
}

.accept-cookies{
  color: #00CC66;
  background-color: #f9f8f6;
}

.infos-pratiques{
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  width: 100%;
}

.article-expo .infos-pratiques .dates {
    flex: 1;
}

.evenement .infos-pratiques .dates, 
.article-expo .infos-pratiques .dates {
  flex: 1;
  padding-top: 0.15em;
  margin: 0 2rem;
}

.article-expo .infos-pratiques .dates + .tag {
    position: relative;
    right: 33.5%;
}

h1, h2{
  width: 100%;
  text-align: center;
  text-align: center;
    font-weight: bold;
    font-size: 7em;
    line-height: 0.85;
}

h1{
  text-transform: uppercase;
  padding-top: 5rem;
}

h2{
  padding-bottom: 10rem;
}

.evenement .infos-pratiques .tag, 
.article-expo .infos-pratiques .tag a, 
.article-expo .infos-pratiques .bouton-retour, 
.liste-documents li span + span a {
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 1em;
  display: inline-block;
  padding: 0.1em 0.5em 0 0.5em;
}
 
.diaporama{
  padding: 0 4em 6em
}

.chapeau p{
  line-height: 1em;
  font-size: 3em;
  padding-bottom: 1em;
  font-weight: bold;
}

.texte-principal{
  font-size: 1.7em;
  padding-bottom: 1.25em;
}

.notes{
  padding-bottom: 3rem;
}

.notes li:before {
    content: '1';
    margin-right: 7rem;
}

.notes li:after {
    content: ' ↩';
}

.chapeau, .texte-principal, .notes, .documents{
  padding-left: 2.6rem ;
  padding-right: 2.6rem;
}

.tag:hover , .bouton-retour:hover{
  color: #8844e6;
}
