:root {
  --primary: #000;
  --secondary: #767676;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
strong,
a,
li {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-size: .875rem;
  letter-spacing: -2%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 130%
}

p {
  line-height: 150%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.link--primary {
  padding: .75rem 1rem;
  background-color: #000;
  color: #FFF;
  border-radius: 999px;
  transition: background-color .15s ease-in-out;
}

.link--primary:hover {
  background-color: #131313;
}

.link--secondary {
  padding: .75rem 1rem;
  background-color: #F5F5F5;
  border-radius: 999px;
  transition: background-color .15s ease-in-out;
}

.link--secondary:hover {
  background-color: #e8e8e8;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8rem;
  padding: 4rem 8rem;
}

#projects {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
}

.container>hr {
  width: 100%;
  border: 1px solid #EAEAEA;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

footer p {
  color: var(--secondary);
  font-size: .75rem;
}

header>div,
header>nav>ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

header>nav>ul>li {
  list-style-type: none;
}

header>nav>ul>li>a {
  border-bottom: 0;
  color: rgba(0, 0, 0, .4);
  transition: color ease-in-out .25s;
}

header>nav>ul>li>a.active,
header>nav>ul>li>a:hover {
  color: rgba(0, 0, 0, 1)
}

#hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#hero p {
  line-height: 150%;
  max-width: 500px;
  /* color: var(--secondary); */
  /* font-size: 1.125rem; */

  & span {
    font-weight: 600;
    /* font-size: 1.125rem; */
    /* color: var(--primary); */
  }
}

div.project {
  position: relative;
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  width: 100%;
  gap: 1rem;
}

div.project>div.project__header {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  grid-column: 1 / 3;
  grid-row: 1;
}

div.project>div.project__header>div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

div.project>div.project__header>div>span {
  color: var(--secondary);
  font-size: .75rem;
}

div.project>div.project__header>div.project__name,
div.project>div.project__header>div.project__domain {
  width: 280px;
}

div.project>div.project__header>div.project__services {
  width: 100%;
}

div.project>div.project__header>div.project__link {
  position: absolute;
  top: 0;
  right: 0;
}

div.project>div.project__content,
div.project>div.project__content--full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1 / 4;
  grid-row: 2;
  gap: 1rem;
}

div.project>div.project__content--full {
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1 / 4;
}

div.project>div.project__content--full>a:nth-child(1) {
  grid-column: 1 / 3;
}

div.project>div.project__content>a>div.project__preview,
div.project>div.project__content--full>a>div.project__preview {
  position: relative;
  background-color: #F5F5F5;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
}

div.project>div.project__content>a>div.project__preview .preview__overlay>div,
div.project>div.project__content--full>a>div.project__preview .preview__overlay>div {
  display: none;
}

div.project>div.project__content>a>div.project__preview:hover .preview__overlay>div,
div.project>div.project__content--full>a>div.project__preview:hover .preview__overlay>div {
  display: block;
}

div.project>div.project__content>a>div.project__preview .preview__overlay,
div.project>div.project__content--full>a>div.project__preview .preview__overlay {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, .4);
  transition: opacity ease .25s;
}

div.project>div.project__content>a>div.project__preview:hover .preview__overlay,
div.project>div.project__content--full>a>div.project__preview:hover .preview__overlay {
  opacity: 1;
}


/* Tablettes */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
  .container {
    padding: 4rem;
  }

  div.project>div.project__content,
  div.project>div.project__content--full {
    grid-template-columns: repeat(2, 1fr);
  }

  div.project>div.project__content>a:nth-child(3),
  div.project>div.project__content--full>a:nth-child(3) {
    display: none;
  }

  div.project>div.project__content--full>a:nth-child(1) {
    grid-column: 1 / 2;
  }
}

/* Smartphones */
@media screen and (max-width: 1024px) {
  .container {
    padding: 2rem;
  }

  header {
    flex-direction: column;
    gap: 8rem;
  }

  div.project {
    grid-template-columns: repeat(1, 1fr);
  }

  div.project>div.project__content,
  div.project>div.project__content--full {
    grid-template-columns: repeat(1, 1fr);
  }

  div.project>div.project__content>a:nth-child(3),
  div.project>div.project__content--full>a:nth-child(3) {
    display: none;
  }

  div.project>div.project__content--full>a:nth-child(1) {
    grid-column: 1 / 2;
  }

  div.project>div.project__header>div.project__services,
  div.project>div.project__header>div.project__domain {
    display: none;
  }

  div.project>div.project__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Page projet */

#hero-projet {
  gap: 0;
  height: 700px;
  background-color: #F5F5F5;
  position: sticky;
  z-index: 1;
  top: 0;
}

.container.parallax {
  background-color: #FFF;
  position: relative;
  z-index: 2;
}

#hero-projet .hero {
  display: flex;
  flex-direction: row;
  gap: 0;
  height: 100%;
  width: 100%;
}

#hero-projet .hero>div {
  width: 50%;
}

#hero-projet .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

#hero-projet .hero .hero__content .hero__headings {
  width: 500px;
}

#hero-projet .hero .hero__content .hero__headings,
#hero-projet .hero .hero__content .hero__team,
#hero-projet .hero .hero__content .hero__tools {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

#hero-projet .hero .hero__content .hero__team .list,
#hero-projet .hero .hero__content .hero__tools .list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#hero-projet .hero .hero__content .hero__headings h2 {
  font-size: 1.5rem;
}

#hero-projet .hero .hero__content .hero__headings p {
  font-size: 1.5rem;
  color: var(--secondary);
}


#hero-projet .hero .hero__content:has(.list) span {
  color: var(--secondary);
}

#hero-projet .hero .hero__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#hero-projet .hero .hero__showcase .img {
  height: 360px;
  width: 640px;
  background-color: #D9D9D9;
  border-radius: 4px;
}

/* Layout showcase three cols */

.showcase__three {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.showcase__three>.row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.showcase__three>.row>p {
  max-width: 550px;
}

.showcase__three>.row>.showcase__preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  background-color: #F5F5F5;
  padding: 2rem;
  border-radius: 4px;
}

.showcase__three>.row>.showcase__preview .img {
  background-color: #D9D9D9;
  height: 320px;
  width: 320px;
}

.showcase__three>.row>.showcase__preview span {
  color: var(--secondary);
}

/* Layout showcase two cols text/img*/

.showcase__one_two {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  padding: 0 8rem;
}

.showcase__one_two.inverse {
  flex-direction: row-reverse;
}

.showcase__one_two>.col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

.showcase__one_two>.col>h3 {
  font-weight: 600;
}

.showcase__one_two>.col>h3,
.showcase__one_two>.col>p {
  width: 440px;
}

.showcase__one_two>.col>.showcase__preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  background-color: #F5F5F5;
  padding: 2rem;
  border-radius: 4px;
}

.showcase__one_two>.col>.showcase__preview .img {
  background-color: #D9D9D9;
  height: 320px;
  width: 320px;
}

/* Layout showcase two cols text/img*/
.showcase__two {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
}

.showcase__two>.showcase__preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  background-color: #F5F5F5;
  padding: 4rem 2rem;
  border-radius: 4px;
}


.showcase__two>.showcase__preview>span {
  color: var(--secondary);
}

.showcase__two>.showcase__preview>.img {
  background-color: #D9D9D9;
  height: 320px;
  width: 320px;
}

/* Showcase Scroll : plusieurs rows d'images avec text fixé au scroll */
.showcase__scroll {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
}

.showcase__scroll > .col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.showcase__scroll > .col.images {
  gap: 2rem;
}

.showcase__scroll > .col.content {
  top: 0;
  position: sticky;
  gap: .5rem;
  padding: 6rem 8rem 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.showcase__scroll > .col.content > * {
  width: 440px;
}

.showcase__scroll > .col.content>h3 {
  font-weight: 600;
}

.showcase__scroll .showcase__preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  width: 100%;
  background-color: #F5F5F5;
  border-radius: 4px;
  padding: 2rem;

}

.showcase__scroll .showcase__preview>span {
  color: var(--secondary);
}

.showcase__scroll .showcase__preview>.img {
  background-color: #D9D9D9;
  height: 320px;
  width: 320px;
}