/* @import url("http://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap"); */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  color: white;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: rgb(239, 140, 140);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  background: linear-gradient(to top, #000, rgb(239, 140, 140));

}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 62.5%;

}


#hidden {
  display: none;
  text-align: center;
  font-size: 2em;
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  transition: top 1s;
}

#hidden .visible {
  opacity: 1;
  top: 70px;
}

/* .hidden {
    display: none;
}

.visible {
    display: block;
} */

/*          BUTTON DECOUVRIR            */

.btnMoveUp {
  --border-color: linear-gradient(-45deg, #000, rgb(239, 140, 140), #000);
  --border-width: .125em;
  --curve-size: .5em;
  --blur: 30px;
  --bg: #ffffff;
  --color: #080312;
  height: 75px;
  color: var(--color);
  /* use position: relative; so that BG is only for .btnMoveUp */
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-content: center;
  padding: .5em 1.5em;
  font-size: 17px;
  border: 0;
  text-transform: uppercase;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, .6);
  clip-path: polygon(
      /* Top-left */
      0% var(--curve-size),

      var(--curve-size) 0,
      /* top-right */
      100% 0,
      100% calc(100% - var(--curve-size)),

      /* bottom-right 1 */
      calc(100% - var(--curve-size)) 100%,
      /* bottom-right 2 */
      0 100%);
  transition: color 250ms;
}

.btnMoveUp h3 {
  color: #444;
}

.btnMoveUp:hover h3 {
  color: #fff;
}

.btnMoveUp::after,
.btnMoveUp::before {
  content: '';
  position: absolute;
  inset: 0;
}

.btnMoveUp::before {
  background: var(--border-color);
  background-size: 300% 300%;
  animation: move-bg7234 5s ease infinite;
  z-index: -2;
}

@keyframes move-bg7234 {
  0% {
    background-position: 31% 0%
  }

  50% {
    background-position: 70% 100%
  }

  100% {
    background-position: 31% 0%
  }
}

.btnMoveUp::after {
  background: var(--bg);
  z-index: -1;
  clip-path: polygon(
      /* Top-left */
      var(--border-width) calc(var(--curve-size) + var(--border-width) * .5),

      calc(var(--curve-size) + var(--border-width) * .5) var(--border-width),

      /* top-right */
      calc(100% - var(--border-width)) var(--border-width),

      calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * .5)),

      /* bottom-right 1 */
      calc(100% - calc(var(--curve-size) + var(--border-width) * .5)) calc(100% - var(--border-width)),
      /* bottom-right 2 */
      var(--border-width) calc(100% - var(--border-width)));
  transition: clip-path 500ms;
}

.btnMoveUp:where(:hover, :focus)::after {
  clip-path: polygon(
      /* Top-left */
      calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),

      calc(100% - var(--border-width)) var(--border-width),

      /* top-right */
      calc(100% - var(--border-width)) var(--border-width),

      calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * .5)),

      /* bottom-right 1 */
      calc(100% - calc(var(--curve-size) + var(--border-width) * .5)) calc(100% - var(--border-width)),

      /* bottom-right 2 */
      calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)) calc(100% - var(--border-width)));
  transition: 1000ms;
}

.btnMoveUp:where(:hover, :focus) {
  color: #fff;
  cursor: pointer;
}

.sectionAcc {
  width: 1000px;
  margin: auto;
}

.divAccueil {
  position: fixed;
  top: 0;
  height: 100vh;
  /* background: linear-gradient(217deg, #1A0D19, #21183B 70.71%),
        linear-gradient(127deg, #21183B, #190F31 70.71%),
        linear-gradient(336deg, #0A0D1B, #0C0322 70.71%); */

  display: flex;
  align-items: center;
  animation: colorChange 15s infinite ease-in-out;
  background-size: 300% 300%;
  justify-content: center;
  z-index: 6;
}


@keyframes moveUpAnimation {
  0% {
    top: 0;
  }

  100% {
    top: -100%;
  }
}

@keyframes moveUpAnimation110 {
  0% {
    top: 0;
  }

  100% {
    top: -110%;
  }
}







@keyframes colorChange {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.h1 {
  color: white;
  font-size: 4em;
  padding-bottom: 50px;
}

.accueil {
  text-align: center;
  margin-bottom: 250px;
}


/*          Pour l'affichage en quinconce       */

/* @import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap'); */


.h1 {
  text-align: center;
  font-size: 20vmin;
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  padding-top: 25px;
}

.h2 {
  text-align: center;
  font-size: 9vmin;
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  margin: -75px 0 60px 0;
  color: white;
}

.overlap {
  --overlap: .15ch;
  --shadow-offset: .1ch;
  --shadow-blur: .2ch;
  --shadow-color: black;
  letter-spacing: calc(var(--overlap) * -1);
  isolation: isolate;
}

.overlap-front {
  --mult: 1;
}

.overlap-back {
  --mult: -1;
}


.overlap>span {
  position: relative;
  z-index: calc(var(--index, 1) * var(--mult, 1));
}

.overlap-front>span:not(:first-of-type),
.overlap-back>span:not(:last-of-type) {
  text-shadow:
    calc(var(--mult, 1) * var(--shadow-offset, 0) * -1) 0 var(--shadow-blur, 0) var(--shadow-color, black);
}





/* 
.h1>span {
  background: linear-gradient(45deg, #ff7f00, #ff00ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
} */


/*    Design site     */

.site {
  font-size: 62.5%;
  position: relative;
  margin-top: -100vh;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.header .sticky {
  border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
  font-size: 4.5em;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: .3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}


#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;

}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.textColore {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}



.home-img img {
  width: 30vw;
  margin-left: 50px;
  animation: floatImage 4s ease-in-out infinite;
  border-radius: 25%;
  box-shadow: 0px 10px 20px rgb(239, 140, 140);
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.4rem);
  }

  100% {
    transform: translateY(0);
  }
}

.home-content p {
  font-size: 1.6rem;
}

.social-media {
  display: flex;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transform: 0.5s ease;
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: .1rem;
  font-weight: 600;
  transition: .5s ease;
}

.btn:hover {
  box-shadow: none;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about-img img {
  width: 30vw;
  border-radius: 25%;
  margin-right: 75px;

}


.heading {
  text-align: center;
  font-size: 4.5rem;
  color: white;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-container,
.services-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: .2rem solid var(--bg-color);
  transition: .5s ease;
}


.services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services-box i {
  font-size: 2.6rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

.portfolio {
  background: var(--bg-color);
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-container .portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;
}

.portfolio-box img {
  width: 100%;
  height:100%;
  transition: 0.5s ease;
}


.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 50px 4rem 0 4rem;

  transform: translateY(100%);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);

}

.portfolio-layer h4 {
  font-size: 3rem;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--text-color);
  border-radius: 50%;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--second-bg-color);
}

.contact {
  background: var(--second-bg-color);

}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: .8rem;
  margin: .7rem 0;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}


.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--bg-color);
  color: white;
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem;
  background: var(--main-color);
  border-radius: .8rem;
  transition: .5s ease;
}

.footer-iconTop a {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}




@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}


@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .footer {
    padding: 2rem 3%;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }
  .home-img {
    display: none;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(0, 0, 0, .2);
    box-shadow: 0.5rem 1rem rgba(0, 0, 0, .2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

.home-content {
    flex-direction: column;
    background: var(--bg-color);
    padding-left: 25px;
    width: 100%;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about img {
    width: 70vw;
    margin-top: 4rem;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 617px) {

  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {

  html {
    font-size: 50%;
  }

  .contactform .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {

  .home-img img {
    width: 90vw;
  }

  .about-img img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

canvas {
  width: 100%;
  height: 100%;
}

.gravityButton {
  display: grid;
  place-items: center;
  width: 192px;
  aspect-ratio: 1;
  border-radius: 50%;

  &>a {
    font: inherit;
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    background: none;
    border-radius: 50%;
    border: 2px solid rgb(239, 140, 140);
    transform: translate(var(--tx, 0), var(--ty, 0));
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease-out;

    &:hover,
    &:focus-visible {
      --_fill: var(--color, rgb(239, 140, 140));
      opacity: 1;
      box-shadow: 0 0 1rem var(--main-color);
      background: var(--main-color);

    }

    &:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
      opacity: 1;
    }
  }
}

.buttonIcon {
  width: 50%;
  fill: var(--_fill, #fff);
  transition: fill 0.3s;
}


.mailSent {
  font-size: 3.5rem;
  color: rgb(0, 215, 0);
  padding-top: 20px;
  display: none;
}

