@import url("https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Inter:wght@200;400;700&display=swap");

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

a {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Blur images when they have no alt attribute */
img:not([alt]) {
  filter: blur(10px);
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --black: rgb(20, 20, 20);
  --white: rgba(235, 235, 235, 1);

  --blue: rgb(45, 57, 215);
  --light-blue: rgb(151, 158, 255);
  --dark-blue: rgba(6, 9, 27, 0.75);

  --pink: rgb(255, 109, 255);
  --light-pink: rgb(255, 157, 255);

  --gradient-blue: linear-gradient(
    45deg,
    rgb(187, 194, 255) 5%,
    rgba(235, 235, 235, 1) 45%
  );
  --gradient-blue-secondary: radial-gradient(
    100% 100% at 100% 0%,
    #93bef0 0%,
    var(--blue) 100%
  );
  --gradient-blue-rose: linear-gradient(
    180deg,
    rgb(61, 74, 255),
    rgb(255, 109, 255)
  );
  --gradient-rose-black: linear-gradient(
    45deg,
    rgb(36, 11, 36) 0%,
    rgb(20, 20, 20) 100%
  );
  --gradient-black: linear-gradient(
    0deg,
    rgba(13, 19, 65, 0.95) 35%,
    rgba(20, 20, 20, 0) 100%
  );

  --background: var(--gradient-blue);
  --background-hover: var(--white);
  --background-secondary: var(--blue);

  --background-card: var(--gradient-rose-black);
  --background-card-secondary: var(--gradient-black);
  --background-card-text: var(--dark-blue);

  --background-cadre: var(--gradient-blue-rose);

  --background-button: var(--gradient-blue-secondary);

  --ff-big: "Dela Gothic One", sans-serif;
  --ff-base: "Inter", sans-serif;

  --fs-title: 2rem;
  --fs-home: 4rem;
  --fs-list: 2rem;
  --fs-button: 1.5rem;
  --fs-desc: 1.5rem;
  --fs-content: 1.1rem;

  --fw-title: 700;
  --fw-span: 700;

  --text-base: var(--black);
  --text-base-hover: var(--blue);
  --text-secondary: var(--blue);
  --text-third: var(--pink);
  --text-button: var(--white);
}

body {
  font-family: var(--ff-base);
  color: var(--text-base);
}

/* HEADER */

.header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 10%;
  width: 100%;
  z-index: 30;
  background-color: var(--white);
}

.header__title {
  font-size: var(--fs-title);
  font-family: var(--ff-big);
  text-transform: uppercase;
  font-weight: var(--fw-title);
}

.header__nav {
  display: flex;
  gap: 3rem;
  font-family: var(--ff-base);
  font-size: var(--fs-button);
}

.header__nav-item {
  font-size: var(--fs-button);
  background: transparent;
  border: none;
  padding: 0.7em 1em;
  color: var(--text-base);
  text-transform: uppercase;
  position: relative;
  transition: 0.5s ease;
}

.header__nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5%;
  width: 0;
  background-image: var(--background-button);
  transition: 0.5s ease;
  z-index: -5;
  border-radius: 5px;
}

.header__nav-item:hover::before {
  width: 100%;
}

/* LINKS */

.links {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 5rem;
  padding: 1rem !important ;
  gap: 1rem;
  left: 0;
  top: 40%;
  background-color: var(--white);
  border-radius: 0rem 1rem 1rem 0rem;
  z-index: 50;
  outline: solid 1px var(--light-blue);
  box-shadow: 0px 3px 10px -2px rgb(0, 0, 0, 0.5);
}

.links__img {
  width: 100%;
  aspect-ratio: 1;
  opacity: 0.85;
}

.links__img:hover {
  opacity: 0.5;
}

/* HOME */

.home {
  display: flex;
  justify-content: space-between;
  padding: 10% 15%;
  padding-top: 15%;
  background-image: var(--background);
}

.home__cadre {
  width: 25rem;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;
  border-radius: 100%;
  transition: 200ms;
}

.home__cadre::before {
  content: "";
  position: absolute;
  width: 25rem;
  background-image: var(--background-cadre);
  aspect-ratio: 1;
  border-radius: 100%;
  animation: rotBGimg 3s linear infinite;
  transition: all 0.2s linear;
  box-shadow: -8px 7px 50px -3px var(--light-pink),
    8px -7px 50px -3px var(--light-blue);
}

@keyframes rotBGimg {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.home__cadre:hover:before {
  animation: rotBGimg 1s linear infinite;
}

.home__cadre:hover {
  scale: 1.05;
}

.home__image {
  width: 95%;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
  z-index: 10;
}

.home__text {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 50%;
}

.home__title {
  font-size: var(--fs-title);
  font-family: var(--ff-big);
}

.home__title-name {
  font-size: var(--fs-home);
  color: var(--text-secondary);
}

.home__desc {
  font-size: var(--fs-desc);
}

.home__button {
  font-family: var(--ff-big);
  font-size: var(--fs-button);
  display: inline-block;
  outline: 0;
  border: 0;
  cursor: pointer;
  will-change: box-shadow, transform;
  background-image: var(--background-button);
  box-shadow: 0px 0.01em 0.01em rgb(45 35 66 / 40%),
    0px 0.3em 0.7em -0.01em rgb(45 35 66 / 30%),
    inset 0px -0.01em 0px rgb(58 65 111 / 50%);
  padding: 0.7em 2em;
  border-radius: 0.3em;
  color: var(--text-button);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.home__button:hover {
  box-shadow: 0px 0.1em 0.2em rgb(45 35 66 / 40%),
    0px 0.4em 0.7em -0.1em rgb(45 35 66 / 30%), inset 0px -0.1em 0px var(--blue);
  transform: translateY(-0.1em);
}

.home__button:active {
  box-shadow: inset 0px 0.1em 0.6em var(--blue);
  transform: translateY(0em);
}

/* PROJETS */

.projets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 8rem;
  flex-direction: column;
  background-color: var(--background-secondary);
  height: fit-content;
}

.projets__header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.projets__title {
  font-size: var(--fs-title);
  font-family: var(--ff-big);
  color: var(--text-button);
  font-weight: 400;
}

.projets__desc {
  font-size: var(--fs-content);
  color: var(--text-button);
  text-align: center;
  width: 50%;
}

.projets__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 1rem;
  width: 100%;
}

.projets__list-item {
  height: 28rem;
  border-radius: 0.7rem;
  overflow: hidden;
}

.projets__list-elt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  transition-delay: 200ms;
}

.projets__list-front,
.projets__list-back {
  background-image: var(--background);
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.projets__list-back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.projets__list-back-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-image: var(--background-card);
  font-family: var(--ff-big);
  font-size: var(--fs-list);
  font-weight: 400;
  color: var(--text-button);
  padding: 3rem;
}

.projets__list-title {
  text-align: center;
  font-weight: 400;
}

.projets__list-item:hover .projets__list-elt {
  transform: rotateY(180deg);
  transition-delay: 0s;
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

.projets__list-front {
  transform: rotateY(180deg);
  color: var(--text-button);
  border-radius: 0.7rem;
  margin: 0;
}

.projets__list-front-content {
  background-image: var(--background-card-secondary);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.projets__list-image {
  position: absolute;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.projets__list-text {
  margin: 1rem;
  margin-top: 0;
  padding: 1rem;
  background-color: var(--background-card-text);
  border-radius: 0.5rem;
  font-size: var(--fs-content);
}

.date {
  width: fit-content;
  padding: 0.5rem 1rem;
  position: absolute;
  top: 0;
  left: 0;
  margin: 1.5rem 1rem;
  box-shadow: 0px 3px 10px -2px rgba(6, 9, 27, 0.5);
}

.projets__list-git {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1rem;
  width: 4rem;
  aspect-ratio: 1;
  opacity: 0.7;
  box-shadow: 0px 3px 10px -2px rgba(6, 9, 27, 0.5);
  background-color: rgb(6, 9, 27);
  border-radius: 100%;
}
.projets__list-git:hover {
  opacity: 1;
}

.projets__sae-text {
  color: var(--text-button);
}

.projets__add {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  background-color: var(--background-card-text);
  border-radius: 0.5rem;
  font-size: var(--fs-content);
  color: var(--text-button);
}

.projets__add-title {
  font-size: var(--fs-title);
  font-family: var(--ff-big);
  font-weight: 400;
}

.projets__text {
  font-size: var(--fs-content);
  text-wrap: wrap;
  text-align: center;
  width: 70%;
}

.projets__add-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.me {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 10rem 0;
  font-size: var(--fs-desc);
  background-image: var(--background);
}

.me__title {
  font-size: var(--fs-title);
  font-family: var(--ff-big);
  font-weight: 400;
}

.me__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: fit-content;
  gap: 3rem;
  place-items: center;
  width: 85%;
}

.me__content-desc {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.me__content-desc li {
  display: flex;
  gap: 1rem;
}

.me__content-desc li:before {
  content: "➜";
  color: var(--text-secondary);
}
.me__content-img {
  width: 75%;
  max-width: 20rem;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
  z-index: 10;
}

.me__competences {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.me__competences-list {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.me__competences-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-image: var(--background);
  border-radius: 0.5rem;
  font-size: var(--fs-content);
  border: solid 1px var(--background-secondary);
  border-radius: 16px;
}

.span-content {
  font-weight: var(--fw-span);
  color: var(--text-third);
}

.span-me {
  font-weight: var(--fw-span);
  color: var(--text-secondary);
}

/* CONTACT */

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--background-secondary);
}

.contact__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-button);
  background-color: var(--background-secondary);
}
