@charset "UTF-8";

/* =========================
   FONTS
========================= */

@font-face {
  font-family: "SangBleuVersailles";
  src: url("../fonts/SangBleuVersailles-Book.ttf") format("truetype");
}

@font-face {
  font-family: "walterTurncoat";
  src: url("../fonts/WalterTurncoat-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DynaPuff";
  src: url("../fonts/DynaPuff-SemiBold.ttf") format("truetype");
}

/* =========================
   BACKGROUND
========================= */

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: linear-gradient(
    45deg,
    rgb(255, 0, 0),
    rgb(255, 166, 0),
    rgb(255, 255, 0),
    rgb(0, 255, 0),
    rgb(0, 0, 255),
    rgb(135, 0, 135)
  );

  background-size: 800% 800%;
  animation: psychedelic 8s ease infinite;
}

@keyframes psychedelic {
  0% {
    background-position: 0% 100%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 100%;
  }
}

@keyframes floaty {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }

  25% {
    transform: translate(-10px, -30px) rotate(-10deg);
  }

  50% {
    transform: translate(30px, 30px) rotate(10deg);
  }

  75% {
    transform: translate(-10px, 30px) rotate(-10deg);
  }

  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@keyframes floatText {
  0% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(10px, 8px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes heartbeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  15% {
    transform: translate(-50%, -50%) scale(1.15);
  }

  30% {
    transform: translate(-50%, -50%) scale(1);
  }

  45% {
    transform: translate(-50%, -50%) scale(1.12);
  }

  60% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes hippieWave {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes heartFloat {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.15);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes heartExpand {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2);
  }

  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(2);
  }
}

/* =========================
   TITRE PRINCIPAL
========================= */

h1 {
  margin: 0;

  font-size: 7em;
  font-family: "SangBleuVersailles", serif;
  color: white;

  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0%,
    rgb(0, 0, 0) 80%,
    rgba(0, 0, 0, 0) 100%
  );

  padding-left: 2%;
  padding-top: 2%;
  padding-bottom: 50%;
}

/* =========================
   MAIN
========================= */

main {
  width: 100%;
  margin: 0 auto;
}

/* =========================
   ZONE SECOND + SHAPES
========================= */

.second-zone {
  position: relative;

  width: 80%;
  margin: 0 auto 200px auto;
}

/* =========================
   CONTAINER DES SHAPES
========================= */

.container {
  position: relative;
  z-index: 10;

  width: 100%;

  pointer-events: none;
}

/* =========================
   BLOCS / SHAPES
   Chaque shape devient sticky individuellement
========================= */

.container div {
  position: sticky;
  top: calc(50vh - 130px);
  z-index: 20;

  width: 480px;
  height: 260px;

  border-radius: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: floaty 4s ease-in-out infinite;
  opacity: 100%;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  will-change: transform;
}

/* =========================
   PLACEMENT DES SHAPES
   Le margin-bottom crée le moment où chaque shape arrive
========================= */

.shape1 {
  top: 0px;
  left: -10%;
  margin-bottom: 120px;
}

.shape2 {
  top: 20px;
  left: 55%;
  margin-bottom: 120px;
}

.shape3 {
  top: 40px;
  left: 25%;
  margin-bottom: 120px;
}

.shape4 {
  top: 60px;
  left: 80%;
  margin-bottom: 120px;
}

.shape5 {
  top: 80px;
  left: 20%;
  margin-bottom: 120px;
}

.shape6 {
  top: 100px;
  left: 40%;
  margin-bottom: 120px;
}

.shape7 {
  top: 120px;
  left: 65%;
  margin-bottom: 120px;
}

.shape8 {
  top: 140px;
  left: 15%;
  margin-bottom: 200px;
}
/* =========================
   DÉCALAGE ANIMATION
========================= */

.container div:nth-child(1) {
  animation-delay: 1s;
}

.container div:nth-child(2) {
  animation-delay: 2.5s;
}

.container div:nth-child(3) {
  animation-delay: 0.8s;
}

.container div:nth-child(4) {
  animation-delay: 0s;
}

.container div:nth-child(5) {
  animation-delay: 3s;
}

.container div:nth-child(6) {
  animation-delay: 1s;
}

.container div:nth-child(7) {
  animation-delay: 0.5s;
}

.container div:nth-child(8) {
  animation-delay: 0.2s;
}

/* =========================
   TEXTE DANS LES SHAPES
========================= */

.container div p {
  margin: 0;
  max-width: 90%;
  font-size: 4em;
  text-align: center;
  font-family: DynaPuff, SemiBold, serif;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word;
  animation: floatText 3s ease-in-out infinite;
}

/* =========================
   COULEURS DES SHAPES
========================= */

.container .shape1,
.container .shape5 {
  background-color: rgb(0, 255, 30);
  border: 3px solid black;
}

.container .shape2,
.container .shape6 {
  background-color: rgb(0, 89, 255);
  border: 3px solid black;
}

.container .shape3,
.container .shape7 {
  background-color: rgb(234, 0, 255);
  border: 3px solid black;
}

.container .shape4,
.container .shape8 {
  background-color: rgb(0, 255, 242);
  border: 3px solid black;
}

/* =========================
  transition / TEXTE après panneaux
========================= */
.transition-black {
  width: 100%;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 15%,
    rgb(0, 0, 0) 65%,
    rgba(0, 0, 0, 0) 100%
  );

  padding-left: 2%;
  padding-top: 35%;
  padding-bottom: 50%;

  box-sizing: border-box;
}

.transition-black h2 {
  margin: 0;

  font-size: 7em;
  font-family: "SangBleuVersailles", serif;
  color: white;
}
/* =========================
   SECOND / TEXTE H3
========================= */

.second {
  position: relative;
  z-index: 1;

  width: 99%;
  margin: 0 auto;

  background-color: rgb(0, 0, 255);
  color: white;
  mix-blend-mode: exclusion;

  border-radius: 30px;

  font-size: 4em;
  font-family: "SangBleuVersailles", serif;

  padding: 2%;
  box-sizing: border-box;
}

.second h3 {
  margin: 0;
}
.second h3 span {
  display: inline-block;
  animation: hippieWave 4s ease-in-out infinite;
}

/* =========================
   SUMMER OF LOVE
========================= */

.principal {
  width: 100%;
  margin: 200px auto 100px auto;
  padding-top: 50%;
  padding-bottom: 50%;

  position: relative;

  isolation: isolate;

  color: white;
  border-radius: 30px;
  text-align: center;

  font-size: 15em;
  font-family: DynaPuff, serif;

  animation: wave 2s ease-in-out infinite;
}

.principal h2 {
  position: relative;
  z-index: 2;

  display: inline-block;
}
.heart-zone {
  position: absolute;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
}
.heart {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 5s linear infinite;
}
.heart1 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 0s;
}

.heart2 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 1s;
}

.heart3 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 2s;
}

.heart4 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 3s;
}

.heart5 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 4s;
}
.heart6 {
  position: absolute;
  top: 50%;
  left: 50%;

  pointer-events: none;
  z-index: 1;

  animation: heartExpand 6s linear infinite;
  animation-delay: 5s;
}

.principal:hover {
  transform: scale(1.2);
}

/* =========================
   RESPONSIVE 1238px
========================= */

@media screen and (max-width: 1238px) {
  h1 {
    font-size: 4em;
  }
  .transition-black h2 {
    font-size: 4em;
    padding-top: 0%;
  }
  .second {
    font-size: 4em;
  }

  .container div {
    width: 430px;
    height: 240px;
  }

  .container div p {
    font-size: 4em;
    color: rgb(0, 0, 0);
  }

  .principal {
    font-size: 6em;
  }

  .principal h2::before {
    width: 500px;
    height: 500px;
  }
  .shape1 {
    top: 0px;
    left: 30%;
  }

  .shape2 {
    top: 20px;
    margin-right: 0%;
  }

  .shape3 {
    top: 40px;
    left: 45%;
  }

  .shape4 {
    top: 60px;
    margin-right: 30%;
  }

  .shape5 {
    top: 80px;
    left: 45%;
  }

  .shape6 {
    top: 100px;
    margin-right: 20%;
  }

  .shape7 {
    top: 120px;
    left: 35%;
  }

  .shape8 {
    top: 140px;
    margin-right: 45%;
  }
}

/* =========================
   RESPONSIVE 950px
========================= */

@media screen and (max-width: 950px) {
  h1 {
    font-size: 3em;
    padding-bottom: 35%;
  }

  .second-zone {
    width: 90%;
  }
  .transition-black {
    padding-bottom: 55%;
    padding-top: 55%;
  }

  .transition-black h2 {
    font-size: 3em;
  }
  .second {
    font-size: 3em;
  }

  .container div {
    width: 380px;
    height: 210px;

    background-color: rgb(255, 183, 0);
  }

  .container div p {
    font-size: 3em;
    color: black;
  }

  .shape1 {
    top: 0px;
    left: 30%;
  }

  .shape2 {
    top: 20px;
    margin-right: 0%;
  }

  .shape3 {
    top: 40px;
    left: 35%;
  }

  .shape4 {
    top: 60px;
    margin-right: 20%;
  }

  .shape5 {
    top: 80px;
    left: 35%;
  }

  .shape6 {
    top: 100px;
    margin-right: 20%;
  }

  .shape7 {
    top: 120px;
    left: 35%;
  }

  .shape8 {
    top: 140px;
    margin-right: 435%;
  }

  .principal {
    font-size: 8em;
    margin: 160px auto 80px auto;
  }

  .principal h2::before {
    width: 430px;
    height: 430px;
  }
}

/* =========================
   RESPONSIVE 600px
========================= */

@media screen and (max-width: 600px) {
  h1 {
    font-size: 2.5em;
    padding-bottom: 65%;
  }
  .transition-black {
    padding-bottom: 95%;
    padding-top: 65%;
  }

  .transition-black h2 {
    font-size: 2.5em;
  }

  .second-zone {
    width: 95%;
  }

  .second {
    font-size: 2.5em;
  }

  .container div {
    width: 230px;
    height: 120px;

    background-color: red;
  }

  .container div p {
    font-size: 2em;
    color: rgb(0, 0, 0);
  }

  .shape1 {
    top: 0px;
    left: 30%;
  }

  .shape2 {
    top: 20px;
    margin-right: 0%;
  }

  .shape3 {
    top: 40px;
    left: 45%;
  }

  .shape4 {
    top: 60px;
    margin-right: 20%;
  }

  .shape5 {
    top: 80px;
    left: 45%;
  }

  .shape6 {
    top: 100px;
    margin-right: 20%;
  }

  .shape7 {
    top: 120px;
    left: 35%;
  }

  .shape8 {
    top: 140px;
    margin-right: 45%;
  }

  .principal {
    font-size: 4em;
    margin: 120px auto 60px auto;
  }

  .principal h2::before {
    width: 280px;
    height: 280px;
  }
}
