/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  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;
}

@font-face {
  font-family: 'fivo_sans_modernitalic';
  src: url('../fonts/fivomodern/fivosansmodern-regular-oblique-webfont.woff2') format('woff2'),
    url('../fonts/fivomodern/fivosansmodern-regular-oblique-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'fivo_sans_modernregular';
  src: url('../fonts/fivomodern/fivosansmodern-regular-webfont.woff2') format('woff2'),
    url('../fonts/fivomodern/fivosansmodern-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'fivo_sans_modern_bold';
  src: url('../fonts/fivomodern/fivosansmodern-bold-webfont.woff2') format('woff2'),
    url('../fonts/fivomodern/fivosansmodern-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

body {
  background-color: #ffac1a;
  color: black;
  font-family: "fivo_sans_modernregular", sans-serif;
  min-height: 100%;
}

h1 {
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 24px;
  font-family: "fivo_sans_modern_bold", sans-serif;
  text-transform: uppercase;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  font-size: 18px;
  line-height: 24px;
}

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

em {
  font-style: italic;
}


.logo {
  font-family: "fivo_sans_modern_bold", sans-serif;
  font-size: 32px;
  line-height: 24px;
}

.menu {
  font-family: "fivo_sans_modern_bold", sans-serif;
  font-size: 24px;
  line-height: 24px;
}

.introduction p{
  font-size: 22px;
  margin: 24px 0;
}


.description p {
  font-size: 22px;
  line-height: 28px;
}

.separator {
  margin: 48px 0px;
  border-bottom: 2px solid;
}

.conteneur {
  max-width: 988px;
  padding: 0 24px;
  margin: 0 auto;
}

.description {
  margin:48px 0;
}

.project-title,
.project-details {
  margin: 24px 0;
}

.project-details {
  font-size: 16px;
}

.project-phrase {
  margin: 24px 0;
  text-align: center;
  border: 2px solid white;
  padding: 24px;
  font-weight: 300;
}

.project-img {
  /* display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between; */

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 24px;
  grid-column-gap: 24px;
}

.img-wrap {
  /* width: 49%;
  min-height: 100%;
  margin-bottom: 24px; */
  transition: all 0.3s ease-in-out;
}

.img-wrap a {
  height: 100%
}

.project-img img {
  object-fit: cover;
}



.fade-box .lazyload,
.fade-box .lazyloading {
  opacity: 0;
  transition: opacity 400ms;
}

.fade-box img.lazyloaded {
  opacity: 1;
}


header {
  border-bottom: 2px solid white;
  padding: 20px;
  background-color: #ffac1a;
}

.headbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  justify-content: space-between;
}


.cta {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.cta-text {
    width: 40%;
    display: flex;
    align-items: flex-start;
    margin-right: 10%;
    flex-direction: column;
}

.cta-title {
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 24px;
  font-family: "fivo_sans_modern_bold", sans-serif;
  text-transform: uppercase;
}

.cta-img,
.cta-mail {
  width: 50%;
}

button {
  font-family: "fivo_sans_modern_bold", sans-serif;
  text-align: center;
  font-size: 22px;
  background: #ffac1a;
  padding: 12px;
  text-transform: uppercase;
  border: 2px solid;
  margin-top: auto;
  transition: all .3s ease-in-out;
}

button a {
  color: black;
}

button:hover {
  background: black;
}

button:hover a {
  color: #ffac1a;
}

img {
  width: 100%;
  height: 100%;
}

footer {
  text-align: center;
  padding: 50px 0;
}

#scroll-to-top {
  cursor: pointer;
  display: block;
  position: fixed;
  font-size: 20px;
  bottom: 0px;
  right: 20px;
  opacity: 0;
  z-index: 10;
  transform: translateY(30%);
      width: auto;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.piece {
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .headbar {
    flex-direction: column;
    justify-content: normal;
    align-items: baseline;
  }

  .mail {
    margin: 12px 0;
  }

  .conteneur {
    padding: 0 15px;
  }

  .description {
    font-size: 1.5rem;
    margin: 1em 0;
  }

  h1 {
    font-size: 32px;
    font-weight: bold;
  }

  h2 {
    font-size: 24px;
    font-weight: 400;
  }

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

  .project-phrase {
    margin: 12px 0;
    font-size: 14px;
    padding: 12px;
  }

  .cta {
    display: block;
  }
  .cta-text {
    width: 100%;
  }

  button { margin: 24px 0;}
}

@media (max-width: 550px) {

  h1 {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 24px;
    font-family: "fivo_sans_modern_bold", sans-serif;
    text-transform: uppercase;
  }
  .cta-mail {
    width: 100%;
  }
  button {
    width: 100%;
  }
  .cta-title {
    font-size: 24px;
    line-height: 24px;
  }

  .project-img {
    grid-template-columns: repeat(1, 1fr);
  }
  #scroll-to-top {
    right: 14px;
    bottom: -24px;
  }
}