/*Bordure main-character*/
.canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #000000d2;
}

#flame-border {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  opacity: 0.8;
  filter: blur(4.5px) brightness(1.3);
  mix-blend-mode: screen; /* fusion douce avec le fond */
  pointer-events: none;
  z-index: 1;
}
/* TEXTE ANIMER */

.typing-container {
  font-family: monospace;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  color: #45f3ff;
  position: relative;
  bottom: 90px;
}

.typed-text::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 5px;
  color: #ff3c7b;
  border-bottom: #45f3ff 2px solid;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Barre de navigation */

.logo-tx1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4fc3f7;
}
.logo-tx2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff3c7b;
}
.logo a {
  text-decoration: none;
  color: #4fc3f7;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4fc3f7;
}

.nav-links .btn {
  background-color: #4fc3f7;
  padding: 6px 12px;
  border-radius: 4px;
  color: black;
  font-weight: bold;
}

.nav-links .btn:hover {
  background-color: #0288d1;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 855px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #111;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
.main-nav-bar {
  background-color: #292929;
  color: white;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.main-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav-logo a {
  text-decoration: none;
  color: #4fc3f7;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  gap: 8px;
}

.main-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom;
  width: 100%;
  height: 4px;
  background: #00aaff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.main-nav-links a:hover::before {
  transform: translateX(-50%) scaleY(1);
}

.main-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-nav-links a:hover {
  color: #4fc3f7;
}

.main-nav-btn {
  background-color: #4fc3f7;
  padding: 6px 12px;
  border-radius: 4px;
  color: black;
  font-weight: bold;
}

.main-nav-btn:hover {
  background-color: #0288d1;
  color: white;
}

.main-nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 855px) {
  .main-nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #292929;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    display: none;
  }

  .main-nav-links.main-nav-active {
    display: flex;
  }

  .main-nav-toggle {
    display: block;
  }
}

/* EN CONSTRUCTION POPUP */
.construction-box {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.construction-content {
  background-color: #1c1c1c;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
  animation: popupFade 0.3s ease-out;
}

.construction-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.construction-close-btn {
  margin-top: 1.5rem;
  padding: 10px 20px;
  background-color: #00aaff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@keyframes shake {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-4px, 0);
  }
  40% {
    transform: translate(4px, 0);
  }
  60% {
    transform: translate(-4px, 0);
  }
  80% {
    transform: translate(4px, 0);
  }
  100% {
    transform: translate(0);
  }
}

.construction-logo.shake {
  animation: shake 0.5s infinite ease-in-out;
}

.construction-close-btn:hover {
  background-color: #0088cc;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Timeline animé */

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item h2 {
  font-size: 1.5rem;
  color: #4fc3f7;
  margin-bottom: 10px;
}
.timeline-item p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #4fc3f7, #ff3c7b);
  transform: translateX(-50%) rotateZ(0deg);
  transform-origin: center;
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.6);
  overflow: hidden;
}

/* Lueur animée défilante */
.timeline-line::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: lightSweep 5s linear infinite;
}

/* Animation de la lueur qui monte/descend */
@keyframes lightSweep {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 85%; /* Toujours au centre de la ligne */
  transform: translateX(-50%); /* Centre le point exactement */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #111;
  z-index: 2;
}

/* Couleurs alternées */
.timeline-item:nth-child(odd)::before {
  background-color: #4fc3f7;
}

.timeline-item:nth-child(even)::before {
  background-color: #ff3c7b;
}

/* Couleurs alternées */
.timeline-item:nth-child(odd)::before {
  background-color: #ff3c7b;
}

.timeline-item:nth-child(even)::before {
  background-color: #4fc3f7;
}
@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 20px 20px 20px 60px;
    text-align: left;
    margin: 0 0 210px 0;
  }

  .timeline-item::before {
    left: 20px;
    transform: none;
  }

  .timeline-line {
    left: 30px;
    transform: none;
  }
}

/* soft hard skills */

.skills-section {
  max-width: 80%;
  min-height: 100vh;
  width: 900px;
  margin: auto;
  padding: 150px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  gap: 80px;
}

.skills-list {
  max-height: 500px;
  flex: 1 1 300px;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.skills-list h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #4fc3f7;
  text-align: center;
}

.skills-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  padding: 10px 0;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.skills-list li:last-child {
  border-bottom: none;
}

.skills-list li::before {
  content: "•";
  color: #ff3c7b;
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  .skills-section {
    flex-direction: column;
    align-items: stretch;
    padding: 100px 0 200px 0;
  }
}

/* footer */
.site-footer {
  background-color: #292929;
  color: #ccc;
  padding: 60px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  font-size: 1.3rem;
  color: #4fc3f7;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ff3c7b;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  filter: invert(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(1.5) hue-rotate(20deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.footer-bottom p {
  margin: 0;
  color: #fff;
}
/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
  }

  .social-icons a {
    margin: 0 10px;
  }
}
