@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
  box-sizing: border-box;
}

body,
ul {
  margin: 0;
}

body {
  background-color: #f8f8f8;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  font-family: 'Roboto';
  color: #333;
}

header {
  background-color: #f8f8f8;
  box-shadow: 3px 3px 6px 1px #33333382;
  position: relative;
  position: fixed;
  width: 100%;
  top: 0;
  padding: 10px 0;
  z-index: 1;
}
header img {
  height: 50px;
}
header a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}
header a:hover {
  color: #ff8f00;
}
nav > ul {
  color: #333;
  display: grid;
  align-items: center;
  justify-content: center;
  list-style: none;
  grid-auto-flow: column;
  gap: 5rem;
}
section {
  width: 100%;
  overflow-x: hidden;
  margin-top: 74px;
  min-height: 90vh;
}

.image-home {
  width: 100%;
  height: 50vh;
  background: url(./src/edouard.jpeg) no-repeat;
  background-size: cover;
  background-position: 15% 40%;
}
.separator {
  height: 2rem;
}

.images-slide {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  animation: slide 30s linear;
  animation-iteration-count: infinite;
  position: relative;
  width: 300%;
}

.about-text {
  margin: 0 calc(90px + 4rem) 1rem calc(90px + 4rem);
  text-align: center;
}

.image {
  height: 30vh;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-1 {
  grid-column: span 4;
}
.image-2 {
  grid-column: span 3;
}
.image-3 {
  grid-column: span 5;
}
.image-4 {
  grid-column: span 3;
}
.image-5 {
  grid-column: span 2;
}
.image-6 {
  grid-column: span 3;
}
.image-7 {
  grid-column: span 4;
}

.boule {
  width: 3rem;
  height: 3rem;
  background-image: url(./src/pages/accueil/boule_orange.png);
  background-size: cover;
  position: absolute;
  animation: bubble 2s ease;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  border-radius: 50%;
  box-shadow: 3px 3px 6px 1px #33333382;
  opacity: 0.9;
}


.boule1 {
  top: 60vh;
  left: 5vw;
  width: min(15vw, 9rem);
  height: min(15vw, 9rem);
}

.boule2 {
  top: 65vh;
  left: 50vw;
  width: min(10vw, 6rem);
  height: min(10vw, 6rem);
  animation-delay: 0.5s;
}
.boule3 {
  top: 62vh;
  left: 90vw;
  width: min(7vw, 4rem);
  height: min(7vw, 4rem);
  animation-delay: 0.2s;
}
.boule4 {
  top: 90vh;
  left: 30vw;
  width: min(9vw, 5rem);
  height: min(9vw, 5rem);
  animation-delay: 0.7s;
}
.boule5 {
  top: 110vh;
  left: 75vw;
  width: min(10vw, 6rem);
  height: min(10vw, 6rem);
  animation-delay: 0.7s;
}

.skills {
  display: grid;
  grid-template-areas:
    'xd . . . ai . .'
    '. . ps . . . id';
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  justify-items: center;
  margin: 0 2rem 3rem 2rem;
}
.skill {
  width: 90px;
  position: relative;
  animation: bubble 2s ease;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.image-xd {
  grid-area: xd;
  top: -3rem;
}
.image-ai {
  grid-area: ai;
  animation-delay: 0.5s;
}
.image-ps {
  grid-area: ps;
  animation-delay: 0.7s;
}
.image-id {
  grid-area: id;
  animation-delay: 0.7s;
}

.signature {
  text-align: right;
  margin-right: 5vw;
  margin-top: 2rem;
}

footer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 3rem;
  background-color: rgb(17, 17, 17);
  color: #ff8f00;
  gap: 0.5rem;
}
footer h3 {
  color: #ff8f00;
}
footer a {
  text-decoration: none;
  color: #ff8f00;
  display: flex;
  align-items: center;
}

footer > * {
  margin: 0;
}
footer h3 {
  margin-bottom: 1rem;
}

footer img {
  margin-right: 1rem;
}

.portfolio-container {
  margin: auto;
  width: min(80%, 900px);
}

.portfolio-item {
  margin-bottom: 5rem;
}
.portfolio-item img, .portfolio-item video {
  width: 100%;
  box-shadow: 3px 3px 6px 1px #33333385;

}
.portfolio-item p {
  text-align: center;
  margin: 0.2rem;
}

.two-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.images-gap {
  gap: .5rem
}

@keyframes slide {
  from {
    left: 0%;
  }
  to {
    left: -150%;
  }
}
@keyframes slideMobile {
  from {
    left: 0%;
  }
  to {
    left: -250%;
  }
}

@keyframes bubble {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(2rem);
  }
}

@media (max-width: 600px) {
  section {
    margin-top: 112px;
  }
  nav > ul {
    grid-auto-flow: row;
    justify-items: center;
    gap: 0;
  }

  .images-slide {
    width: 500%;
    animation: slideMobile 30s linear;
  }

  .about-text {
    margin: 0 5vw 1rem 5vw;
  }
  .skills {
    display: grid;
    grid-template-areas:
      'xd' 'ai'
      'ps' 'id';
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .image-xd {
    top: 0;
  }
  .image-xd,
  .image-ps {
    left: -5rem;
  }
  .image-ai,
  .image-id {
    left: 5rem;
  }
  footer {
    padding: 0.5rem;
  }

  .portfolio-container {
    width: 95%;
  }
  .two-img {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1049px) {
  .image-home {
    height: 47vw;
    background-size: 120%;
    background-position: 32% 50%;
  }

  .boule1 {
    top: 40vh;
  }

  .boule2 {
    top: 45vh;
  }
  .boule3 {
    top: 42vh;
    left: 85vw;
  }
  .boule4 {
    top: 70vh;
  }
  .boule5 {
    top: 90vh;
  }
}

