/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap");

* {
  font-family: "Fredoka", sans-serif;
  font-weight: 400;
}

/* Scrollbar */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--color1);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color2);
  border-radius: 20px;
  border: 3px solid var(--color1);
}

h1,
h2,
h3 {
  font-weight: 600;
}

:root {
  --color1: rgb(255, 255, 255);
  --color2: rgb(0, 0, 0);
  --color3: rgba(255, 255, 255, 0.377);
  --color4: rgb(224, 255, 174);
  --bordersWeight: 2px;
  --bordersRadius: 10px;
  --bordersColor: var(--color2);

  --bgColor1: rgb(190, 44, 156);
  --bgColor2: rgb(255, 253, 217);
  --bgColor3: rgb(107, 240, 255);
  --gradientDeg: 45deg;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  width: 70%;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(
    var(--gradientDeg),
    var(--bgColor1) 0%,
    var(--bgColor2) 50%,
    var(--bgColor3) 100%
  );
  background-size: 200% 200%;
  /* Déplacer cette ligne après 'background' */
  animation: positionGradient 10s ease infinite;
}

@keyframes positionGradient {
  0% {
    background-position: 0% 50%;
  }

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

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

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  border: var(--bordersWeight) var(--color2) solid;
  position: sticky;
  top: 10px;
  background-color: white;
  margin: 10px 0 10px 0;
  padding: 10px;
  height: min-content;
  z-index: 10;
}

header h1,
ul {
  padding: 0;
  margin: 0;
}

header button {
  font-size: medium;
  font-weight: 600;
}

ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

li {
  margin: 0 10px 0 0;
}

button {
  border: var(--bordersWeight) var(--color2) solid;
  border-radius: 50px;
  margin: 5px 5px;
  padding: 5px 30px;
  background-color: var(--color1);
  transform: translate(1px, -1px);
  box-shadow: -1px 1px 2px 0 black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

button:hover {
  transform: translate(5px, -5px);
  box-shadow: -5px 5px 5px 0 black;
}

/* ACCUEIL */

#showcaseProjects {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  grid-gap: 15px;
  width: 98%;
}

/* PORTFOLIO */

#keywordsSelectionPannel {
  margin: 20px 0 20px 0;
}

.keywordSelected {
  background-color: var(--color2);
  color: var(--color1);
  font-weight: 500;
  box-shadow: none;
  transform: none;
  box-shadow: none;
}

.keywordSelected:hover {
  transform: none;
  box-shadow: none;
}

#portefolioProjects {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  grid-gap: 15px;
  width: 98%;
  margin: auto;
  min-height: 50vh;
  justify-items: center;
}

.project h3,
p {
  margin: 10px;
}

.project li {
  margin: 0 0 10px 10px;
  font-size: small;
}

.project {
  background-color: var(--color3);
  border: var(--bordersWeight) var(--color2) solid;
  border-radius: 5px;
  height: auto;
}

.project:hover {
  background-color: var(--color1);
  z-index: 5;
}

.project img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-top: var(--bordersWeight) var(--color2) solid;
  border-bottom: var(--bordersWeight) var(--color2) solid;
}

/* SPECIAL EFFECTS */

/* TILT */
.tilt {
  display: block;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.1s;
}

.tilt:hover {
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* ABOUT */

.parcours {
  width: 40%;
  margin: 0 auto 0 5%;
}

.interests {
  width: 40%;
  transform: translateY(-50px);
  margin: 0 5% 0 auto;
}

.cv {
  margin: 0 auto 150px auto;
  width: max-content;
}

/* CONTACT */

#contact {
  width: max-content;
  background-color: var(--color3);
  border: var(--bordersWeight) var(--color2) solid;
  border-radius: 5px;
  padding: 10px 15px 10px 10px;
  margin-bottom: 50vh;
}

#contact ul {
  display: flex;
  flex-direction: column;
}

#contact li {
  margin: 0 0 10px 0;
}

#contact h2,
h3 {
  margin: 10px 0 0 0;
}

/* VIEW */

.projectView {
  display: flex;
}

#infoProject {
  width: 40em;
  max-width: 100%;
  padding-bottom: 20px;
  margin-right: 1vw;
}

#infoProject h1,
h2,
h3 {
  margin: 0 0 10px 0;
}

#keywordsProject li {
  font-size: small;
}

#mediaProject {
  width: 100%;;
  padding: 0 0 0 1vw;
  height: 80vh;
  overflow-y: scroll;
  
  border-left: var(--color2) var(--bordersWeight) dashed;
  border-right: var(--color2) var(--bordersWeight) dashed;
}

.media {
  border: var(--color2) var(--bordersWeight) solid;
  border-radius: var(--bordersRadius);
  overflow-wrap: break-word;
  background-color: var(--color1);
  z-index: 1;
  margin-bottom: 20px;
  width: min-content;
}

.mediahead {
  border-bottom: var(--color2) var(--bordersWeight) solid;
  display: flex;
  justify-content: space-between;
  min-height: 20px;
}

.mediahead .material-symbols-rounded {
  margin: 10px;
}

.media h3 {
  margin: auto 10px auto 10px;
}

.media video,
.media img {
  width: auto;
  max-height: 40vh;
  max-width: 85vw;
}

.media a {
  border-bottom: 1px black solid;
}

.media a:hover {
  background: var(--color2);
  color: var(--color1);
}

.fullscreen-container .material-symbols-rounded {
  background-color: var(--color1);
  padding: 3px;
  margin: 5px 5px 5px 0;
  border-radius: var(--bordersRadius2);
  border: var(--bordersWeight) var(--bordersColor) solid;
}

.fullscreen-container .material-symbols-rounded:hover {
  background-color: var(--color2);
  color: var(--color1);
}

@media (max-width: 1650px) {
  body {
    width: 85%;
  }

  #portefolioProjects {
    grid-template-columns: repeat(3, minmax(200px, 2fr));
  }
}

@media (max-width: 1100px) {
  body {
    width: 95%;
  }

  #portefolioProjects {
    grid-template-columns: repeat(2, minmax(200px, 2fr));
  }

  .projectView {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #infoProject {
    width: 100%;
    border-bottom: var(--bordersWeight) var(--bordersColor) solid;
  }

  #mediaProject {
    width: 100%;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content;
  }
}

@media (max-width: 700px) {
  #portefolioProjects {
    grid-template-columns: repeat(1, minmax(200px, 2fr));
  }

  #showcaseProjects {
    display: grid;
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    grid-gap: 15px;
    width: 98%;
  }
}
