@charset "UTF-8";

/* =====  1 Global Rules & Definitions  ===================================== */

/* -----  1.1 Font Definitions  --------------------------------------------- */

@font-face {
  font-family: 'DIN';
  src: url(../fonts/OSP-DIN.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url(../fonts/Inter-SemiBold.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url(../fonts/Inter-SemiBoldItalic.woff) format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Inter';
  src: url(../fonts/Inter-Bold.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url(../fonts/Inter-BoldItalic.woff) format("woff");
  font-weight: bold;
  font-style: italic;
}

/* -----  1.2 Reset & Normalization  ---------------------------------------- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  list-style: none;
}

article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section, summary {
  /* Add correct display for IE 9- and some newer browsers */
  display: block;
}

::-moz-selection {
  background: #292929;
  color: #fff;
}

::selection {
  background: #292929;
  color: #fff;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* -----  1.3 General Typography  ------------------------------------------- */

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, pre {
  /* Reset font-sizes and normalize margins */
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 2rem;
}

/* Headings */
h1, h2, h3 {
  font-family: 'DIN', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

h1 {
  font-weight: 700;
  font-size: 4rem;
  margin-bottom: 4rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1em;
}



figcaption,
.small,
.columns {
  font-family: 'Courier New', Courier, monospace;
  font-size: .75rem;
  line-height: 1.7;
  font-weight: normal;
  text-transform: none;
}

/* Links */
a {
  color: inherit;
}

a:hover, a:focus, a:active {
  color: #292929;
}

h1 a,
h2 a,
h3 a {
  text-decoration: none;
}

/* Misc */
hr {
  font-size: 1.25rem;
  font-weight: 500;
  height: 1.5rem;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #000;
}


h1 + hr,
.intro + hr {
  /* Shift a <hr> right after an `.intro`
     or <h1> block one line up. */
  margin-top: -1.5rem;
}

i, em {
  /* Vesper Libre does not have Italics,
     so we use a the *medium* weight instead */
  font-weight: 500;
  font-style: normal;
}

b, strong {
  font-weight: 700;
}

mark {
  padding: .1em .05em;
  margin: -.1em 0;
  color: #fff;
  background: #292929;
}

/* -----  1.4 Images & Figures  --------------------------------------------- */

img {
  border-style: none;
  width: 100%;
  height: auto;
  display: block;
}

/* =====  2 Layout Helpers & Reusable Components  =========================== */

/* The Clearfix™: A classic … */
.cf::after {
  content: "";
  display: block;
  height: 0;
  overflow: hidden;
  clear: both;
}

html, body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.3;
  font-size: 16px;
}

html {
  position: relative;
  overflow-x: hidden;
}

/* --- GRID --- */

.grid-container {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "sidebar cover cover cover"
      "sidebar title title title"
      "sidebar content content ."
      "gallery gallery gallery gallery";
    grid-gap: 4rem;

    padding: 4rem;

}

/* --- FÉTICHES --- */

.random_objects img {
  position: absolute;
  width: auto;
  z-index: 99999;
  image-rendering: optimizespeed;
  image-rendering: -moz-crisp-edges;
  cursor: move;
}

/* --- COLUMNS --- */

.columns {
  display: flex;
}

.columns > .column {
  flex: 1;
  margin-right: 1rem;
}

.columns > .column:last-child {
  margin: 0;
}

/* --- SIDEBAR --- */

.sidebar {
  grid-area: sidebar;
}

.sidebar a {
  text-decoration: none;
}

.sidebar a.active {
  text-decoration: none;
  border-bottom: 1pt solid;
}

.sidebar .small a.active {
  text-decoration: none;
  border-bottom: .5pt solid;
}

.menu ul ul ul {
  padding-left: 2rem;
  margin: .4rem 0;
}

.button-menu {
  display: none;
}

/* --- COVER --- */
.cover {

  grid-area: cover;

  min-height: 8rem;

}

/* --- TITLE --- */
.title {
  grid-area: title;
}

.title h1 {
  margin: 0;
}

.site_description {
  margin-bottom: 1rem;
}

/* --- CONTENT --- */

.content {
  grid-area: content;
}

/* --- GALLERY WIDE --- */

.gallery {
  grid-area: gallery;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 4rem;

}

.gallery figure {
  margin: 0;
}

.gallery figure figcaption {
  position: absolute;
  left: 0;
  top: 100%;
}

.gallery.wide figure:nth-child(odd) {
  grid-column: 1 / 4;
}

.gallery.wide figure:nth-child(even) {
  grid-column: 2 / 5;
}

/* --- GALLERY THUMBS --- */

.gallery.thumbs figure {

}

.gallery.thumbs figure a {
  display: block;
  padding-bottom: 56.25%;
  background-size: cover;
  width: 100%;
}

/* --- CALENDAR ---*/

.calendar {
  margin-bottom: 8rem;
}

.calendar .row {

    display: flex;
    flex-wrap: wrap;
    position: relative;

}

.calendar .row .item {

    flex: 1;
    padding: .25rem 0;

}

.calendar .event {

  border-bottom: 1px solid;
  padding: .5rem 0;

}

.calendar .item.start,
.calendar .item.end {

  flex: 1;

}

.calendar .item.project {

  flex: 2;

}

.calendar .item.url {

  flex: 0;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

}

.calendar .item.infos {
  padding-right: 2rem;
}

.calendar .item.place,
.calendar .item.infos {
  flex-basis: 50%;
}

.calendar .url a {

    text-align: center;
    border: 1px solid;
    flex: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    min-width: 1.5rem;
    border-radius: 100%;
    text-decoration: none;

}


@media all and (min-width: 36em) {

}

@media all and (max-width: 46em) {

  h1, h2, h3 {
    font-size: 2rem;
  }

  .random_objects {
    display: none;
  }

  /* --- GRID --- */

  .grid-container {

      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      grid-template-areas:
        "sidebar"
        "cover"
        "title"
        "content"
        "gallery";
      grid-gap: 2rem;

      padding: 2rem;

  }

  /* --- COLUMNS --- */
  .columns {
    display: block;
  }

  /* --- MAIN --- */

  .cover {

    min-height: 0;

  }

  /* --- GALLERY --- */

  .gallery {
    grid-area: gallery;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 2rem;

  }

  .gallery.wide figure:nth-child(odd) {
    grid-column: 1 / 3;
  }

  .gallery.wide figure:nth-child(even) {
    grid-column: 1 / 3;
  }

  /* --- CALENDAR --- */

  .calendar .row {
    margin-bottom: .5rem;
  }

  .calendar .row .item {
    padding: 0;
    min-width: 10rem;
  }

  .calendar .row .item.small {
    min-width: 8rem;
  }

  .calendar .row .item.url {
    min-width: 0;
  }

  /* --- SIDEBAR --- */

  .site_title {
    margin: 0;
  }

  .menu {
    position: relative;
  }

  .menu > ul {
    display: none;
  }

  .menu.open > ul {
    display: block;
    clear: both;
    margin: 2rem 0;
  }

  .menu .button-menu {
    position: absolute;
    top: 0;
    cursor: pointer;
    display: block;
    right: 0;
    border-width: 1px 0 1px 0;
    border-style: solid;
    text-indent: -99999px;
    width: 1.8rem;
    height: 1.4rem;
    margin: .25rem 0;
  }

  .menu .button-menu::before {
    content: " ";
    width: 100%;
    border-top: 1px solid;
    position: absolute;
    top: 50%;
    left: 0;
  }

  .menu.open .button-menu {
    border-width: 0;
  }

  .menu.open .button-menu::before {
    content: " ";
    width: 100%;
    border-top: 1px solid;
    position: absolute;
    top: 50%;
    left: 0;
    transform: rotate(-45deg);
  }

  .menu.open .button-menu::after {
    content: " ";
    width: 100%;
    border-top: 1px solid;
    position: absolute;
    top: 50%;
    left: 0;
    transform: rotate(45deg);
  }

}
