/* ----------------------------- */
/* 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;
  scroll-behavior: smooth;
}
*,
*: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;
  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: '\263B';
}

.evenement h2{
  text-transform: uppercase;
}

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


.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;
}

.cookiebanner{
  font-size: 1.8rem;
  display: flex;
  z-index: 999;
  width: 100%;
  border-top: 1px solid;
  position: fixed;
  bottom: 0px;
  background: #f9f8f6;
  padding: 1em 1.5em;
  justify-content: space-between;
}

.boutonscookies{
  display: flex;
  align-items: baseline;
}

/* méthode du prof
.boutonscookies{
  text-align: right;
  width: 30em;
  margin-left: 4rem;
} */

.cookiebanner a, button{
  font-size: 1.8rem;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 2rem;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  margin: 0 0.5rem;
}

.cookiebanner button{
  color: #00CC66;
  cursor: pointer;
}

.article-expo .infos-pratiques .tag, 
.article-expo .infos-pratiques .bouton-retour{
  border: 1px solid;
  border-radius: 2rem;
  margin: 0 0.5rem;
}

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

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

.article-expo .infos-pratiques > div:last-child{
  justify-content: space-between;
}
/*
.article-expo .infos-pratiques{
  display: flex;
}
*/
.article-expo h1, .article-expo h2{
  text-transform: uppercase;
  font-size: 6em;
  text-align: center;
  width: 100%;
  font-weight: bold;
}

.article-expo H2{
  padding-bottom: 0.5em;
}

.diaporama, figcaption{
  display: block;
  padding: 0 4em 2em;
  display: block;
}

.diaporama figcaption{
  font-size: 1em;
  padding-top: 1em;
}

.chapeau .commissariat{ 
  padding-bottom: 0.5em;
}

/*petit 1 dans la figcaption du diapo*/
sup{
  font-size: O.7em;
  position: relative;
  top: -0.5em;
}

.chapeau{
  padding: 1.4rem 2.2rem;
  font-size: 5.5rem;
}

.texte-principal{
  font-size: 1.5em;
  padding: 1.4rem 2.2rem;
}

.notes li{
  display: inline-block;
  padding: 1.4rem 2.2rem;
}

.notes li{
  list-style-type: decimal-leading-zero;
  margin-left: 1em;
}

/*
.notes li::before{
  content: "1";
  margin-right: 7rem;
}*/

.notes::after{
  content: "↩";
}