@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
  }

/* ---------------------- */
/* Version PC = une ligne */
/* ---------------------- */
.single-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid black;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
  max-width: 100%;
}

@keyframes typing {
  from { width: 0 }
  to   { width: 100% }
}

/* ------------------------- */
/* Version Mobile = multi-lignes */
/* ------------------------- */
.multi-typing {
  display: none; /* caché par défaut (PC) */
}

.typewriter-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  opacity: 0; /* cachée par défaut */
}

/* Ligne 1 */
.line1 {
  border-right: 2px solid black;
  opacity: 1; /* visible dès le départ */
  animation: typing1 2s steps(15, end) forwards,
             blink 0.75s step-end infinite;
}

/* Ligne 2 */
.line2 {
  border-right: 2px solid black;
  animation: typing2 2s steps(20, end) forwards,
             blink 0.75s step-end infinite;
  animation-delay: 2.1s;   /* commence après ligne 1 */
  animation-fill-mode: forwards;
}

/* Ligne 3 */
.line3 {
  border-right: 2px solid black;
  animation: typing3 2s steps(20, end) forwards,
             blink 0.75s step-end infinite;
  animation-delay: 4.3s;   /* commence après ligne 2 */
  animation-fill-mode: forwards;
}

/* Animations multi-lignes */
@keyframes typing1 {
  from { width: 0; opacity: 1; }
  to   { width: 100%; opacity: 1; }
}
@keyframes typing2 {
  from { width: 0; opacity: 1; }
  to   { width: 100%; opacity: 1; }
}
@keyframes typing3 {
  from { width: 0; opacity: 1; }
  to   { width: 100%; opacity: 1; }
}

/* Curseur clignotant */
@keyframes blink {
  0%, 100% { border-color: transparent; }
  50%      { border-color: black; }
}

/* ------------------------- */
/* Switch PC / Mobile        */
/* ------------------------- */
@media (max-width: 768px) {
  .single-typing {
    display: none;
  }
  .multi-typing {
    display: block;
  }
}


.hover-effect {
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
  position: relative;
}

.hover-effect:hover {
  color: var(--color-green);
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}


  .hover-effect::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--color-green);
    transition: width 0.3s ease;
  }

  .hover-effect:hover::after {
    width: 100%;
  }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(2deg); }
  100% { transform: scale(1.05); }
}
/* Conteneur du bloc code */
.description-code-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Bloc avec les styles du code */
.description-code {
  width: 100%;
  max-width: 360px;
  overflow-x: auto;
  background-color: rgba(240, 240, 240, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-bubble {
  position: relative;
  padding: 2rem;
  height: 10rem;
  width: 10rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tinos);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-green), var(--color-cyan));
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Liquid glass overlay */
.service-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 0;
}

/* Text inside bubble */
.service-name {
  position: relative;
  z-index: 1;
  color: var(--color-black);
  padding: 0 0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

/* Hover burst effect */
.service-bubble:hover {
  animation: pop 0.4s ease forwards;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}





