@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
html {
  scroll-behavior: smooth;
}
body {
    overflow-x: hidden;

  background-color: #121212;
  border: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #aaaaaa;
  
}
.cursor {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0%;
  margin: -22.5px 0 0 -22.5px;
  background: #7c5fff20;
  border: 0.1px solid #7c5fffbc;
  border-radius: 10px;
  backface-visibility: hidden;
  transform: rotate(45deg);
  z-index: -1;
}

.backToTopButton {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 55px;
  height: 55px;
  z-index: 99;
  border: none;
  outline: none;
  background: rgba(31, 31, 31, 0.57);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.1px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(31, 31, 31, 1);
  cursor: pointer;

  border-radius: 50%;
  font-size: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.backToTopButton img {
  width: 25px;
  height: 25px;
  transform: rotate(180deg);
}
.backToTopButton:hover {
  background-color: #555;
}

@media (max-width: 1080px) {
  .cursor {
    display: none;
  }
}
.container {
  width: 90%;
  max-width: 1050px;

  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 150px;
  position: relative;
  left: 0;
  transform: none;
  box-sizing: border-box;
}

@media only screen and (max-width: 600px) {
  .container {
    width: 95%;
    gap: 100px;
  }
  .header h2 {
    font-size: 18px;
    margin-bottom: 3px;
    text-align: center;
  }
  .header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
  }
    .header-cto {
    margin-top: 50px;
    display: flex;
    justify-content: space-around;
    width: 100%;
  }
  .card-title {
    font-size: 13px;
  }
  .card-body {
    font-size: 13px;
  }
  .text {
    font-size: 13px;
  }

}

.header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header h2 {
  font-size: 25px;
  margin-bottom: -15px;
}
.header-cto {
  display: flex;
  flex-direction: row;
  gap: 50px;
}
h1 {
  font-size: 35px;
}

strong {
  font-weight: 700;
  color: #f6f5f5;
}
.header-cto-button {
  padding: 15px 25px;
  border-radius: 12px;
  border: 1px solid transparent; /* base pour anim border */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(124, 95, 255, 0.1);
}

.know-more {
  transition: border-color 0.3s ease, background-color 0.3s ease;
  background: rgba(124, 95, 255, 0.12); /* légère teinte violette */
}

.know-more:hover {
  background: rgba(124, 95, 255, 0.2); /* légèrement plus foncé au hover */
  transition: border-color 0.3s ease, background-color 0.3s ease;
  border-color: rgba(124, 95, 255, 0.5);
}
.contact-me {
  transition: border-color 0.3s ease, background-color 0.3s ease;

  border-color: rgba(124, 95, 255, 0.5);
}
.contact-me:hover {
  background: rgba(124, 95, 255, 0.12);
}

.about-me-description {
  margin-bottom: 55px;
}

.timeline .timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 2rem;
}

.timeline .timeline-item::before {
  background: #464646;
  content: "";
  height: 110%;
  left: 19px;
  position: absolute;
  top: 20px;
  width: 2px;
  z-index: -1;
}

.timeline .timeline-item .timeline-content {
  flex: 1 1 auto;
  padding-left: 1rem;
}

.timeline .timeline-item .card {
  background: rgba(31, 31, 31, 0.57);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.1px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(31, 31, 31, 1);
  border-radius: 8px;
  padding: 0px 25px 0px 25px;
}

.card-header .header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-success {
  color: #32d296;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.toggle-btn {
  background: none;
  border: none;
  color: #7c5fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
  transition-duration: 0.3s;
  text-decoration: none;
}

.toggle-btn:hover,
.toggle-btn:focus {
  background-color: #7c5fff43;
  outline: none;
}

.toggle-btn .icon {
  font-weight: bold;
  font-size: 1.2rem;
  user-select: none;
}

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 5fr));
  gap: 2rem;
}

.tech-item {
  background: rgba(31, 31, 31, 0.57);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.1px);
  -webkit-backdrop-filter: blur(5px);

  border: 1px solid rgba(31, 31, 31, 1);
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.tech-item:hover {
  background-color: rgba(50, 50, 50, 0.57);
}

.tech-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tech-item h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #fff;
}

.tech-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #bbb;
  line-height: 1.2;
}

/* Projets */
.proejts-list {
  display: flex;
  flex-direction: column;
}
.projets-card {
  background: rgba(31, 31, 31, 0.57);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.1px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(31, 31, 31, 1);
  padding: 0rem;
  padding: 0px 25px 25px 25px;
  transition: background-color 0.3s ease;
  margin-bottom: 25px;

  display: flex;
  flex-direction: column;
}
.projets-card-img {
  width: 100%;
  border-radius: 8px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.input {
  background: none;
  color: #f6f5f5;
  padding: 15px;
  font-size: 20px;
  border-radius: 8px;
  border: 1px solid #f6f5f5;
}
.input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* bordure blanche douce */
  background: rgba(255, 255, 255, 0.05); /* glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}
textarea.input {
  width: 100%;
  resize: none; /* empêche de le redimensionner manuellement */
  min-height: 120px; /* hauteur confortable */
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}
.input-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.input-row .input {
  flex: 1;
  min-width: 200px;
}

form button {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: fit-content;
  align-self: flex-start;
}

form button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

form button:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.footer {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  margin-top: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f6f5f5;
  font-size: 14px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #7c5fff;
}
