* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
:root {
  --bg-color: #080808;
  --seconde-bg-color: #131313;
  --text-color: white;
  --main-color: #fb7ce6;
  --paillette-color: #6ea2fc;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 12% 4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}
.logo:hover {
  transform: scale(1.1);
}
.logo span {
  text-shadow: 0 0 25px var(--main-color);
}
.mode {
  display: flex;
  gap: 2rem;
  align-items: center;
}
svg {
  cursor: pointer;
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 800;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}
section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}
.mobile-picture{
  img{display: none;}
}
.picture-mobile {
  display: none;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}
span {
  color: var(--main-color);
}
.logo span {
  color: var(--main-color);
}
.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}
.home-content h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-img {
  border-radius: 50%;
}
.home-img img {
  position: relative;
  top: 3rem;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color),
    0 0 100px var(--main-color);
}
.home-content p {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}
.container-icons {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.social-icons {
  display: grid;
  place-items: center;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;

  & > a {
    font: inherit;
    width: 64px;
    aspect-ratio: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--main-color);
    background: none;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    transform: translate(var(--tx, 0), var(--ty, 0));
    cursor: pointer;
    transition: all 0.2s ease-out;
    &:hover,
    &:focus-visible {
      color: var(--text-color);
      transform: scale(1.3) translateY(-5px);
      box-shadow: 0 0 25px var(--main-color);
      background-color: var(--main-color);
    }
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}
.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}
.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.text-animation span {
  position: relative;
}
.text-animation span::before {
  content: "Web Développeur";
  color: var(--main-color);
  animation: words 20s infinite;
}
.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}
@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}
@keyframes words {
  0%,
  100% {
    content: "Web Développeur";
  }
}
@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

.buttonIcon {
  width: 50%;
  fill: var(--_fill, #fff);
  transition: fill 0.3s;
}
.heading {
  font-size: 8rem;
  text-align: center;
  margin: 2rem 0;
}
.education {
  padding: 20px;
  background: var(--seconde-bg-color);
}

.education h2 {
  margin-bottom: 5rem;
}
.timeline-items {
  max-width: 1500px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}
.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}
.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
  margin: 6px 0 15px;
}
.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3 {
  font-size: 20px;
  color: var(--text-color);
  margin: 0 0 10px;
  font-weight: 500;
}
.timeline-content p {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

.projets {
  background: var(--bg-color);
  padding: 0;
  padding-bottom: 10rem;
  p {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}
.projets-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.projets .heading {
  margin-bottom: 5rem;
}
.projet-container {
  width: 28%;
  height: 500px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.121); /* Bordure semi-transparente */
  padding: 0rem 1rem;
  background-color: rgba(255, 255, 255, 0.1); /* Fond transparent */
  backdrop-filter: blur(10px); /* Effet de flou */
  box-shadow: 0 4px 6px rgba(255, 120, 228, 0.356),
    0 1px 3px rgba(0, 0, 0, 0.08); /* Ombre pour accentuer l'effet */
  border-radius: 5px; /* Optionnel : pour adoucir les coins */
}
.projet-item {
  border-radius: 5px;
}
.projet-item img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  background-repeat: no-repeat;
  background-size: max(100%, 100%);
  background-size: cover;
  background-position: center;
}
.projets-box h2 {
  display: flex;
  padding: 15px;
  font-size: 3rem;
  justify-content: center;
}
.projet-item:hover {
  box-shadow: 0 0 50px var(--main-color);
  transform: translateY(-10px) scale(1.03);
  transition: 0.3s ease-in-out;
}
.gif-container {
  position: relative;
  display: inline-block;
}

.gif {
  width: 100%; /* Ajuste selon tes besoins */
  display: block;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    249,
    203,
    235,
    0.5
  ); /* Légère opacité pour un effet de "voile" */
  backdrop-filter: blur(10px); /* Applique un flou */
  transition: backdrop-filter 0.3s, opacity 0.3s;
}

.gif-container:hover .blur-overlay {
  backdrop-filter: blur(0px); /* Enlève le flou */
  opacity: 0; /* Rend la couche invisible */
}

.contact {
  background-color: var(--seconde-bg-color);
  padding: 100px 20px 0px 20px;
  text-align: center;
}
.contact h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin: 15px 0;
  font-size: 1.5rem;
}

.contact-info i {
  margin-right: 10px;
  font-size: 1.8rem;
}
.contact-info a {
  color: var(--text-color);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--main-color);
  text-decoration: underline;
}
/* Visuel et animation */
.contact-visual h3 {
  font-size: 1.8rem;
}

.contact-visual p {
  font-size: 1.5rem;

  margin: 10px 0 30px;
}

/* Cercles animés */
.animated-circles {
  display: flex;
  justify-content: center;
}

.circle {
  width: 60px;
  height: 60px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--main-color);
  animation: bounce 1.5s infinite;
}

.circle:nth-child(2) {
  animation-delay: 0.3s;
}

.circle:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* avion papier */

.paper-plane-animation {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paper-plane {
  bottom: 0;
  animation: fly 5s infinite ease-in-out;
}

@keyframes fly {
  0% {
    transform: translateX(-200px) translateY(0) rotate(0deg); /* Départ */
  }
  25% {
    transform: translateX(0) translateY(-30px) rotate(20deg); /* Montée */
  }
  50% {
    transform: translateX(50%) translateY(-50px) rotate(20deg); /* Point culminant */
  }
  75% {
    transform: translateX(75%) translateY(-30px) rotate(30deg); /* Descente */
  }
  100% {
    transform: translateX(100%) translateY(0) rotate(40deg); /* Arrivée */
  }
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: var(--bg-color);
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}
.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}
.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}
.footer ul li {
  display: inline-block;
  padding: 0 15px;
}
.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--text-color);
}

/* Style pour les paillettes */
canvas.overlay-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

@media (min-width: 1286px) {
  html {
    font-size: 70%;
  }
  .home-content {
    h1 {
      font-size: 5rem;
    }
  }
  .home-img img {
    width: 500px;
    height: auto;
  }
  #education .heading {
    font-size: 4rem;
  }
  #education {
    h3 {
      font-size: 2rem;
    }
  }

  #education .timeline-content {
    h4 {
      font-size: 1.8rem;
    }
    p {
      font-size: 1.5rem;
    }
  }

  #projets .heading {
    font-size: 4rem;
  }
  .projets-box h2 {
    font-size: 2.5rem;
  }
  .projet-container {
    height: 600px;
  }
  .projet-container {
    height: 400px;
  }
  #contact {
    h2 {
      font-size: 5rem;
    }
    ul,
    li {
      font-size: 2rem;
    }
    h3 {
      font-size: 3rem;
      padding-bottom: 20px;
    }
    p {
      font-size: 2rem;
    }
  }
}
@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .projets-box h2 {
    font-size: 2rem;
  }
  .projet-container {
    height: 400px;
  }

  .home-content {
    h1 {
      font-size: 3rem;
    }
  }
  .home-img img {
    width: 300px;
    height: auto;
  }

  #education {
    h2 {
      font-size: 3rem;
    }
    h4 {
      font-size: 1.8rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  .projets {
    h2 {
      font-size: 3rem;
    }
    min-height: 0;
  }

  .projets-box {
    h2 {
      font-size: 2.5rem;
    }
  }
  #contact {
    h2 {
      font-size: 3rem;
    }
  }
}
@media (max-width: 991px) {
  header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .timeline-items::before {
    left: 7px;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }
  .timeline-dot {
    left: 0;
  }
  .home-content {
    h3 {
      font-size: 2.5rem;
    }
    h1 {
      font-size: 2.5rem;
      margin-top: 3rem;
    }
    P {
      font-size: 1.5rem;
    }
  }
  .home-img img {
    width: 250px;
    height: auto;
    margin-right: 15px;
    margin-bottom: 15px;
  }

  #education {
    h2 {
      font-size: 3rem;
    }
    h3,
    h4 {
      font-size: 1.5rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  .projets {
    h2 {
      font-size: 3rem;
    }
    min-height: 0;
  }

  .projets-box {
    h2 {
      font-size: 2.5rem;
    }
  }
  #contact {
    h2 {
      font-size: 3rem;
    }
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 895px) {
  #menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: var(--seconde-bg-color);
    backdrop-filter: blur(20px);
    border-top-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2 px solid var(--main-color);
    display: none;
  }
  .active {
    display: block;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .home-content {
    h3 {
      font-size: 2.5rem;
    }
    h1 {
      font-size: 2.5rem;
      margin-top: 3rem;
    }
    P {
      font-size: 1.5rem;
    }
  }
  .home-img img {
    width: 250px;
    height: auto;
    margin-right: 15px;
    margin-bottom: 15px;
  }

  #education {
    padding: 10px;
    h2 {
      font-size: 2.5rem;
    }
    h3,
    h4 {
      font-size: 1.5rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  .projets {
    padding-bottom: 15px;

    h2 {
      font-size: 2.5rem;
    }
    min-height: 0;
  }

  .projets-box {
    gap: 10px;
    h2 {
      font-size: 2rem;
    }
  }
  #contact {
    h2 {
      font-size: 2.5rem;
    }
  }
}
@media (max-width: 770px) {
  .projet-container {
    height: 300px;
  }
  .projets-box h2 {
    font-size: 1.6rem;
  }
  .navbar a {
    font-size: 1.5rem;
  }
  .home-img img {
    width: 300px;
    height: auto;
  }
  .home-content {
    h1 {
      font-size: 2.5rem;
    }
    p {
      font-size: 1.5rem;
    }
  }
  #education {
    padding: 10px;
    h2 {
      font-size: 2.5rem;
    }
    h3,
    h4 {
      font-size: 1.5rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  .projets {
    padding-bottom: 15px;

    h2 {
      font-size: 2.5rem;
    }
    min-height: 0;
  }

  .projets-box {
    gap: 10px;
    h2 {
      font-size: 1.5rem;
    }
  }
  #contact {
    h2 {
      font-size: 2.5rem;
    }
  }
}
@media (max-width: 640px) {
  .projet-container {
    height: 200px;
  }
  .projets-box h2 {
    font-size: 1rem;
  }
  body {
    padding: 5px;
  }
  svg {
    width: 40px;
  }
  .navbar a {
    font-size: 1.5rem;
  }
  .home-img img {
    width: 300px;
    height: auto;
  }
  .home-content {
    margin: 0;

    h1 {
      font-size: 2rem;
    }
    p {
      font-size: 1.2rem;
    }
    .social-icons a {
      width: 30px;
      height: 30px;
    }
    .btn-group a {
      width: 95px;
      font-size: 1rem;
    }
  }

  #education {
    padding: 10px;
    h2 {
      font-size: 2.2rem;
    }
    h3,
    h4 {
      font-size: 1.5rem;
    }

    p {
      font-size: 1.5rem;
    }
  }
  .projets {
    padding-bottom: 15px;

    h2 {
      font-size: 2.2rem;
    }
    min-height: 0;
  }

  .projets-box {
    gap: 10px;
    h2 {
      font-size: 1.5rem;
    }
  }

  p,
  a,
  li {
    font-size: 1rem;
  }
  .logo {
    font-size: 2rem;
  }
  #contact {
    h2 {
      font-size: 2.2rem;
    }
  }
}
@media (max-width: 430px) {

section{
  min-height: auto;
}
.mobile-picture {
  display: flex;
  justify-content: center;
  padding: 5px;
 
  .picture-mobile {
    display: flex;
    width: 80px;
    border-radius: 50%;
  }
}
  .header {
    padding: 5px;
    position: relative;
  }


  .home {
    gap: 0;
    display: block;
    padding: 0 0 10px 0;

    .home-content{
      justify-content: center;
      align-items: center;
    }
    p {
      font-size: 8px;
      text-align: center;
    }
    h3 {
      font-size: 1rem;
    }
    .text-animation{
      justify-content: center;
      align-items: center;
      display: flex;
      gap: 2px;
    }
    .home-img {
      display: none;
      img {
        display: none;
      }
    }
   

    h1 {
      font-size: 1rem;
    }
    .container-icons {
      padding: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      i,
      a {
        font-size: 1rem;
        width: 20px;
        height: auto;
        display: flex;
        justify-content: center;
      }
      svg {
        width: 10px;
      }
    }
    .social-icons {
      width: 40px;
    }
    .btn-group {
      gap: 1rem;
      padding: 10px 10px 30px 10px;
      a {
        font-size: 0.9rem;
        width: 50px;
      }
      .btn {
        padding: 2px;
        
        justify-content: center;
        align-items: center;
        display: flex;

      }
    }
  }



  svg {
    width: 30px;
  }

  
  #education {
    padding: 10px 0;
   
    .timeline-item {
      margin: 0;
    }

    h2 {
      font-size: 1.5rem;
      margin: 15px;
    }
    .timeline-dot {
      width: 10px;
      height: 10px;
    }
    .timeline-date {
      h3 {
        font-size: 0.9rem;
      }
    }
    .timeline-content {
      padding: 10px;
      box-shadow: none;
      border: 2px solid var(--main-color);
      border-radius: 0%;
      h4 {
        font-size: 1rem;
        font-weight: 100;
        padding-bottom: 2px;
      }
      p {
        font-size: 0.9rem;
        line-height: normal;
      }
    }
  }



  .projets {
    .heading {
      margin: 15px;
      font-size: 1.5rem;
    }
    img{
      width: 210px;
    }
    h2 {
      font-size: 1rem;
      margin: 10px;
      padding: 0;
    }
    p {
      font-size: 0.9rem;
    }
    .blur-overlay {
      display: none;
    }
    .projet-container {
      width: 90%;
      margin: 8px;
    }
  }



  
  #contact {
    .contact-container {
      gap: 2px;
    }
    padding: 10px;
    h2 {
      font-size: 1rem;
      margin: 2px;
    }
    li {
      font-size: 1rem;
    }
    a {
      font-size: 1rem;
    }
    .contact-visual {
      h3 {
        font-size: 1rem;
      }
      p {
        font-size: 0.9rem;
      }
      .paper-plane-animation {
        display: none;
      }
    }
  }

  .footer {
    padding: 10px;

    .copyright {
      font-size: 0.8rem;
    }
  }
}
