html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #222;
  transition: background-color 1s ease;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: white;
}

/* BASE ELEMENTS */

img {
  display: block;
  margin: 0 auto;
}

a {
  color: white;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  margin-bottom: 2rem;
  padding: 0;
  color: #000000;
  text-transform: uppercase;
  font-weight: 700;
}

li {
  margin-bottom: 0.7rem;
}

legend {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  margin: 32px 0 32px 0;
  color: black;
  width: 100%;
}

h1 {
  line-height: 0.9;
}

h4 {
  color: black;
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: normal;
}

p {
  font-size: 20px;
  line-height: 32px;
}

/* BASE ELEMENTS END */

.logo {
  top: 3vw;
  left: 3vw;
  position: absolute;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-weight: bold;
  font-size: 14px;
  z-index: 1000000000000;
}

.contact {
  top: 3vw;
  right: 3vw;
  position: absolute;
  text-align: right;
}

.bt {
  display: inline-block;
  margin-left: 8px;
  width: 48px;
  height: 48px;
}

.baseline {
  text-align: center;
  text-transform: uppercase;
  padding-top: 70vh;
  font-size: 22px;
  letter-spacing: 0.5em;
}

.header-contacts {
  top: 3vw;
  right: 3vw;
  position: absolute;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.full-color {
  position: relative;
}

.scroll_container .full-color {
  height: 100vh;
}

.scroll_container {
  width: 65%;
  margin: 0 auto;
}

.sidebar {
  position: fixed;
  height: 100vh;
  width: 100vw;
  text-align: center;
}

.project-thumb .centered {
  width: 100%;
}

.project-thumb img {
  width: 90%;
  height: auto;
}

.project-thumb .description {
  text-align: center;
  line-height: 1.5rem;
  font-size: 18px;
}

.project-thumb .description b {
  font-size: 20px;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

img.more {
  width: 2em;
  height: auto;
  display: block;
  margin-top: 1em;
}

.backname {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15vw;
  color: #ffffff20;
}

.outline {
  color: transparent;
  -webkit-text-stroke-width: 0.05rem;
  -webkit-text-stroke-color: #ffffff;
}

.back-button {
  z-index: 1000000000;
  display: flex;
  top: 3vw;
  left: 3vw;
  position: fixed;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: bold;
  font-size: 14px;
}

.project-title {
  position: fixed;
  width: 100%;
  text-align: center;
}

.project-hero {
  position: relative;
  margin: 0 auto;
  margin-top: 0;
  width: 65vw;
  max-width: 1250px;
  animation: example 0.8s ease-out;
}

@keyframes example {
  0% {
    opacity: 0;
    top: -50px;
  }
  100% {
    opacity: 1;
    top: 0px;
  }
}

.project-hero img {
  width: 100%;
}

.down {
  text-align: center;
  position: absolute;
  bottom: 5vh;
  width: 100%;
}

/* CONTAINERS */

.case_container {
  padding-top: 2vh;
}

.row {
  background-image: linear-gradient(
    180deg,
    #cccccc00 0%,
    #cccccc00 10%,
    #6a277f 10%,
    #6a277f 90%,
    #cccccc00 90%,
    #cccccc00 100%
  );
}

.container {
  display: grid;
  margin: 0 auto;
  /*margin-bottom: 64px;*/
}

.container div {
  /*min-height: 200px;*/
  padding: 40px;
}

.small {
  width: 65vw;
  max-width: 600px;
}

.medium {
  width: 65vw;
  max-width: 960px;
}

.large {
  width: 80vw;
  max-width: 1600px;
}

.full {
  width: 100vw;
}

.c2,
.c2_shifted {
  grid-template-columns: repeat(2, 1fr);
}

.c3,
.c3_shifted {
  grid-template-columns: repeat(3, 1fr);
}

.c4,
.c4_shifted {
  grid-template-columns: repeat(4, 1fr);
}

.c2_shifted > div:nth-of-type(2),
.c3_shifted > div:first-of-type,
.c3_shifted > div:nth-of-type(3),
.c4_shifted > div:first-of-type,
.c4_shifted > div:nth-of-type(3) {
  padding-top: 160px;
}

.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.box {
  display: flex;
  flex-wrap: wrap;
}

.spacer {
  /* margin-bottom: 160px; */
  margin-bottom: 80px;
}

/***************/

div.circle {
  background: url(../img/hover-colis-1.svg) no-repeat center top;
  background-size: 90%;
  transition: all 1s ease;
}

div.circle:hover {
  background: url(../img/hover-colis-2.svg) no-repeat center top;
  background-size: 90%;
}

.project_infos {
  width: 65vw;
  max-width: 960px;
  margin: 0 auto;
  margin-bottom: 10vh;
  padding: 2em 0 2em 0;
  font-size: 1rem;
}

.project_infos h2 {
  margin-bottom: 50px;
  font-size: 120px;
  font-weight: 700;
  text-align: center;
  line-height: 0.9;
  width: 100%;
}

h2.uci {
  font-size: 100px;
}

.project_details {
  width: 35%;
  padding-right: 10%;
}

.project_details h3 {
  font-size: 0.9rem;
  opacity: 0.5;
  font-weight: 400;
  text-transform: uppercase;
}

.project_details ul {
  font-size: 0.9rem;
}

.project_description {
  width: 55%;
  color: #000000;
  font-size: 1.2rem;
  line-height: 2rem;
  padding: 0;
  margin: 0;
}

.shadow {
  box-shadow: 0 0 1.5em 0 rgba(0, 0, 0, 0.2);
}

.screen {
  width: 100%;
  max-width: 1250px;
  display: block;
}

.desk {
  border-top: solid #ffffff50 2rem;
  border-radius: 8px 8px 0 0;
}

.next {
  position: relative;
  height: 100vh;
  margin-top: 20vh;
  text-align: center;
}

.next h3 {
  text-transform: uppercase;
  color: #ffffff50;
  font-size: 2vw;
  letter-spacing: 0.5em;
  margin: 0;
  margin-bottom: 32px;
  padding: 0;
}

.next p {
  margin: 0 0 5vh 0;
  padding: 0;
  font-size: 2vw;
  letter-spacing: 0.2em;
}

#about a {
  display: inline-block;
  border-bottom: solid #888 3px;
}

#about a:hover {
  border-bottom: solid white 3px;
}

#about .backname {
  font-size: 15vw;
}

#about p + p + p {
  color: #888;
  line-height: 1.5;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.contact_links {
  margin-left: 240px;
  text-align: left;
}

.contact_links img {
  margin: 0;
}

.contact_links a:hover {
  text-decoration: underline;
}

/* COLOURS */

.color-dark {
  background-color: #222;
}

.color-light {
  background-color: #e9e2de;
}

/* Colis privé */

.txt-violet {
  color: #6a277f;
}

.color-violet {
  background-color: #6a277f;
}

/* MetLife */

.txt-blue {
  color: #005388;
}

.color-blue {
  background-color: #005388;
}

.color-green {
  background-color: #4dcf42;
}

.txt-gold {
  color: #9f8958;
}

.color-gold {
  background-color: #9f8958;
}

/* UCI */

.txt-orange {
  color: #ff6600;
}

.color-orange {
  background-color: #ff6600;
}

.color-red {
  background-color: #f2293a;
}

/* Oxance */

.txt-pink {
  color: #ff1c57;
}

.color-pink {
  background-color: #ff1c57;
}

/* MOBILE */

@media screen and (max-width: 640px) {
  .project_details,
  .project_description {
    width: 100%;
  }
  .small,
  .medium,
  .large,
  .full {
    width: 100vw;
  }
  .c2,
  .c2_shifted,
  .c3,
  .c3_shifted,
  .c4,
  .c4_shifted {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: 100vh;
  }
  .child {
    width: 90%;
  }
  .sidebar .child {
    text-align: center;
  }
  .scroll_container {
    width: 100%;
    margin-left: 0;
  }
  .logo {
    top: 9vw;
    left: 6vw;
    letter-spacing: 0.2em;
    font-size: 13px;
  }
  .back-button {
    top: 7vw;
    left: 7vw;
  }
  .down {
    bottom: 10vh;
  }
  .contact {
    top: 5vw;
    right: 6vw;
  }
  .bt {
    width: 48px;
    height: 48px;
    margin-left: 4px;
  }
  .baseline {
    font-size: 16px;
    letter-spacing: 0.2em;
    padding-top: 60vh;
  }
  .c2_shifted > div:nth-of-type(2),
  .c3_shifted > div:first-of-type,
  .c3_shifted > div:nth-of-type(3),
  .c4_shifted > div:first-of-type,
  .c4_shifted > div:nth-of-type(3) {
    padding-top: 0px;
  }
  .project_infos {
    margin-bottom: 5vh;
    padding: 4em 0 2em 0;
  }
  .project_infos h2,
  h2.uci {
    font-size: 35px;
    text-align: left;
    line-height: 1;
  }
  .project-hero {
    width: 90vw;
    margin-top: -80px;
  }
  .desk {
    border-top: solid #ffffff50 1rem;
    border-radius: 4px 4px 0 0;
  }
  .spacer {
    margin-bottom: 60px;
  }
  .next {
    height: 60vh;
  }
  #about {
    height: 100vh;
  }

  #about .backname {
    font-size: 22vw;
  }

  #about p + p + p {
    width: 90%;
    line-height: 1.5;
    font-size: 14px;
  }
  .next h3 {
    font-size: 4vw;
    margin-bottom: 16px;
  }
  .next p {
    font-size: 5vw;
  }
  .contact_links {
    margin-left: 0;
  }
}
