/* Variables générales */

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

html {
  scroll-behavior: smooth;
}

:root {
  --menuLinks-color: #ffb453;
  --background-color: #003a42;
  --background-color-light: #01444d;
  --contactButton-color: #69d6de;
  --primary-color: #5ccba6;
  --primary-color2: #269a91;
  --secondary-color1: #ffcbb8;
  --secondary-color2: #c4350b;
  --secondary-color3: #ff8392;

  --ff-primary: 'Montserrat', sans-serif;
  --fw-regular: 400;
  --fw-bold: 700;
  --fw-light: 300;
  --fw-extralight: 200;

  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-label: 0.8rem;
}

@media (min-width: 1400px) {
  :root {
    --fs-h1: 3rem;
    --fs-h2: 2.5rem;
    --fs-h3: 2.2rem;
    --fs-body: 1.5rem;
  }
}

/* General sizes */

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6rem;
}
img {
  display: block;
  max-width: 100%;
}

/* Typography---------------------------------- */
h1,
h2,
h3 {
  line-height: 1.2rem;
  margin: 0;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.5rem;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.5rem;
}

.hero-content {
  color: var(--contactButton-color);
  font-size: 2rem;
  line-height: 2.5rem;
}
.hero-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  padding: 1em 0;
}

.section-portfolio-title {
  text-align: center;
  color: var(--secondary-color3);
  margin: 0;
  padding: 2em 0 1em 0;
}
.section-portfolio-subtitle {
  text-align: center;
  font-size: var(--fs-h3);
  color: var(--background-color-light);
  font-weight: var(--fw-regular);
  padding: 0 0 2em 0;
  line-height: 2rem;
}
.section-about-title {
  text-align: center;
  color: white;
  margin: 0;
  padding: 2em 0 1em 0;
}
.section-about-subtitle {
  text-align: center;
  font-size: var(--fs-h2);
  color: var(--secondary-color2);
  font-weight: var(--fw-regular);
  padding: 0 0 2em 0;
}
.section-clients-title {
  text-align: center;
  color: var(--primary-color2);
  padding: 1em 0;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  position: relative;
  z-index: 99;
  max-width: 65em;
  margin: 0 auto;
  padding: 2rem 2rem;
}

/* End general sizes */

/* Header */

#header {
  width: 100%;
  background: var(--background-color);
  position: fixed;
  z-index: 999;
  box-shadow: 0px 3px 8px rgba(0, 39, 44, 0.4);
}
nav {
  width: 100%;
  position: relative;
  z-index: 999;
}

nav .container {
  display: flex;
  justify-content: space-between;
  height: 6em;
  align-items: center;
}
.logo svg {
  width: 150px;
  align-items: center;
  position: relative;
  z-index: 999;
  cursor: pointer;
}

.current-page {
  border-bottom: 2px solid var(--menuLinks-color);
}
.current-page:hover,
.current-page:focus {
  border-bottom: 2px solid var(--contactButton-color);
}
.navbar-links {
  position: fixed;
  background: radial-gradient(
    101.78% 101.78% at 120.56% 127.58%,
    #2e8a91 0%,
    #003a42 100%
  );
  color: var(--contactButton-color);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
}
.menu {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  margin: 16em 0;

  margin: 0;
  padding: 8em 0 2em;
}

.navbar-links a {
  display: inline-block;
  padding: 1em 1.3em;
  color: var(--menuLinks-color);
  font-weight: bold;
  font-size: 1.56rem;
  line-height: 1;
  transition: 0.3s;
}

.navbar-links a.active {
  color: var(--background-color);
  border: 1px solid var(--contactButton-color);
  background-color: var(--contactButton-color);
  border-radius: 4px;
  /* margin-left: 0.5em; */
  margin: 0 1em;
  font-size: 1.5em;
  padding: 0.8em 2em;
  /* width: 90%; */
  min-width: 328px;
  text-align: center;
}

.navbar-links a.active:hover,
.navbar-links a.active:focus {
  color: var(--contactButton-color);
  background-color: var(--background-color);
  border: 1px solid var(--contactButton-color);
}
.navbar-links a:hover,
.navbar-links a:focus {
  color: var(--contactButton-color);
}

.nav-toggle {
  padding: 0.5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 2.2em;
  z-index: 1000;
}
.nav-open .navbar-links {
  transform: translateX(0);
}

.nav-open .nav-toggle {
  position: fixed;
}
.nav-open .hamburger::before {
  transform: rotate(90deg) translateX(-9px);
}
.nav-open .hamburger {
  width: 2em;
  transform: rotate(0.625turn);
}
.nav-open .hamburger::after {
  opacity: 0;
}
.hamburger {
  display: block;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--menuLinks-color);
  width: 1.5em;
  height: 3px;
  border-radius: 1em;
  transition: transform 250ms ease-in-out;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
}
.hamburger::before {
  width: 2em;
  top: 9px;
}
.hamburger::after {
  width: 2em;
  bottom: 9px;
}

/* End header */

/* Hero section */

#project-hero {
  margin: auto;
  padding: 6em 0 3em 0;
  position: relative;
  overflow: hidden;
}

.lines-hero {
  position: absolute;
  left: -15em;
  top: 7em;
  z-index: -5;
}

.filter {
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary-color3);
  font-size: var(--fs-body);
  border: 1px solid var(--secondary-color3);
  border-radius: 8px;
  margin: 0 auto;
  padding: 0.5em 1em;
  text-align: center;
}

/* End Hero section */

/* Project section */

#section-portfolio-main {
  margin: 0 auto;
  position: relative;
}
.hero-image img {
  min-width: 100%;
  padding: 0;
}

.portfolio-crosses-hero {
  position: relative;
  margin: 3em auto;
  text-align: center;
}
.waves {
  position: absolute;
  right: 0;
  top: 22em;
}
.portfolio-chardon {
  display: none;
}
.part1 {
  padding-top: 16em;
}

.part2 {
  margin: 1em 0 3em;
  padding-top: 16em;
}
.text-title {
  font-weight: var(--fw-bold);
}
.part2__text {
  margin-bottom: 1em;
  color: var(--background-color-light);
}

.droplets {
  text-align: center;
  margin-bottom: 3em;
}
.part3__column-right img {
  display: none;
  margin-bottom: 1em;
  box-shadow: 4px 4px 16px rgba(0, 58, 66, 0.3);
}

.part4 {
  margin-bottom: 4em;
}
.part4 img {
  box-shadow: 4px 4px 16px rgba(0, 58, 66, 0.3);
  margin-bottom: 1em;
}

.tests {
  margin-bottom: 3em;
  padding-bottom: 3em;
  color: var(--primary-color2);
  font-weight: var(--fw-bold);
  text-align: center;
}
.tests a {
  display: inline-block;
  margin: 1em 1em 0 0;
  padding: 0.5em 0.5em;
  color: var(--background-color-light);
  border: 1px solid var(--background-color-light);
  border-radius: 4px;
}
.tests a:hover,
.tests a:focus {
  color: var(--primary-color2);
  border: 1px solid var(--primary-color2);
}

.cactus-ananas {
  display: none;
}
.chardons {
  display: none;
}
.cactus-gigognes {
  position: absolute;
  margin-bottom: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: -1;
}

/* Footer */

.footer-top {
  background: var(--background-color);
  padding: 3em 0;
}

.nav-footer {
  display: inline;
  color: var(--menuLinks-color);
  position: relative;
  height: 6em;
  max-width: 100%;
  margin: 2em auto;
  padding: 0 2rem;
  text-align: center;
}
.menu-footer a {
  color: var(--menuLinks-color);
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
  line-height: 3rem;
}
.menu-footer {
  margin: 2em auto;
}

.menu-footer a:hover {
  color: var(--contactButton-color);
  transition: 250ms ease-in-out;
}

.footer-top .logo {
  display: none;
}
.socials {
  margin: 3em auto;
  padding: 2em 0;
  color: var(--contactButton-color);
}

.footer-bottom {
  background: var(--background-color-light);
  padding: 6em 0;
  text-align: center;
  font-size: 0.8em;
  color: white;
  font-weight: 300;
}
.socials-items {
  display: flex;
  justify-content: space-between;
  color: var(--contactButton-color);
}
.socials-items a {
  color: var(--contactButton-color);
  transition: 300ms ease-in-out;
}
.socials-items a:hover {
  color: var(--secondary-color3);
}

.socials-title {
  color: var(--menuLinks-color);
  margin-bottom: 1em;
  font-size: 1.5rem;
}

/*.menu-footer a {
  color: var(--menuLinks-color);
  text-align: left;
  font-weight: 700;
  line-height: 2em;
}*/

.mentions-rgpd {
  text-decoration: none;
  color: white;
  margin: 3em 0;
}
.footer-copywrites {
  text-align: center;
  margin: 1em auto 3em;
  width: 100%;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--contactButton-color);
}

@media (min-width: 600px) {
  /* Header */

  .menu {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 16em 0;

    margin: 0;
    padding: 8em 0 2em;
  }

  .navbar-links a {
    display: inline-block;
    padding: 1em 1.3em;
    color: var(--menuLinks-color);
    font-weight: bold;
    font-size: 1.56rem;
    line-height: 1;
    transition: 0.3s;
  }

  .navbar-links a.active {
    color: var(--background-color);
    border: 1px solid var(--contactButton-color);
    background-color: var(--contactButton-color);
    border-radius: 4px;
    /* margin-left: 0.5em; */
    margin: 0 1em;
    font-size: 1.5em;
    padding: 0.8em 2em;
    min-width: 139px;
    text-align: center;
  }
  .menu-cta {
    margin: 0 auto;
    text-align: center;
  }
  .menu-cta a.nav-link {
    padding: 0.8em 4em;
  }

  /* Hero */
  #portfolio-hero {
    overflow: hidden;
  }

  .hero-image2 {
    position: absolute;
    left: 3em;
    top: 17em;
    width: 110%;
    z-index: -1;
    max-width: 550px;
  }
  .lines-hero {
    position: absolute;

    left: -9em;
    top: 7em;
    z-index: -5;
  }
  img {
    max-width: 100%;
  }

  /* Project section*/
  #section-portfolio-main {
    margin: auto;
    position: relative;
    overflow: hidden;
    padding-bottom: 4em;
  }
  .portfolio-chardon {
    display: none;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
  .portfolio-crosses-hero {
    position: absolute;
    top: 22em;
    left: 50%;
    transform: translateX(-50%);
  }

  .part1 {
    padding-top: 1em;
  }

  .waves {
    position: absolute;
    right: -25em;
    top: 42em;
  }
  .part2 {
    padding: 1em 0 9em;
    margin: 0 0 3em;
    flex-direction: row-reverse;
  }
  .part2__column-left {
    margin: 0;
    width: 48%;
  }
  .part2__column-right {
    width: 48%;
  }

  .part4 {
    padding-bottom: 1em;
    margin-bottom: 0;
  }
  .tests {
    padding-bottom: 3em;
    text-align: center;
  }

  .cactus-ananas {
    display: block;
    position: absolute;
    bottom: -0.5em;
    left: 1em;
    z-index: -1;
  }
  .chardons {
    display: block;
    position: absolute;
    bottom: -1em;
    right: 2em;
  }

  /* Footer */

  .socials-items {
    margin: 0 auto;
    padding-top: 1em;
    width: 40%;
  }
}

@media (min-width: 1000px) {
  /* header */
  .hamburger {
    display: none;
  }

  .navbar-links {
    position: relative;

    background: transparent;
    color: var(--contactButton-color);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateX(0%);
  }
  .navbar-links ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .menu {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  .menu-cta {
    margin: 0 0 0 0.5em;
  }
  .navbar-links a {
    display: inline-block;
    padding: 0.9em 2em;
    color: var(--menuLinks-color);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    transition: 0.3s;
  }
  .navbar-links a.active {
    color: var(--background-color);
    border: 1px solid var(--contactButton-color);
    background-color: var(--contactButton-color);
    border-radius: 4px;
    /* margin-left: 0.5em; */
    width: 90%;
    font-size: 1em;
    padding: 0.8em 0.9em;
  }

  /* Hero */
  #portfolio-hero {
    overflow: hidden;
  }
  .portfolio-crosses-hero {
    display: block;
    position: absolute;
    left: 15em;
    top: 20em;
  }
  .waves {
    top: 54em;
    right: -12em;
  }

  .lines-hero {
    position: absolute;

    left: -2em;
    top: 7em;
    z-index: -5;
  }
  img {
    max-width: 100%;
  }

  /*Project*/
  #section-portfolio-home {
    margin: auto;
    position: relative;
    padding-bottom: 10em;
  }
  .droplets {
    display: none;
  }

  .part4 {
    margin-bottom: 2em;
    margin-bottom: 0;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .chardons {
    bottom: -16em;
  }

  .tests {
    padding-bottom: 2em;
    text-align: center;
  }

  /* Footer */

  .footer-top {
    background: var(--background-color);
    padding: 4em 0 8em;
  }
  .footer-top .nav-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 6em;
    max-width: 75em;
    margin: 0 auto;
    padding: 0 0 3em;
  }
  .footer-top .logo {
    display: inline;
    margin: 0;
    padding: 0;

    width: 33%;
  }
  .menu-footer {
    margin: 0;
    padding: 0;
    width: 33%;
  }
  .menu-footer ul {
    margin: 0;
    padding: 0;
  }

  .menu-footer a {
    margin: 0;
    padding: 0;
  }
  .socials {
    justify-content: space-between;
    margin: 0;
    padding: 0.8em 0;
    width: 33%;
  }
  .socials-items {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
  }
  .linkedin {
    margin-left: 2em;
  }
  .mail {
    margin-left: 2em;
  }
}
