@font-face {
  font-family: "SuisseWorksRegular";
  src: url("../fonts/SuisseWorks-Regular.otf");
  font-weight: normal;
}

@font-face {
  font-family: "SuisseWorksItalic";
  src: url("../fonts/SuisseWorks-RegularItalic.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "SurtRegular";
  src: url("../fonts/Surt-Regular.otf");
  font-weight: normal;
}

:root {
  --font-courant: SuisseWorksRegular;
  --font-courant-italic: SuisseWorksItalic;
  --font-title: SurtRegular;
  --gutter-width: 20px;
}

html {
  margin: 0;
}

body {
  margin: 89px 0 0 0;
}

em {
  font-family: var(--font-courant-italic);
  font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: #181818;
  font-weight: normal;
}

p {
  font-family: var(--font-courant);
  font-size: 15px;
  margin: 0;
  line-height: 1.5em;
}

h1,
h2 {
  font-family: var(--font-title);
  font-size: 35px;
  margin: 0;
  line-height: 1.2em;
}

a,
a:hover,
a:visited,
a:active {
  color: currentColor;
  cursor: pointer;
}

header a {
  text-decoration: none;
}

ul,
li {
  text-decoration: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-courant);
  font-size: 15px;
  margin: 0;
  line-height: 1.5em;
}

/* LAZYLOADING IMAGES */
.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 300ms;
}

/* ---------- header ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 0;
  z-index: 99;
  max-height: 100dvh;
  overflow-y: auto;
}

#button-home-desktop,
#button-home-mobile {
  text-align: center;
  padding: 1.4em 0;
  border-bottom: 1px solid black;
}

#button-home-desktop > a {
  display: block;
  max-width: 400px;
  margin: auto;
}

#button-home-mobile {
  display: none;
  padding: 2em 0;
}

/* Hamburger */

.hamburger {
  position: absolute;
  left: var(--gutter-width);
  top: 25px;
  height: 35px;
  display: -ms-grid;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  z-index: 120;
  cursor: pointer;
}

.hamburger div {
  background-color: #181818;
  position: relative;
  width: 40px;
  height: 4px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#toggle {
  display: none;
}

#toggle:checked + .hamburger .one {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  margin-top: 16px;
}

#toggle:checked + .hamburger .two {
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  margin-top: -4px;
}

#toggle:checked + .hamburger .three,
#toggle:checked + .hamburger .four {
  -webkit-transform: scale(0);
  transform: scale(0);
}

#toggle:checked ~ .menu {
  grid-template-rows: 1fr;
  border-bottom: 1px solid black;
  padding: var(--gutter-width);
}

/* Menu */
.menu {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: 30px;
  grid-template-rows: 0fr;
  width: 100%;
  background-color: white;
  margin: 0;
  padding: 0 var(--gutter-width);
  list-style: none;
  clear: both;
  width: auto;
  overflow: hidden;
  z-index: 120;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}

nav > ul {
  grid-column: span 2;
  text-align: left;
  overflow: hidden;
}

nav > ul > li > p {
  text-align: left;
}

nav > ul > li:first-of-type > p {
  font-family: var(--font-title);
  margin-bottom: 1em;
}

.page-title > h1 {
  grid-column: 2 / span 10;
  text-align: center;
}

.page-title {
  border-bottom: 1px solid black;
}

section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: 30px;
  padding: var(--gutter-width);
}

.section-title {
  grid-column: 1 / span 12;
  text-align: left;
  margin: 0 0 calc(var(--gutter-width) * 2) 0;
}

.section-image {
  border: none;
}

.section-image picture {
  grid-column: 1 / span 12;
}
.section-image picture img {
  width: 100%;
}

.main-infos > div {
  margin: 5px 0;
}

.main-infos > div > h1:first-of-type,
.main-infos > div > h2:first-of-type {
  text-transform: uppercase;
}

.downloader {
  text-decoration: underline;
}

.downloader:hover p {
  cursor: pointer;
}

.container-img {
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: var(--gutter-width);
}

.container-img img {
  height: 400px;
  max-width: 100%;
  display: flex;
  align-items: center;
  object-fit: contain;
  transition: all 0.4s ease-in-out;
}

.item-event {
  grid-column: span 4;
}

.item-event .tags-container p {
  display: inline-block;
}

.social-picto {
  display: inline-flex;
}

.social-picto img {
  height: 1.8em;
  padding: 0 5px 0 0;
}

footer {
  width: calc(100% - var(--gutter-width) * 2);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: var(--gutter-width);
  background-color: white;
  border-top: 1px solid black;
  padding: calc(var(--gutter-width) * 2) var(--gutter-width)
    calc(var(--gutter-width) * 3) var(--gutter-width);
  align-items: center;
}

#footer-logo {
  grid-column: 1 / span 3;
}

#footer-logo > img {
  max-height: 135px;
}

#footer-infos {
  grid-column: 5 / span 4;
  text-align: center;
}

.socials-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 5px;
}

img.picto-socials {
  height: 35px;
}

/*---------------------- LAYOUT AND BLOCKS -----------------------*/
section.grid {
  padding: 0;
  border: none;
}

.column-12 {
  grid-column: span 12;
}

.column-6 {
  grid-column: span 6;
}

.column-3 {
  grid-column: span 3;
}

.column-12 .blocks.heading > h2 {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.blocks {
  padding: var(--gutter-width);
}

.blocks.text p {
  margin-bottom: 1rem;
}

.blocks.list > ul li {
  list-style: disc inside;
}

.blocks.image picture img {
  width: 100%;
  height: auto;
}

.blocks.line {
  padding: 0;
}

.line > hr {
  border: 0;
  border-bottom: 1px solid black;
}
.blocks.logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  grid-gap: 20px;
  flex-wrap: wrap;
}

.blocks .logo-partenaire {
  align-self: center;
  justify-self: center;
  width: auto;
  max-width: 200px;
  height: 100px;
  padding: 20px;
  object-fit: contain;
}

/* SLIDER */

.slideshow-container {
  position: relative;
  display: block;
  text-align: center;
}

/* Hide the images by default */

.mySlides {
  display: none;
  width: 100%;
}

.container-image {
  margin-bottom: 1rem;
  height: 70vh;
}

.mySlides > .container-image > picture > img {
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  height: 94%;
  width: 50%;
  color: white;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.prev {
  left: 0;
}

#bullets {
  text-align: right;
  right: 0;
}

.dot {
  cursor: pointer;
  display: inline-block;
}

.fade {
  animation-name: fade;
  animation-duration: 0.2s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.credits {
  display: inline-block;
  text-align: center;
}

.credits p:last-child {
  text-align: center;
  position: initial;
}

#slider-mobile {
  display: none;
}

@media screen and (max-width: 1300px) {
  .menu {
    grid-template-columns: repeat(6, 1fr);
  }

  nav > ul {
    grid-column: span 1;
  }
}

@media screen and (max-width: 1100px) {
  .item-event {
    grid-column: span 6;
  }
}

@media screen and (max-width: 780px) {
  body {
    margin: 57px 0 0 0;
  }

  #button-home-mobile {
    display: block;
    padding: 1em 0;
  }
  #button-home-desktop {
    display: none;
  }

  p {
    font-size: 17px;
  }

  h1,
  h2 {
    font-size: 26px;
  }

  .hamburger {
    top: 11px;
  }

  #toggle:checked ~ .menu {
    grid-template-rows: 6fr;
    height: auto;
  }

  #toggle:checked ~ .menu > ul {
    grid-row: auto;
  }

  .menu {
    /* grid-template-rows: 0fr; */
    height: 0px;
    /* max-height: calc(100vh - 80px); */
    overflow-y: scroll;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
  }

  nav > ul {
    grid-column: span 6;
    margin-bottom: 1em;
    grid-row: 1;
  }

  nav > ul > li:first-of-type > p {
    font-family: var(--font-title);
    margin: 0;
  }

  .item-event {
    grid-column: 1 / span 12;
    border-bottom: 1px solid black;
    margin-bottom: 3rem;
  }

  section .item-event:last-child {
    border: none;
  }

  .page-title {
    grid-column: 1 / span 12;
  }

  .column-12 .blocks.heading > h2 {
    width: 100%;
  }

  #footer-logo {
    text-align: center;
    grid-column: 1 / span 12;
  }

  #footer-logo img {
    max-width: 80px;
  }

  #footer-infos {
    grid-column: 1 / span 12;
    margin-top: 2em;
  }
}
